Home › Developer Tools › JWT Decoder

JWT Decoder

Read the header, payload and time claims of a JSON Web Token. The token is decoded in your browser. The signature is shown but not verified.

Signature NOT verified This tool does not check the signature. Anyone can make a token with any contents, so the decoded fields do not prove who issued the token or that it was not changed.

Paste a JWT to decode.
Algorithm (alg)-
Expires (exp, UTC)-
Not before (nbf, UTC)-
Issued at (iat, UTC)-

Time claims

Expiry checks use the clock on your device.

ClaimValue as receivedUTC timeStatus

Decoded header

-

Decoded payload

-

Signature (as received)

Not verified

-

How to use

  1. Paste the whole token into the box. It looks like three blocks of letters and digits joined by two dots.
  2. Read the Algorithm, Expires, Not before and Issued at figures above the tables. A status flag shows whether the token has expired or is not yet valid, using your device clock.
  3. Scroll to Decoded header and Decoded payload to read the JSON claims.
  4. Remember the red "Signature NOT verified" badge. The page shows the signature exactly as pasted and does not check it.
  5. Clear the box when you finish. The page does not store the token.

Worked example

This token was built for the example. It is not a real credential:

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkFkYSIsImlhdCI6MTcwMDAwMDAwMCwiZXhwIjoxNzAwMDAzNjAwfQ.c2lnbmF0dXJl

The header decodes to {"alg":"HS256","typ":"JWT"}. The payload decodes to {"sub":"1234567890","name":"Ada","iat":1700000000,"exp":1700003600}. The tool shows the algorithm as HS256, Issued at as 2023-11-14T22:13:20Z and Expires as 2023-11-14T23:13:20Z, exactly one hour later. The last block, c2lnbmF0dXJl, is only the text "signature" in base64url, so no key could ever verify it.

How it works

The token is decoded in your browser. Nothing is sent to a server, and the page does not store the token. Close the page or clear the box and it is gone.

The token is split at its two dots into a header, a payload and a signature. The header and payload are decoded from base64url, read as UTF-8 text and parsed as JSON objects. The time claims exp, nbf and iat are shown as UTC times, and the algorithm is taken from the header. The signature is shown exactly as you pasted it.

A decoded token does not prove who issued it. Checking a signature needs the issuer's key, which this page does not have, so it does not verify the signature. Only your own server should accept a token, and only after it has verified the signature and the claims it relies on.

Expiry and not-before flags compare the claims with the clock on your device, so a wrong clock gives a wrong flag.

The format is the JSON Web Token standard, RFC 7519. The signed container is a JSON Web Signature, RFC 7515, and base64url is defined in RFC 4648 section 5. It replaces + and / with - and _ and drops the = padding, so a token can sit safely in a URL or header. The registered time claims are NumericDate values: whole seconds since 1970 in UTC.

Common mistakes

Frequently asked questions

Why does the tool not verify the signature?

Verification needs the issuer's secret or public key, and that belongs on your server, not in a pasted web page. Showing the signature as received keeps the page honest about what it knows.

What do exp, nbf and iat mean?

Exp is the time after which the token must not be accepted. Nbf is the time before which it must not be accepted. Iat is when it was issued. All three are in seconds since 1970.

Does the token have to be in a particular format?

It must have three parts separated by two dots, and the first two must be base64url text that decodes to JSON objects. Otherwise the tool shows a message saying what is wrong.

Is an encrypted token (JWE) supported?

No. An encrypted token has five parts, and its contents cannot be read without the key.

Why do I see an expired flag on a token that works for me?

The flag compares the claim with your device clock. If your clock is wrong, or the server allows some clock skew, the two will disagree.

Related tools