JWT Decoder & Verifier

Decode a JWT into header, payload and signature, read exp and iat as real dates with a live countdown, and verify HS256 signatures.

Runs entirely in your browser — nothing is uploaded

Decoding is not verification. Every JWT payload below is Base64url, not encrypted — anyone holding this token can read it, and rewriting the claims takes seconds. Only a signature check against the right key says the token is genuine. Nothing you paste here is uploaded, logged or stored.

Token

Verify the signature

Only HMAC signatures (HS256, HS384, HS512) can be checked here, because they are the only family where the verifying key is a secret you already hold. RS, PS, ES and EdDSA tokens are verified with the issuer’s public key, usually fetched from a JWKS endpoint — there is no network in this page, so that is honestly out of reach rather than faked.

About the JWT Decoder & Verifier

Paste a token and it splits into its three Base64url segments — header, payload and signature — each shown as formatted, colour-coded JSON. Registered claim names are spelled out (iss is the issuer, jti the token ID, azp the authorised party), and the NumericDate claims exp, nbf and iat are rendered as real dates in UTC and in your local timezone, with a countdown that ticks down to the second. A Bearer prefix, wrapping quotes and the line breaks an editor folded in are stripped for you, because that is how a token actually arrives on the clipboard.

Decoding is not verification, and that distinction is the whole game. A JWT payload is encoded, not encrypted: anyone holding the token can read every claim in it, and rewriting those claims takes seconds. What makes a token trustworthy is a signature check against a key you trust. Two classic failures follow from blurring this. "alg": "none" produces a token with no signature at all, which real libraries have historically accepted as valid. Algorithm confusion is subtler: take an RS256 token, flip the header to HS256, and sign it using the issuer's *public* key as the HMAC secret — a verifier that reads the algorithm out of the token then validates a forgery. The fix in both cases is the same: pin the algorithm you expect instead of trusting the header. This tool flags both patterns, and deliberately refuses to HMAC a pasted PEM key for you.

The second pitfall is arithmetic. RFC 7519 defines exp, nbf and iat as NumericDate — seconds since the Unix epoch, not milliseconds. Handing Date.now() straight to exp produces a token that expires in the year 55000: it looks fine in testing and never expires in production. Any implausibly large value is flagged here, with what it would mean read each way. A missing exp is flagged too — a token with no expiry stays usable until something revokes it, assuming anything can. Note also that the countdown is measured against your own device clock; a real verifier uses its clock and usually allows a minute or two of skew, so a token that looks marginally expired here may still be accepted, and the reverse.

Signature verification runs on the browser's Web Crypto API and covers HS256, HS384 and HS512 — the HMAC family, where the verifying key is a shared secret you already hold. Secrets are accepted as UTF-8 text, Base64, Base64url or hex, because getting that wrong is the most common reason a perfectly correct secret reports as invalid: several providers hand out a key that is Base64 of the real bytes, and a stray trailing newline changes the key too. RS, PS, ES and EdDSA tokens are verified with the issuer's public key, normally fetched from a JWKS endpoint — there is no network in this page, so those are reported as unsupported rather than quietly faked. A five-segment token is detected as a JWE: encrypted rather than merely signed, its header shown and its payload honestly declared unreadable.

Running this locally is not a nicety here. A JWT is a live credential. An access token pasted into a server-side decoder is a working bearer token handed to a machine you do not control, where it lands in request logs, proxy logs and error trackers, and stays valid until it expires. This page has no server and no API to call: the decoding, the date maths and the HMAC check all happen in your tab, and nothing is written to localStorage, to the URL, or to anywhere else that outlives it. Open devtools with the Network tab showing, or switch off your Wi-Fi after the page loads — it works either way. And if you have already pasted a production token into some other online decoder, treat it as disclosed and rotate it.

Everything runs inside your browser using standard web APIs. Your data is never uploaded, never stored on a server, and never leaves your device — you can confirm that by opening your browser devtools Network tab, or by switching off your Wi-Fi and using the tool offline.

Frequently asked questions

Is decoding a JWT the same as verifying it?

No. Decoding just Base64url-decodes the header and payload, which anyone can do without any key — it tells you what the token claims about itself. Verifying recomputes the signature with a key you trust and proves the claims have not been altered since they were signed. A decoded token with a perfectly sensible payload can still be a complete forgery.

Can someone read my JWT without knowing the secret?

Yes, instantly. A JWT is signed, not encrypted, so the payload is readable by anyone holding the token — including every proxy and log file it passes through. Never put anything in a JWT you would not put in a URL. If the contents genuinely need to be hidden, you want a JWE, which is a different format.

My secret is definitely right, so why does verification fail?

Almost always an encoding mismatch. HMAC signs bytes, and providers hand those bytes over in different clothes: several give you Base64 of the key, so pasting it as UTF-8 text produces an entirely different key. Try each encoding option. The other usual suspects are a trailing space or newline caught in the copy — it counts as part of the key — and a truncated token. The signature length is shown so you can check it: 32 bytes for HS256, 48 for HS384, 64 for HS512.

Can it verify RS256, ES256 or EdDSA tokens?

No, and it says so rather than pretending otherwise. Those are verified with the issuer's public key, which normally comes from a JWKS endpoint over the network, and this page makes no network requests by design. Verify them with your language's JWT library against the pinned JWKS URL for that issuer. Do not paste a public key in as the HMAC secret to force a green result — making a verifier do exactly that is the algorithm-confusion attack, not a check.

Why does my token show five segments and say it cannot be read?

Five dot-separated segments is a JWE, the encrypted form: header, encrypted key, IV, ciphertext and authentication tag. Only the header is public, and it is shown so you can see the key-wrapping and content-encryption algorithms. The payload can only be decrypted with the recipient's private key, which no browser tool should be asking you to paste.

Why does my token say it expires in the year 55000?

Because exp was set in milliseconds. RFC 7519 measures it in seconds since the epoch, so a Date.now() value is a thousand times too large. Every verifier accepts it and the token effectively never expires — a quiet, extremely common bug. The tool flags any NumericDate too large to be plausible and shows what the value means under both readings.

Is my token uploaded or stored anywhere?

No. There is no server behind this page — it is static hosting — and nothing is written to localStorage, sessionStorage or the URL, so the token and secret vanish when you close the tab. You can confirm it with the devtools Network tab open, or by disconnecting from the internet after the page loads: decoding and HMAC verification both still work.