Guide and technical reference
How to use
Inspect the readable parts of a compact three-segment JWT in the browser. The decoder parses Base64url JSON in the header and payload and displays the third signature segment, but it has no trusted key and does not verify the signature, time claims, issuer, audience, or permissions.
- Paste a compact JWT in header.payload.signature form.
- Inspect header fields such as alg and typ without treating them as trusted configuration.
- Read only the claims that are actually present, such as sub, exp, iat, or nbf.
- Verify the token separately with an approved library, trusted key, expected algorithm, issuer, and audience before authorization.
Examples
- Input
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwicm9sZSI6ImRldmVsb3BlciIsImlhdCI6MTcxMDAwMDAwMH0.signature- Output
header alg=HS256, typ=JWT; payload sub=1234567890, role=developer, iat=1710000000; signature=signature
Demonstration only: this is not a valid signed token, and the displayed role is untrusted.
- Input
eyJhbGciOiJub25lIn0.eyJzdWIiOiIxMjMifQ- Output
A JWT must have three dot-separated segments
A two-segment value is rejected.
- Input
not-json.not-json.signature- Output
Base64url or JSON parsing error
The first two segments must decode to valid JSON objects for this viewer.
- Input
one.two.three.four.five- Output
A JWT must have three dot-separated segments
Five-part JWE compact serialization is outside this decoder's scope.
Understanding the result
Header commonly contains alg and typ. An attacker can change unverified header data, so the verifier must enforce its own algorithm policy.
Payload contains application claims. sub identifies a subject; exp, iat, and nbf are commonly Unix seconds and can be examined with the Timestamp converter.
Signature is displayed as the original third segment. Displaying it is not a successful cryptographic verification.
Claims absent from the token remain absent; the decoder does not invent issuer, audience, expiry, or role fields.
Common errors and limitations
- JWT payloads are encoded, not encrypted, and should not contain secrets merely because they appear inside a token.
- Decoding does not validate signature, expiry, not-before time, issuer, audience, revocation, or authorization.
- This tool handles three-part JWT compact serialization, not five-part JWE.
- Processing is local, but production tokens should still be handled as credentials and kept out of screenshots and issue reports.
Frequently asked questions
- Can I trust a decoded role claim?
- No. Trust it only after a server verifies the signature and the expected algorithm, issuer, audience, and time constraints.
- Is a JWT encrypted?
- Usually no. A three-part signed JWT is readable Base64url plus a signature. Encrypted JWE uses a different five-part format.
- How do I read exp?
- exp is normally Unix time in seconds. Convert it to a date, then let the verifier enforce it with an appropriate clock policy.