Developer tools TOOL

JWT decoder and HMAC verification

Inspect token contents and verify HMAC signatures.

01

Enter your text

On-device processing
Input · Up to 2 MB
02

Output options

Decoding does not establish trust in a token. Signature verification uses the supplied key and supports HS256, HS384 and HS512 only.

No account. No uploads.

JWT decoder and HMAC verification · How to use

Inspect token contents and verify HMAC signatures.

Example

Paste a JWT to read its header and payload, and optionally enter a key for HMAC verification.

Things to know

Decoding does not establish trust. Signature verification supports only HS256, HS384 and HS512.

Output options

HMAC verification key (optional)
Check the input format.

Your files and results are never sent to a server. Everything is processed in this browser.

How to read a JWT and verify its signature

Use it while tracking down a login error to see which claims and user details a token carries and whether it has already expired. The token and key stay on your device, which suits inspecting tokens from a service you are building.

When to use this tool

  • Check whether a token has expired during a login error
  • Read the user ID and permission claims in the payload
  • Verify an HMAC signature with a shared secret

Step-by-step instructions

  1. Paste the full JWT, with its two dots, into the input.
  2. To check the signature, enter the secret in HMAC verification key (optional).
  3. Choose Convert.
  4. Read header, payload, signatureValid, expired and notYetValid in the result.

Frequently asked questions

If a token decodes, can I trust it?

No. The header and payload are only Base64URL encoded, so anyone can read or alter them. Only a verified signature, shown as signatureValid true, indicates the token came from someone holding the key.

Can it verify RS256 or ES256 tokens?

Verification supports only the shared-secret algorithms HS256, HS384 and HS512. For other tokens, leave the key empty to read the contents and expiry; entering a key shows an unsupported algorithm error.

How do I enter a secret that is Base64 encoded?

The key is used exactly as typed, as UTF-8 bytes, and is not Base64 decoded. If your server decodes a Base64 secret, enter the decoded key text for a correct result. Expiry is judged against this device's current time.

Save only the tools you need.