JWT Decoder
Paste a JSON Web Token to decode its header and payload into readable, pretty-printed JSON — instantly.
Private by design: decoding happens entirely in your browser — your token is never uploaded or stored anywhere. Note that this tool decodes the token; it does not verify the signature.
—
—
—
How it works
A JSON Web Token is three base64url-encoded segments joined by dots: header.payload.signature. The header is a small JSON object naming the signing algorithm (such as HS256) and the token type. The payload carries the claims — statements about the user or session like a subject id, an expiry time (exp), or an issued-at time (iat). The signature is created by the issuer with a secret key so a server can later confirm the token was not tampered with. Crucially, the header and payload are only encoded, not encrypted: anyone holding the token can read them, which is why you should never put secrets in a JWT. Decoding here simply reverses the base64url encoding; trusting the token still requires verifying the signature with the issuer's key, which must happen on a server — never in a browser tool.
How to use
- Paste the full token into the JWT field — three base64url-encoded segments joined by dots (
header.payload.signature). The sample token is pre-filled. - The header and payload decode instantly into pretty-printed JSON below the input.
- Read the claims:
subis the subject (usually a user id),expthe expiry time, andiatthe issued-at time, both as Unix timestamps. The values are in seconds, so they look like ten-digit numbers. - Note the signature section is displayed but not verified — this tool decodes tokens; it never authenticates them.
Frequently asked questions
Is a JWT encrypted?
No. The header and payload are only base64url-encoded, which anyone can reverse — that includes this tool. Never put secrets, passwords, or other sensitive data in a token’s claims. The sample token's payload — {"sub":"1234567890","name":"John Doe","iat":1516239022} — is a real example: anyone holding the token can read every claim in it.
What do “exp” and “iat” mean?
They are the expiry time and the issued-at time, expressed as Unix timestamps (seconds since 1970-01-01 UTC). The sample token’s iat of 1516239022, for example, is January 18, 2018.
Why doesn’t the tool verify the signature?
Verification requires the issuer’s secret key and must happen on a server — a browser tool cannot trust its own verdict, and pasting your signing secret into a web page would defeat the entire purpose of the signature.
Is my token uploaded anywhere?
No. Decoding runs entirely in your browser; your token is never uploaded, stored, or logged anywhere.