Skip to content
toolstome

JWT decoder

Paste a JSON Web Token to see what it contains: the header with its signing algorithm, and the payload with the user, roles and other claims, formatted as readable JSON. Issued, not-before and expiry times are shown as dates with a clear valid or expired label. For tokens signed with a shared secret (HS256, HS384 or HS512) you can also check the signature. Everything happens in your browser, so production tokens are never sent to a server.

Free · No sign-upProcessed in your browser

How to use the JWT Decoder

  1. 1

    Paste the token

    Paste the JWT, with or without the 'Bearer ' prefix.

  2. 2

    Read header and payload

    The algorithm, claims and formatted JSON appear immediately.

  3. 3

    Check the dates

    See when the token was issued and when it expires, in your local time.

  4. 4

    Verify the signature (optional)

    For HS256/384/512 tokens, enter the secret and press Verify.

How a JWT is structured

A JWT (RFC 7519) has three Base64url parts separated by dots: a header (algorithm and type), a payload (claims) and a signature. Decoding the first two needs no key, which is why tokens must never contain secrets.

The signature is computed over 'header.payload'. For HMAC algorithms it is HMAC-SHA-256/384/512 with a shared secret; matching it proves the token was not changed by someone without the secret. Times such as exp and iat are seconds since 1 January 1970 UTC.

  • token = base64url(header) . base64url(payload) . base64url(signature)
  • HS256 signature = HMAC-SHA-256(secret, header . payload)

When to use it

  • Debug login problems by checking a token's expiry, audience and roles.
  • Confirm what an API or identity provider puts into its tokens.
  • Test that your backend signs tokens with the expected secret.

Limits

  • Signature checking supports HMAC (HS256/384/512) only, not RSA or ECDSA public keys.
  • Encrypted tokens (JWE, five parts) cannot be read without the decryption key.

Privacy

Tokens and secrets are processed only in your browser and are never sent anywhere. Still, treat real tokens like passwords.

Frequently asked questions

Is it safe to paste a real token here?

The token never leaves your browser. Still, a valid token can grant access, so avoid sharing screenshots and prefer expired or test tokens when possible.

Why can anyone read my JWT payload?

JWTs are signed, not encrypted. The signature stops changes but not reading, so never put passwords or private data in claims.

What does 'alg: none' mean?

The token has no signature. Servers must reject such tokens; accepting them is a well-known security hole.

Why does verification fail with the right secret?

Check whether your secret is stored as plain text or Base64; tick the Base64 option if needed. Extra spaces or line breaks also change the result.

What are exp, iat and nbf?

Expiry time, issued-at time and not-before time, as seconds since 1970 UTC. The tool converts them to readable dates.

Can it verify RS256 tokens?

Not yet. RS256 and ES256 need the issuer's public key; this tool currently checks HMAC signatures only.

People also use

Last updated November 19, 2026 · How we build and test our tools

Categories

Recently used tools

Tools you open will appear here.

More