ihate JWT Decoder — Decode Token Header & Payload
Decode a JSON Web Token's header and payload locally and read iat, exp, and nbf as human dates. Built for debugging auth flows without pasting tokens into a server.
Short answer
Decoding happens in your browser. The signature is not verified — treat the contents as readable, not trusted.
{
"alg": "HS256",
"typ": "JWT"
}{
"sub": "1234567890",
"name": "Ada",
"iat": 1733200000,
"exp": 1733286400
}Key claims
- Subject (sub)
- 1234567890
- Issued at (iat)
- Tue, 03 Dec 2024 04:26:40 GMT (1733200000)
- Expires (exp)
- Wed, 04 Dec 2024 04:26:40 GMT (1733286400) — expired
Need to check another timestamp? Use the Timestamp Converter to turn any epoch value into UTC and local dates.
How to decode a JWT
- Paste the token, with or without a Bearer prefix.
- Read the header for the algorithm and token type.
- Check the payload claims — subject, issuer, and the iat/exp dates.
- Copy either part as JSON when you need it in code or a bug report.
Limits to know
Decoding only reads the token; it does not verify the signature, so anyone can forge the contents you see. Never trust a decoded token for access decisions — verification belongs on your server with the real key. Tokens can contain personal data, so avoid sharing decoded payloads publicly.
Checking expiry
An exp claim is a Unix timestamp. If the date looks wrong by hours, compare UTC with your local time in the Timestamp Converter before blaming the token.
FAQ
Does this verify the JWT signature?
No. It decodes the header and payload only. Signature verification needs the issuer's key and belongs on a server.
What do iat, exp, and nbf mean?
iat is when the token was issued, exp is when it expires, and nbf is the time before which it must not be accepted. All three are Unix timestamps in seconds.
Is it safe to paste a real token here?
Decoding runs entirely in your browser and nothing is sent anywhere. Still, treat tokens like passwords and avoid pasting production tokens into any tool you do not control.
Why does my token fail to decode?
A JWT needs three dot-separated parts, and the first two must be base64url-encoded JSON. Truncated tokens or tokens with line breaks copied mid-way usually fail.
More free tools from OwlClip
ihate tools are free browser utilities from OwlClip — no subscription, no account wall, just the tool you opened.
See all free toolsMore free tools
ihate JSON Formatter
Paste JSON to format it with indentation, minify it, validate syntax, copy the result, or download a .json file.
ihate Password Generator
Choose length and character types, generate a random password locally, and copy it without sending it anywhere.
ihate Base64 Encoder
Paste text to encode it as Base64, or paste Base64 to decode it, with Unicode-safe handling in your browser.
ihate Favicon Generator
Turn an image or a simple letter mark into 16, 32, 48, 180, 192, and 512 pixel favicon PNGs with the HTML to add them.
ihate Cron Expression Explainer
Paste a 5-field cron expression to see what each part means and when it runs next, with clear notes for unsupported syntax.
ihate JSON to CSV Converter
Paste a JSON array of objects to flatten it into CSV rows and columns you can copy or download for a spreadsheet.
