JWT Decoder
A JSON Web Token is three blocks of base64url text joined by dots — a header, a payload, and a signature. This decoder opens the first two so you can read what a token actually carries: who it claims to be, when it expires, what its issuer put in it.
Decoding is not verification. Nothing here checks the signature, so nothing here proves a token genuine. And because decoding runs entirely in your browser — the token is never uploaded or stored — it is safe to inspect real tokens, which is exactly the case where uploading one to a random server would be a mistake.
Loading the decoder…
Embed this calculator on your website →
The formula
token = base64url(header) . base64url(payload) . base64url(signature)
- header — a small JSON object naming the signing algorithm (alg) and usually the type (typ: JWT).
- payload — the claims: the data itself. Registered claims exp, nbf, and iat are Unix timestamps; this tool renders them as UTC times and judges them against your device's clock.
- signature — the tamper-evidence, computed over the first two segments with a key this tool does not have and does not ask for. Shown by length and content for identification only.
Worked example: the default token above is the widely published example token — its payload reads sub 1234567890, name Jane Doe, and iat 2018-01-18 01:30:22 UTC.
How it works
Why anyone can read a JWT. Base64url is an encoding, not encryption — it exists to carry binary-shaped data safely in text, and it reverses for anyone holding the token. That is by design: the token is meant to be read by the parties passing it around. Secrecy was never the mechanism; the signature is.
What the signature actually does. The issuer computes it from the header, the payload, and a secret (or private key). Change one character of the payload and the signature no longer matches — that, and only that, is what makes a token trustworthy, and checking it requires the key. Server libraries do this on every request; a browser page must never hold your signing secret, which is why this tool decodes only.
The time claims. exp is the moment after which the token must be refused; nbf is the moment before which it is not yet valid; iat is when it was issued. The tool renders all three in UTC and states each one's status against your clock — remembering that a wrong device clock judges wrongly, and that expiry shown here is a reading aid, not the enforcement your server performs.
Examples
- Debugging a 401 → paste the token your app received and read its exp: half of all mystery 401s are a token that expired, was issued for a different audience, or carries the wrong subject — all visible in the payload.
- Checking what you issue → decode your own service's token and confirm the claims match what the code meant to put there, before the client team builds against them.
- Spotting a tampered token → you cannot — not here. A modified payload still decodes perfectly; only signature verification catches it. This tool says so on the page and above the tool, because the misunderstanding is common and dangerous.
Frequently asked questions
Is it safe to paste a real token here?
Yes — decoding happens in your browser's own code on this page; the token is never uploaded, logged, or stored, and you can confirm that in your network tab. That is deliberately different from decoder sites that post your token to a server. The usual hygiene still applies elsewhere: a live token is a credential, so do not paste it into chats, tickets, or screenshots.
The token decoded — does that mean it is valid?
No. Decoding proves only that the text is well-formed. Validity requires verifying the signature against the issuer's key, checking the expiry, and confirming the issuer and audience — all of which belong on your server with a maintained JWT library. This page exists for reading, and repeats the point because tools that blur it cause real security incidents.
Why does my token fail to decode?
Almost always a truncated paste — tokens are long and chat windows and terminals wrap them. Check that all three segments are present with both dots, and that no spaces crept in. If the token has only two segments, it may be a different format entirely (an opaque session token or a JWE with five segments), not a plain JWT.
What does alg: none mean if I see it?
That the token declares it has no signature at all. Some old or misconfigured systems accept such tokens, which removes the only integrity check a JWT has. If your own API issues or accepts alg none unintentionally, that is a finding worth fixing — modern libraries reject it by default for good reason.
Related calculators
Base64 Encode / Decode
LiveEncode text to Base64 or decode Base64 back to text, with full UTF-8 support for accents and emoji.
JSON Formatter & Validator
LiveFormat, validate, and minify JSON, with the exact position of any syntax error pointed out.
Unix Timestamp Converter
LiveConvert Unix timestamps in seconds or milliseconds to readable dates, and dates back to timestamps.

