Decode a JWT
Read a JWT's header and payload, with expiry checked against the clock. Decoded in your browser — the token is never transmitted.
- Free, no account
- Nothing is uploaded
- Runs in your browser
How it works
- 1 What goes in A JWT
- 2 It runs in your browser On your own device. Nothing is uploaded, there is no queue and no account, and it keeps working with the network switched off.
- 3 What comes back Its header, its claims and its dates
What it does
Paste a token and read its header and claims, with exp, iat and nbf rendered as real dates and the expiry checked against your clock. The signature is shown but not verified, and the reason is worth reading below.
This page does the work itself. Your token is handled by the browser and never sent anywhere — there is no server here to send it to.
Questions
Why does it not verify the signature?
Verification needs the signing secret or the public key. A page that asked you to paste your signing secret would be a page to close — a leaked secret lets anyone mint valid tokens for your system. Decoding needs no key at all, because a JWT's contents were never encrypted in the first place.
Is it safe to paste a real token here?
Safer than in any decoder that has a server, because this one has none: the decoding happens in the page and nothing is transmitted. Load it, disconnect from the network, and it still works. That said, a live token is a credential — the ordinary care applies, and so does the habit of not pasting production tokens into pages you have not checked.
What does the expiry check actually mean?
It compares the exp claim against your own device's clock. A token that reads as expired on a machine whose clock is wrong may still be accepted by the server, and the reverse is also true — a surprising amount of authentication debugging ends at a clock that had drifted.
Worth knowing
This page decodes and deliberately does not verify, because verifying needs a key it has no business asking you for. These are what does the other half.
-
jose
Verification, signing and JWKS handling for Node and the browser, by someone who reads the specifications rather than the blog posts about them.
-
RFC 8725 — JWT Best Current Practices
Short, readable, and the source of every rule worth following — starting with never trusting the alg header the token itself carries.
Nothing on this list is paid for, and none of it is an affiliate link. These are plain URLs — no referral code, no tracking parameter, nothing that tells anyone you came from here.
More developer tools
-
Developer
Text ⇄ binary
Translate text to binary, hex or octal and back again, in UTF-8.
-
Developer
Base64
Encode text or a file to Base64 and decode it back, with URL-safe output and data URIs.
-
Developer
SHA hashes
Compute SHA-1, SHA-256, SHA-384 and SHA-512 for text or a file, using your browser's own crypto engine.
-
Developer
Unix time
Convert Unix time to a date and back, in UTC and your own timezone at once, with seconds and milliseconds.
-
Developer
URL encode
Percent-encode a URL or a single value and decode it back, with the encodeURI and encodeURIComponent distinction made explicit.
-
Developer
UUID
Generate v4 random or v7 time-ordered UUIDs in bulk, from your browser's cryptographic random source.
-
Developer
Regex tester
Test a JavaScript regular expression against your own text, see every match and capture group, and read the pattern back in plain English.
-
Developer
Cron expressions
Turn a cron expression into plain English and see its next five run times, in your own timezone and in UTC.
-
Developer
cURL converter
Paste a curl command and get it back as JavaScript fetch, Python requests and a raw HTTP request.