Reading a JWT and Knowing What It Proves
By toolbelt maintainers ·
Updated
Decoding a token tells you what it claims. It tells you nothing about whether the claims are true. Those are different questions.
What is this tool?
A JWT has three parts: header, payload and signature, joined by dots. Decoding is just base64 — it needs no key and hides nothing.
How it works
I decode the first two segments and parse them as JSON, so you can read the claims, the algorithm and the expiry. I do not verify the signature, because verification needs the key and, more importantly, because verifying it here would prove nothing about your server.
Example
Header: { "alg": "HS256", "typ": "JWT" }
Payload: { "sub": "123", "name": "Ada", "exp": 1735689600 }
Expires: 2025-01-01 00:00:00 UTCWhen to use it
Checking which claims your auth server actually sends. Confirming an expiry is set. Comparing a token from staging with one from production after a config change.
Optimization Tips
Look at exp and aud first. A surprising number of "the token is invalid" bugs are a missing aud claim or an exp that already passed. Then check alg — if it says none, that is a red flag.
Frequently Asked Questions
Does decoding verify the token?
Can I trust what I see here?
Should I paste production tokens here?
Why is the payload readable?
Related tools
- Base64 Encoder/DecoderEncode and decode Base64 strings safely. Supports full UTF-8 characters, emojis, and binary data. Ideal for debugging data URLs or API authentication headers.
- URL Encoder/DecoderPercent-encode and decode URLs. Safely escape query parameters, path segments, or full URLs to ensure they are valid and won't break during browser routing or API requests.
- JWT SignerCreate a signed JSON Web Token with HMAC SHA-256, SHA-384 or SHA-512. Encode the header and payload and sign it from a secret, entirely in your browser.
- Env ValidatorCheck a .env file for duplicate keys, unclosed quotes, unquoted spaces and placeholder secrets before they break a deploy. Reports the line number of each problem.