About this tool
A JSON Web Token is three base64url segments joined by dots: a header describing the signing algorithm, a payload of claims, and a signature. The first two are not encrypted — they are merely encoded, readable by anyone holding the token. This decoder does that reading properly: it decodes both segments, pretty-prints the claims, and translates the numeric timestamps (exp, iat, nbf) into human dates, including a clear verdict on whether the token has expired.
Two truths worth keeping beside the tool. First, decoding is not verifying: the signature segment proves the token was issued by whoever holds the key, and only your server with that key can check it — this page shows you the claims, not their authenticity. Second, because payloads are readable by design, a JWT must never carry secrets; if you can read something sensitive in the output below, that is a finding about your system, delivered free.
How to use it
- Paste the full token (all three segments).
- Press Decode token.
- Read the header and claims; check the expiry verdict before debugging anything else.
Good to know
- Half of all 'invalid token' bugs are clocks: compare exp and nbf against the real time on the machine rejecting it.
- The alg field matters: a token claiming 'none' or an unexpected algorithm should be rejected by your server, full stop.
- Never paste production tokens into websites that send data to a server — this one does not, which is the only kind you should use.
Frequently asked questions
Does decoding verify the signature?
No. Verification needs the issuer's key and belongs on your server. This tool reads the token's contents.
Is my token uploaded?
No. Decoding happens in your browser — an important property for a tool that handles credentials.
Why does it say my token is malformed?
A JWT needs three dot-separated base64url segments. Truncated copies (chat windows love eating the tail) are the usual cause.
More Developer tools
JSON Formatter & Validator
Pretty-print messy JSON, minify it back, and get a precise error location when it will not parse.
JSON to CSV
Turn a JSON array of objects into a clean spreadsheet-ready CSV, columns and escaping handled.
CSV to JSON
Convert spreadsheet CSV into a JSON array — quoted fields, embedded commas and all.
XML Formatter
Indent and validate XML — sitemaps, feeds, config files — with errors pointed at the guilty tag.
JS / CSS / HTML Beautifier
Untangle minified or messy code into readable, consistently indented JavaScript, CSS or HTML.
JS / CSS Minifier
Strip comments and needless whitespace from JavaScript and CSS — smaller files, same behaviour.
Making videos too? Try our YouTube SEO Checker, or browse the full Toolkit and the free YouTube tools.