What Is the JWT Decoder?
Decode and inspect JSON Web Tokens (JWTs). View the header, payload, and signature separately with auto-formatting and claim explanations.
Why Use This Tool?
JWTs are the standard for authentication tokens in modern web APIs, but they're Base64-encoded and unreadable without a decoder. This tool breaks a JWT into its three parts and displays each section with syntax highlighting.
How to Use This JWT Decoder
- Paste your JWT token — Copy a JWT from your application, API response, or browser DevTools and paste it into the input field. JWTs have three base64-encoded parts separated by dots.
- Read the decoded header — The header section shows the algorithm (usually HS256 or RS256) and token type. This tells you how the token is signed.
- Inspect the payload — The payload contains the claims — user ID, email, roles, expiration time, and any custom data your API includes.
- Check expiration — The
expclaim shows when the token expires as a Unix timestamp. The tool converts this to a human-readable date so you can see if the token is still valid.
Worked example: six tokens through the decoder
On October 12, 2026 we built six test tokens and ran them through the tool in Chromium, before and after the v181 fix. The decoder now turns each base64url segment into bytes and decodes them as UTF-8 with TextDecoder, and checks nbf, millisecond timestamps and alg: none as well as exp.
| Token | Before v181 | Now |
|---|---|---|
| HS256 token, ASCII claims, past exp | decoded; "Expired" with the date | same |
| Name "José Müller" in the payload | "José Müller" (bytes read as Latin-1) | José Müller |
| exp in milliseconds | year 57742, not flagged | warning: "exp looks like milliseconds … decodes to the year …" |
| nbf in the future | status from exp only (looked valid) | "Not valid until …" plus a warning |
alg: none | decoded like any other, no warning | warning: unsigned token, servers must reject it (RFC 8725 §3.1) |
| Encrypted token (JWE, 5 parts) | "JWT must have 3 parts" | same (a JWE cannot be read without the key) |
- Times use your device clock. "Expired" and "Not valid until" compare exp and nbf with this computer's clock; servers usually allow a small leeway (often 30 to 60 seconds), so a token a few seconds either side may still be accepted.
- Decoding is not verification. An
alg: nonetoken decodes exactly like a signed one. Libraries must be configured with the allowed algorithms (RFC 8725 §3.1) so an attacker cannot strip the signature. - Nothing leaves the page. Decoding runs in your browser, but treat any live token like a password: it grants access until it expires.
Sources
Checked on .
Frequently Asked Questions
📖 Learn More
Related Article How to Decode & Inspect JWT Tokens →Built by Derek Giordano · Part of Ultimate Design Tools