Tool Details
JWT Decoder
LiveDeveloper UtilitiesDecode, inspect, and debug JWT tokens instantly. See header, payload, expiry status, and claim details -all in your browser.
About This Tool
A user reports they're getting 401 errors even though they just logged in. You grab the JWT from the request headers and need to check whether it's expired, what claims it carries, and which algorithm signed it. Pasting the token into this decoder instantly splits it into header, payload, and signature -color-coded so you can spot the algorithm, expiry timestamp, and issuer at a glance. The live countdown tells you exactly when the token expires, and the claim explanations save you from Googling what `nbf` or `jti` means. No server involved -the token stays in your browser.
Examples
Decode an expired access token
Input
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiZXhwIjoxNjAwMDAwMDAwfQ.signature
Output
Header: {"alg": "HS256", "typ": "JWT"}
Payload: {"sub": "1234567890", "exp": 1600000000}
Status: ⚠️ Expired (Sep 13, 2020)Inspect OAuth2 token claims
Input
eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJhdXRoLmV4YW1wbGUuY29tIiwiYXVkIjoiYXBpLmV4YW1wbGUuY29tIiwic2NvcGUiOiJyZWFkIHdyaXRlIn0.sig
Output
Issuer (iss): auth.example.com Audience (aud): api.example.com Scope: read write Algorithm: RS256
Check algorithm for security audit
Input
eyJhbGciOiJub25lIn0.eyJhZG1pbiI6dHJ1ZX0.
Output
⚠️ Algorithm: none -This token has no signature. Unsigned JWTs should not be trusted for authentication.
Common Errors & Fixes
InvalidTokenError: Invalid token specified
The string is not a valid JWT. Ensure it has exactly three parts separated by dots (header.payload.signature). Check for extra whitespace or line breaks.
Token shows 'expired' but user just logged in
Check the `exp` claim value -it might be in seconds while your server is comparing milliseconds (or vice versa). Also verify server and client clocks are synchronized.
Payload shows garbled characters
The payload is base64url-encoded, not standard base64. If you're decoding manually, replace - with + and _ with / before decoding, and add = padding if needed.
Key Features
FAQs
What does the JWT Decoder do?
It takes a JSON Web Token (JWT) string and decodes it into its three parts: the header (algorithm and type), the payload (claims and data), and the signature. It also shows whether the token is expired and explains what each standard claim means.
Is it safe to paste my JWT token here?
Yes. The JWT Decoder runs 100% in your browser. No token data is ever sent to a server, stored, or logged. Your sensitive authentication tokens stay completely on your device.
Can this tool verify JWT signatures?
This tool decodes and inspects JWTs but does not verify signatures, as that requires the secret key or public key. It is designed for debugging and inspection, not cryptographic verification.
What JWT claims are explained?
The tool explains all standard registered claims: iss (issuer), sub (subject), aud (audience), exp (expiration time), nbf (not before), iat (issued at), and jti (JWT ID). Custom claims are displayed as-is.
Does it work with all JWT algorithms?
Yes. The decoder works with any JWT regardless of signing algorithm (HS256, RS256, ES256, PS256, etc.) since it only decodes the base64url-encoded header and payload without needing the signing key.
Related Guides
Related Tools
Markdown Live Preview
Write Markdown and see a live preview with GFM support, copy/export options, and responsive layout.
JSON Formatter / Beautifier
Format, beautify, minify, and validate JSON instantly in your browser. No data leaves your device.
Base64 Encoder / Decoder
Encode text to Base64, decode Base64 to text, and convert images to Base64 data URIs -all in your browser.
Need help building something?
We build web apps, APIs, and mobile apps with Laravel, Next.js, and Flutter.
Get a Free Quote