JWT Decoder

Paste a token to read its header and claims and see when it expires. Add the secret or public key to check the signature. Tokens and keys stay on this page.

How it works

A JSON Web Token is three pieces of Base64url text joined by dots: a header that says how it was signed, the claims (the data), and a signature. The first two are only encoded, not encrypted, so anyone holding a token can read them.

The decoder splits the token, decodes the header and the claims, and shows them as formatted JSON. Times in a JWT are counted in seconds since 1970, so exp, iat and nbf are turned into your local date and time, with how long ago or how far off they are, and a plain status: Valid now, Expired, Not valid yet or No expiry.

Reading a token tells you what it claims, not whether to believe it. For that, Verify signature recomputes the signature with the secret (HS256, HS384, HS512) or checks it with the public key (RS, PS, ES and EdDSA). All of it runs in your browser with Web Crypto; the token, secret and key never leave the page.

How to use it

  1. 1 Paste the token into the Token box. A leading "Bearer " from an Authorization header is ignored.
  2. 2 Read the Header and Claims, and the Expires, Issued and Not valid before times with the status line.
  3. 3 To check the signature, open Verify signature. For HS tokens type the Secret and set Secret is to Text or Base64; for the others paste the Public key (PEM).
  4. 4 Read the verdict: Signature verified or Signature does not match.

Good to know

  • Decoding is not verifying. A token whose claims look right may still be forged; only a verified signature shows it came from the issuer.
  • Never put passwords or personal data in claims. Anyone who sees the token can read them, exactly as this page does.
  • A token with alg "none" is unsigned. The page says so instead of calling it valid; a server should reject it.
  • A token with five parts is encrypted (JWE). Its claims cannot be read without the decryption key, and the page tells you that rather than showing nothing.
  • If an HS signature will not verify with the right secret, try Secret is: Base64. Some systems store the secret Base64-encoded.

Browser support

  • Chrome 94 and later · full speed from 137
  • Firefox 93 and later · full speed from 129
  • Safari 16.4 and later · full speed from 17
  • Edge 94 and later · full speed from 137

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Taking apart the most famous JWT on the internet

Nearly every JWT tutorial uses the same token, so it makes a good one to take apart by hand: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c. Paste it into the box above as you read. The two dots split it into three parts, and each part is Base64url: ordinary Base64 with - and _ in place of + and /, and the = padding left off.

The first part, eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9, decodes to the 27 characters {"alg":"HS256","typ":"JWT"}. That is the header. It says the token is signed with HMAC-SHA256, which means the issuer and the checker share one secret. Every JWT starts with eyJ because every header starts with {", and that is how {" looks in Base64.

The second part decodes to {"sub":"1234567890","name":"John Doe","iat":1516239022}. These are the claims. sub is the subject, usually a user id. iat is "issued at", a count of seconds since 1 January 1970 UTC. 1516239022 seconds after that is 18 January 2018 at 01:30:22 UTC, which the page shows in your own time zone along with how long ago it was. There is no exp claim, so the status reads No expiry: this token never runs out, which a real issuer should almost never allow.

Notice what just happened. Nothing secret was needed to read any of that. Base64url is a spelling, not a lock, so whatever a server puts in the claims is visible to the user, to their browser extensions and to every log the token passes through. Put an id in a JWT, never a password, and check what your own tokens carry by pasting one here.

The third part is the signature: 32 bytes, 49f94ac7...c397 in hex, written in Base64url as SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c. It is the HMAC-SHA256 of the first two parts exactly as written, dots included, with the secret as the key. Open Verify signature and type your-256-bit-secret, the secret the tutorials use. The page computes the HMAC itself, compares, and says Signature verified. Change one character of the secret, or one character of the claims, and it says Signature does not match. That check is what a server does on every request, and it is the only reason a JWT can be trusted at all.

This also shows the difference between decoding and verifying. The decoder happily showed you John Doe before any secret was typed. A careless server that only decodes would accept a token in which someone edited sub to another user id. Verification is what catches that. Tokens signed with RS256, ES256 or EdDSA work the same way, except the check uses the issuer’s public key, which you can paste in PEM form, so anyone can verify while only the issuer can sign. Whichever you check, the token and the key stay in this page and are never sent anywhere.

Frequently asked questions

Is it safe to paste a real token here?

The token is decoded and checked in your browser and is not sent anywhere. Still, a live token is a password for as long as it is valid. Prefer expired or test tokens, and never paste one into a site that sends it to a server.

Why can anyone read the claims? Isn’t a JWT encrypted?

A normal signed JWT (JWS) is encoded with Base64url, which anyone can reverse. The signature stops people changing it, not reading it. Encrypted tokens (JWE) exist, and have five parts instead of three.

What do exp, iat and nbf mean?

exp is when the token stops being valid, iat is when it was issued, and nbf is the time before which it must not be accepted. Each is a number of seconds since 1 January 1970 UTC, shown here as your local time.

Which algorithms can it verify?

HS256, HS384 and HS512 with a shared secret; RS256, RS384, RS512, PS256, PS384, PS512, ES256 and ES384 with a public key in PEM; and EdDSA (Ed25519) in browsers whose Web Crypto has it: Chrome 137, Firefox 129, Safari 17 and later.

The public key starts with BEGIN RSA PUBLIC KEY. Why is it refused?

That is the older PKCS#1 form. The page reads the standard SPKI form, BEGIN PUBLIC KEY. Convert with: openssl rsa -RSAPublicKey_in -in key.pem -pubout.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.