Skip to content

JWT decoder

Free, no sign-up Runs in your browser

Decode a JWT to read its header, payload and claims, with expiry times in UTC and local time and checks for alg none and risky claims. Runs in your browser.

The token is decoded in your browser. It is not sent anywhere.

Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.

How to use the JWT decoder

  1. Paste the token. A leading "Bearer" or "Authorization:" is removed for you.
  2. Read the header and the payload as formatted JSON.
  3. Check the registered claims table for the issuer, the audience and the times.
  4. Read the checks, then verify the signature with the JWT verifier before you trust any claim.

About this tool

A JSON Web Token is three Base64URL parts joined by dots: a header that names the signing algorithm, a payload of claims, and a signature over the first two. The header and the payload are only encoded, so anyone who holds a token can read them, and so can this page. Decoding is how you find out who a token is for, what it allows and when it stops working.

The registered claims are the ones every library understands: iss says who issued the token, sub who it is about, aud who should accept it, and exp, nbf and iat are times in seconds since 1970. We show each time in UTC and in your local time and say whether the token is expired or not yet valid right now.

Decoding proves nothing. The common mistake is to read a decoded payload and trust it, or to accept whatever algorithm the header names. A token with "alg": "none" has no signature at all, and a missing exp means a stolen token works forever. The checks below point at those cases. To know that a token is real, verify its signature.

Sources

Questions

Is it safe to paste a JWT into an online decoder?

A token is a credential, so only paste it into a tool that keeps it on your machine. This page decodes in your browser and makes no network request with what you type. For a production token, the careful habit is still to use one that has expired.

Can a JWT be decoded without the secret?

Yes. The header and payload are Base64URL-encoded JSON, not encrypted, so no key is needed to read them. The secret or public key is only needed to check the signature, which is what proves the token was not changed.

What does "alg": "none" mean in a JWT?

It means the token is unsigned. The JWT standard allows it for cases where the token is protected some other way, but a verifier that accepts it lets anyone forge any claim. Libraries should be set to accept only the algorithms you use.

How do I know when a JWT expires?

Look at the exp claim. It is a number of seconds since 1 January 1970 UTC, and the token must be rejected at or after that moment. This tool converts it to a date and tells you how long is left or how long ago it passed.

What is the difference between decoding and verifying a JWT?

Decoding reads the contents. Verifying recomputes the signature with the key and compares it, which proves the token came from the holder of that key and was not edited. A service must always verify; decoding alone is for debugging.

Related tools