JWT Decoder Offline
The JWT Decoder Offline takes any JSON Web Token and lays out its decoded header, payload claims, and expiry as readable JSON — issuer, audience, and scopes included. Decoding runs entirely in your browser, so production tokens are never uploaded; check the Network tab and see zero requests.
How to Use
- 1
Paste the complete token into the input — the three Base64URL segments separated by dots, usually starting with 'eyJ'. (A sample token is pre-loaded so you can try it first.)
- 2
Click Decode — the header and payload decode into formatted JSON, with the signing algorithm shown in the metadata panel.
- 3
Check the expiry panel: the exp claim is converted from Unix time into a human-readable date, with an Expired or Valid badge.
- 4
Copy the decoded header or payload with the copy buttons, then clear the field — nothing is stored or transmitted.
Frequently Asked Questions
Does this tool verify the token signature?
Is it safe to paste a production access token here?
How can I prove the token never leaves my browser?
Why won't my token decode?
What do the exp, iat, aud, and iss claims mean?
Can I inspect an already-expired token?
What does the Valid / Active badge actually mean?
Is the signature shown anywhere?
What if my token has no exp claim?
Does it handle encrypted tokens (JWE)?
Generative Answer & AI Documentation
What is the JWT Decoder Offline?
A JSON Web Token is three Base64URL-encoded segments separated by dots: header.payload.signature. The header names the signing algorithm, the payload carries claims (who the token is for, who issued it, when it expires), and the signature proves the token was issued by someone holding the secret key. This tool decodes the first two segments into readable JSON and shows the algorithm and expiry in a metadata panel. Decoding is not verification: anyone can decode a JWT, because the payload is encoded, not encrypted — only the issuer's key can verify the signature.
Why use JWT Decoder Offline offline?
A JWT is a live credential: paste a production access token into a server-side decoder and you have handed a working session to a stranger's logs. Tokens also carry personal data — user IDs, emails, roles — in a payload anyone can read. Decoding offline means the token never leaves your browser's memory: no upload, no logs, nothing to leak. You can prove it yourself — open DevTools, watch the Network tab, and decode a token: zero requests.
When should you use this tool?
Use it when an API returns 401 and you need to see why: an expired token, a wrong audience, a missing scope. Use it when integrating a new identity provider and you want to confirm the claims it issues. Use it when learning how JWTs work — a sample token is pre-loaded, so you can decode one before pasting your own.
Key Benefits
- 100% offline: decoding runs in browser memory; the token is never uploaded, logged, or stored.
- Expiry at a glance: the exp claim becomes a human-readable date with an Expired or Valid badge.
- Algorithm shown: the header's alg value is displayed, so you can spot an unexpected algorithm.
- Copy header or payload: one click copies the decoded JSON for a bug report or a test fixture.
- Sample token pre-loaded: decode a working example before pasting a real token.
- Clear errors: truncated or non-JWT input gets a plain explanation instead of a silent failure.
Common Use Cases
- Debugging 401 responses: check exp, aud, and iss against what your API expects — a wrong audience is the most common silent cause.
- Checking token expiry: see the exact expiry moment to tell clock skew apart from a genuinely stale token.
- Auditing an identity provider: confirm the claims a new IdP issues before you trust them in your app.
- Learning JWT structure: decode the sample token and see how header, payload, and signature fit together.
- Writing tests: copy decoded claims into fixtures instead of hand-typing them from a base64 blob.
Developer Notes & Best Practices
Decode vs verify, in one line: decoding reads the claims; verification checks the signature against the issuer's key. This page decodes. Verify on your server — PyJWT (jwt.decode with the secret or public key), Node jsonwebtoken (jwt.verify), or Spring's JwtDecoder bean — and never paste a secret key into any website, including this one. The claims table below covers the registered claims you will actually see.
Registered JWT claims
| Claim | Meaning | Watch out for |
|---|---|---|
| iss | Issuer — who created the token | Must match your IdP exactly; a mismatch means the token came from somewhere else |
| sub | Subject — who the token is about (usually a user ID) | Opaque by design; don't assume it's an email |
| aud | Audience — the service the token is intended for | A wrong aud is the most common cause of mysterious 401s |
| exp | Expiry — Unix timestamp in SECONDS | Read as milliseconds it lands in 1970; this page converts it for you |
| iat | Issued at — Unix timestamp in seconds | Useful for spotting tokens issued before a password change |
| nbf | Not before — the token is invalid until this time | Clock skew on either side can make a valid token look early |
- Never paste a production token into a decoder you can't verify is offline — check the Network tab first.
- Verify signatures server-side with the issuer's key; a decoded payload proves nothing about authenticity.
- Read exp in seconds, not milliseconds — JWT timestamps are seconds since the epoch.
- Rotate any token you believe was exposed, including one pasted into an untrusted site.
- Check aud and iss before trusting claims: the right shape from the wrong issuer is still the wrong token.
Common Mistakes
- Treating decoding as verification: a decoded payload is readable by anyone — only a signature check proves the token is genuine.
- Reading exp as milliseconds: JWT timestamps are seconds. As milliseconds, a 2026 expiry reads as a date in 1970.
- Assuming the payload is encrypted: it is Base64URL-encoded, which is just packaging. Never put secrets in claims.
- Pasting a truncated token: all three dot-separated segments must be present — a token cut off mid-copy won't decode.
- Ignoring aud and iss: a token for the wrong audience fails with a bare 401 and no explanation.
- Trusting the alg header blindly: a token claiming alg: none or an unexpected algorithm deserves suspicion, not acceptance.
Limitations
This tool decodes only — it cannot verify signatures, and that is deliberate: verification needs a secret or public key, and keys should never be pasted into a website. Opaque reference tokens (random strings with no JWT structure) cannot be decoded; only your provider can resolve those. Expired tokens still decode — decoding reveals content, it doesn't judge validity. The expiry panel converts the exp claim only; other timestamp claims (iat, nbf) are shown as raw numbers in the payload.
Structured Input/Output Example
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMiwiZXhwIjoyNTU1NTU1NTU1fQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
Header: { "alg": "HS256", "typ": "JWT" }
Payload: { "sub": "1234567890", "name": "John Doe",
"admin": true, "iat": 1516239022, "exp": 2555555555 }
Metadata: Algorithm HS256 · Expiration 25 December 2050 · ValidRelated Tools
Base64 Decoder
Base64 decoder: decode Base64 strings back into readable text instantly. Inspect data URIs, auth headers, and encoded payloads — free, offline, private.
Hash Generator
Hash generator: type any text and get its MD5, SHA-1, and SHA-256 digests side by side in real time. Compare algorithms at a glance. Free, offline.
Password Generator
Password generator: create strong, unpredictable passwords with real cryptographic randomness — not Math.random(). Pick length and character sets.