Skip to main content
TestrHub home
Menu

JWT Decoder

Decode a JSON Web Token: header, payload, every claim explained, readable dates, expiry in one sentence and a signature check. Never sent or kept.

Runs in your browser. Nothing is uploaded.

Decoded in your browser as you type: the token and any key stay on this page, are not sent anywhere and are forgotten when you close it. Even so, avoid pasting production tokens that are still valid.

Paste a token to read it.

Check the signature

Optional. For HS256, HS384 or HS512, the shared secret; for RS, PS or ES algorithms, the public key in PEM (-----BEGIN PUBLIC KEY-----) or JWK format. Checked by your browser's own cryptography.

Results

What a JWT is

A JSON Web Token, or JWT (often said “jot”), is a small piece of text that a server gives to an application after you sign in, so it can prove who you are without asking again. It looks like a long string of letters in three parts separated by dots: header.payload.signature.

  • The header says how the token is signed, for example HS256 or RS256.
  • The payload holds the claims: who issued the token, who it is about, who it is for and until when it is valid.
  • The signature lets the server check that nobody has changed the first two parts.

The header and payload are only encoded in Base64URL, not encrypted. This decoder turns them back into readable text, says in one sentence whether the token is still valid, and explains each claim. It works in your browser: the token is never sent anywhere.

The JWT decoder reading an example token: the status line saying it is valid for another 49 minutes, the token in three colours, the header and payload, the claims explained with their dates, and the signature check confirming the token with its secret.

On the screenshot, with a token made just for it:

  1. The status: whether the token is still valid, and until when.
  2. The three parts, in the colours of the header and payload below.
  3. The claims, explained in plain words, with dates in your time zone.
  4. The signature check, here with the secret the token was signed with.

Reading the result

  • Expired means the exp date has passed: a server must refuse the token. The application usually gets a new one by itself.
  • Not valid yet means the nbf date is still to come.
  • Valid for… counts the time left until exp, from your device’s clock. It only reads the dates inside the token: a server can still refuse it, for example if you signed out.
  • No expiry date means the token has no exp claim: it stays usable until the server stops accepting it.

Claims the decoder does not know are marked as specific to the application that made the token.

Checking the signature

Anyone can write a token that looks right, so reading it proves nothing. Only the signature shows that it was made by someone who holds the key, and that it has not been changed since.

  • For HS256, HS384 or HS512, paste the shared secret. If the secret is stored in Base64, tick the box.
  • For RS, PS or ES algorithms, paste the public key, either in PEM form (starting with -----BEGIN PUBLIC KEY-----) or as a JWK. Many services publish their keys as a JWK set at an address ending in /.well-known/jwks.json; you can paste the whole set.

The check uses your browser’s own cryptography. A token with the algorithm none has no signature at all: a server must never accept it.

Is it safe to paste a token here?

The token and the key stay on this page: nothing is sent, saved or shared, and both fields are emptied when you leave. Even so, a token that is still valid works like a password for as long as it lasts. Prefer expired tokens or tokens from a test account, and never paste a private key: checking a signature only needs the public one.

Frequently asked questions

Can this decoder read an encrypted token?

No. An encrypted token (JWE) has five parts instead of three, and its content can only be read with the private key, which should never leave the server. The decoder tells you when a token is encrypted.

Why does my token show a date in 1970?

Dates in a JWT count seconds since 1 January 1970. A token that stores milliseconds or a very small number by mistake will show a date close to 1970 or far in the future. The timestamp converter reads any timestamp and tells you its unit.

Can I change a token here?

No. Changing a token would break its signature, and creating tokens belongs on the server that holds the key.

Last updated: November 7, 2026

Guides about this test