JWT Decoder

Decode a JSON Web Token and, if you have the key, verify its signature. Decoding alone doesn't prove a token is genuine.

Header

Payload

What the claims mean

Verify the signature (optional)

Your data stays in your browser

This tool runs on JavaScript inside your browser. Nothing you add here is uploaded to our server, so it works for confidential data too. How we handle data

  • No upload
  • Processed on your device
  • No account

Decoding and verifying a token

  1. Paste the token into the box. A leading "Bearer " from an Authorization header is removed for you.
  2. Read the header and payload, and the table that explains each standard claim, such as exp and iss.
  3. Check the colored status line: it warns about expired tokens, tokens that aren't valid yet, and alg "none".
  4. To check the signature, paste the shared secret (HS256, HS384, HS512) or the public key in PEM format (RS, PS and ES algorithms).

What's inside a JWT?

Three pieces of text joined by dots: a header, a payload and a signature. The header says how the token was signed, for example HS256. The payload holds the claims: who the user is, who issued the token and when it expires. Both are just JSON written in base64url, which anyone can decode. The signature is what stops someone changing the payload, and it can only be checked with the right key.

Is decoding a JWT the same as verifying it?

No, and mixing them up causes real security bugs. Decoding only reads the payload; it tells you nothing about whether the token is genuine. Verifying recomputes the signature with the key and compares it. In our tests, we changed one claim in a signed token from "admin" to "superadmin": it still decoded perfectly, but verification failed straight away. A server must always verify before it trusts a claim.

Which algorithms can it verify?

HS256, HS384 and HS512 with a shared secret (plain text, or base64 if you tick the box), and RS256 to RS512, PS256 to PS512 and ES256 to ES512 with a public key in PEM format, the kind that starts with -----BEGIN PUBLIC KEY-----. Older PKCS#1 keys (BEGIN RSA PUBLIC KEY), certificates and JWK keys aren't supported yet. Encrypted tokens (JWE, with five parts) can't be decoded without the decryption key, and the tool tells you when it sees one.

Is it safe to paste a token here?

The decoding and verification run in your browser using its built-in Web Crypto, and the page makes no network request with your token. You can check: open your browser's developer tools, watch the Network tab and paste a token. Even so, a live token is a password for as long as it's valid, so prefer test tokens or expired ones, and never paste a production signing secret into any website.

Only need one part decoded? The Base64 Decoder handles plain Base64. To tidy up a long payload, paste it into the JSON Formatter, and to read the exp and iat numbers on their own, use the Unix Timestamp Converter. Our guide on whether it's safe to decode a JWT online goes further.

Questions people ask

How do I decode a JWT token online?

Paste it into the box. The header and payload appear as formatted JSON, and times like exp are shown as dates in your time zone.

Does this JWT decoder send my token to a server?

No. Decoding and signature checks happen in your browser with Web Crypto, so the token stays on your device.

How do I check if a JWT has expired?

Look at the status line and the exp row. It shows the expiry date and how long ago or how soon it is. A token with no exp claim never expires on its own.

How do I verify a JWT signature?

Paste the secret for HS256, HS384 or HS512, or the PEM public key for RS, PS or ES tokens. You'll see "Signature verified" or "Invalid signature".

Why does my JWT say invalid signature?

Either the key is wrong (a different secret, or a secret that should be base64-decoded first) or the token was changed after it was signed.

What does alg none mean in a JWT?

The token has no signature at all. Anyone can create one, so a server should never accept it. The decoder flags it in red.

Can I decode an encrypted JWT?

No. Encrypted tokens (JWE) have five parts and need the decryption key. Signed tokens, which have three parts, can always be decoded.

Related tools