UtilDojo

Popular

Menu

JWT Decoder — Decode JSON Web Tokens Online

  • This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.

Encoded token

About this tool

A JSON Web Token has three base64url-encoded parts separated by dots: a header (algorithm and type), a payload of claims, and a signature. Paste a token — with or without a “Bearer ” prefix — to see the header and payload as formatted JSON.

The Sample button loads a harmless demo token: its header is {"alg":"HS256","typ":"JWT"} and its payload has sub, name, role, iat and exp. The three parts are coloured in the input so you can see where each begins.

Time claims (iat, nbf, exp) are converted from Unix seconds to readable dates in your local time zone with a relative time, and a badge tells you if the token is expired, not yet valid, still valid, or has no expiry claim. Many “401 Unauthorized” bugs come down to an expired exp or a clock difference between servers, so checking the claim is a quick first step.

Decoding does not need the secret and does not verify the signature. Your token stays in your browser, which matters because JWTs often grant access to real accounts. A five-part token is an encrypted JWE and cannot be read here. If the header or payload is not valid base64url or JSON, you get a message that names which part is wrong, and a token with the wrong number of parts reports how many it found.

Frequently asked questions

Is it safe to paste a production token here?

The token is decoded locally and never sent anywhere. Still, treat live tokens like passwords and prefer expired or test tokens when sharing your screen.

Does this verify the signature?

No. Verification requires the secret or public key and should happen on your server. This tool only decodes the readable parts.

Why can I read the payload without a key?

JWT payloads are only encoded, not encrypted. Anyone holding the token can read its claims, so never put secrets in a JWT payload.

Why does it say my token has the wrong number of parts?

A signed JWT has exactly three dot-separated parts. Check that the whole token was copied, without a line break, and that you did not paste only the payload.

Which times does it convert?

The registered claims iat (issued at), nbf (not before) and exp (expires). Other custom claims stay as they are in the JSON.

Read the guide

Related tools