Tool Details

JWT Decoder

LiveDeveloper Utilities

Decode, inspect, and debug JWT tokens instantly. See header, payload, expiry status, and claim details -all in your browser.

Launch ToolView All ToolsRuns in your browser, no data sent to any server

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

Instant JWT decoding with color-coded token segments
Header and payload displayed as formatted JSON
Live expiry status: valid, expired, or no expiry set
Countdown timer showing exact time remaining until expiry
Standard claim explanations (iss, sub, aud, exp, iat, nbf, jti)
Signature algorithm and token type detection
Copy header, payload, or full decoded output individually
Load sample JWT to explore the tool instantly
100% client-side -tokens never leave your browser
Dark mode and light mode with responsive layout

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.

Need help building something?

We build web apps, APIs, and mobile apps with Laravel, Next.js, and Flutter.

Get a Free Quote