💻

JWT Decoder

Decode JSON Web Tokens

Tokens are decoded entirely in your browser — never sent anywhere. Even so, never paste a production token anywhere you don't trust.

About this tool

This free JWT Decoder opens up any JSON Web Token and shows you exactly what is inside: the header with its signing algorithm, the payload with every claim — issuer, subject, expiry, custom data — and the signature section that ties the token to its issuer. Paste a token from an API request, an authorization header, a browser's local storage or a log file, and the contents appear decoded instantly. Nothing to install, no account needed; decoding happens live as you paste. A JWT is three Base64URL-encoded sections joined by dots: header.payload.signature. The first two are readable by anyone, always — that is not a flaw but the design, since a JWT carries *claims* rather than secrets, and the signature exists to prove those claims were not altered, not to hide them. This decoder reveals the first two sections in pretty-printed, readable JSON, which is precisely what developers need when debugging: Is the token expired? Which issuer issued it? What roles or scopes does it carry? Why is authentication failing — wrong audience, wrong key ID, an unexpected claim? Decoding here is completely safe precisely because it is completely local. Decoding a JWT does not verify it — verification requires checking the signature against the issuer's key, which is a separate step done in your backend — so nothing about pasting a token here executes, validates or trusts anything. The token is read as data, displayed as data, and nothing else. Your tokens are also never uploaded: all decoding runs in client-side JavaScript, nothing is transmitted to any server, and you can go offline after the page loads and decoding works identically. The debugging scenarios this tool exists for: checking why a token was rejected (expired? wrong audience? missing claim?), inspecting what data your system actually issues into tokens, comparing tokens across environments, and verifying that a fix landed in the claims you expected — all in seconds, with the token never leaving your device.

Frequently asked questions

What is a JWT and what does it look like?+

A JSON Web Token is a compact, self-contained token format used for authentication and data exchange between systems. It consists of three Base64URL-encoded sections joined by dots, like eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxIn0.signature. The header names the signing algorithm, the payload carries the claims (issuer, subject, expiry, custom data), and the signature proves the token was issued by whoever holds the signing key. The header and payload are readable by anyone — decoding them is this tool's job.

How do I decode a JWT with this tool?+

Paste the full token — all three sections, dots included — into the input area. The header and payload decode live as you paste, rendered as pretty-printed JSON with every claim visible: alg, iss, sub, exp, iat, and any custom claims your system adds. If the token is malformed, you get a clear error instead of broken output. Nothing is submitted anywhere; the token is read and displayed entirely in your browser.

Is decoding a JWT safe? Does it verify the token?+

Decoding is completely safe and completely different from verifying. Decoding just reads the token's text — it executes nothing, validates nothing, trusts nothing. Verification is proving the token is genuine by checking its signature against the issuer's key, which requires the key and happens in your backend, never in a browser tool. Reading a token to debug why it failed, then verifying it server-side, is the correct and safe workflow.

Can anyone read my JWT? Is a decoded token a security problem?+

Yes, anyone can read it — and no, that is not a vulnerability, it is the design. JWTs carry claims, not secrets: identity, roles, expiry. The signature guarantees those claims were not tampered with, but guarantees nothing about privacy, because privacy was never the goal. That is exactly why the golden rule exists: never put passwords, credit card numbers or any true secret inside a JWT payload. Everything in a token should be information that is safe to be visible — and provably unmodified.

Why is my JWT failing with 'token expired' or an invalid error?+

Check the exp claim after decoding: it is a Unix timestamp in seconds, and if it is before the current time the token has expired — the most common JWT rejection by a wide margin. Other frequent failures: the aud (audience) claim not matching what the API expects, the iss (issuer) mismatching, or nbf (not-before) showing a future time. Decoding here reveals all of these values instantly, which is usually enough to identify exactly why authentication failed.

What do the standard JWT claims (iss, sub, exp, iat) mean?+

The registered claims are the shared vocabulary of JWTs: iss is who issued the token, sub is who or what it is about (usually a user ID), aud is who the token is intended for, exp is when it expires, nbf is when it becomes valid, iat is when it was issued, and jti is a unique token identifier. Everything else in the payload is custom claims your system defines — roles, permissions, email, any application data worth carrying.

Does this tool store or send the tokens I paste?+

No. All decoding runs locally inside your browser using client-side JavaScript — your token never leaves your device, is never transmitted to any server, and is never logged or stored. After the page loads you can disconnect from the internet and decoding works identically. Since tokens often carry session data and identifiers you would rather keep private, that guarantee is not a bonus feature here — it is the requirement.

Why is part of my token gibberish when decoded?+

If you decoded the signature section (the third part after the second dot), gibberish is expected: it is not JSON but a raw cryptographic hash, binary data that only means something to the verification process. Only the first two sections decode to readable JSON. A second cause: the token may use a non-JSON payload or compressed format (rare, but the JWT spec allows a JWE encrypted form) — those are not decodable by any public tool, by design, because the content is genuinely meant to be secret.