JWT Decoder for Headers and Claims – Free

Paste a JSON Web Token and this JWT decoder shows the header and claims as readable JSON. The token is decoded locally, and the signature is not checked.

How to use the JWT Decoder tool

  1. Paste the compact token into the Token box, without a Bearer prefix or surrounding quotes.
  2. Select Decode token. Select Example to try an unsigned sample token.
  3. Read the Header and Claims blocks in the Result box.
  4. Check the last line, which says whether a signature segment is present. It is never verified here.
  5. Select Copy to copy the decoded JSON.

What is inside a JWT

A JWT in compact form, defined by RFC 7519 and RFC 7515, is three Base64URL strings joined by dots: header, payload and signature. The header is a small JSON object that names the signing algorithm in alg and often a key ID in kid. The payload is a JSON object of claims. The signature is computed over the first two segments exactly as transmitted.

Base64URL is not encryption. Anyone holding a signed token can read its claims, so tokens should not carry secrets. This JWT decoder turns the first two segments back into bytes, parses them as UTF-8 JSON and prints each with two-space indentation.

Worked example: decoding a token by hand

Take the sample token below. The first segment, eyJhbGciOiJub25lIn0, decodes to the 14 bytes of {"alg":"none"}. The second, eyJzdWIiOiJleGFtcGxlIn0, decodes to {"sub":"example"}. Nothing follows the second dot, so the tool reports the signature as absent. RFC 7519 calls this an unsecured JWT.

eyJhbGciOiJub25lIn0.eyJzdWIiOiJleGFtcGxlIn0.

Header
{
  "alg": "none"
}

Claims
{
  "sub": "example"
}

Signature: Absent

Registered claims you will see most often

Seven claim names are registered in RFC 7519; everything else in the payload is defined by the issuer. The time claims are NumericDate values, meaning seconds since 1970-01-01 UTC. The decoder prints them as raw numbers and does not convert them. An exp of 1767225600, for instance, is 2026-01-01T00:00:00Z.

  • iss: who issued the token.
  • sub: the subject, usually a user or client ID.
  • aud: the intended recipient or recipients.
  • exp: expiry time. The token must be rejected at or after this moment.
  • nbf: the token is not valid before this time.
  • iat: when the token was issued.
  • jti: a unique token ID, useful for revocation lists.

Decoding is not verification

A decoded token tells you what it claims, not whether the claims are true. Verification means recomputing the signature with the issuer's secret or public key, then checking exp, nbf, iss and aud. This tool has no key input and does none of that. It prints Present (unverified) for any nonempty third segment, even a made-up one.

Never make an access decision from decoded claims alone. Use the decoder to debug: confirm which key ID a token references, see which scopes were granted, or find out why an API says a token has expired.

Why the JWT decoder rejects a token

Spaces and line breaks around or inside the token are ignored, so a token wrapped across lines by a terminal still decodes. Other problems stop the tool with an error.

  • It does not have exactly three dot-separated parts.
  • The text still includes Bearer, quotes or a comma copied from a header or JSON file.
  • A segment uses + or / from standard Base64. JWT segments use the URL-safe - and _ characters.
  • The header or payload is not UTF-8 JSON, which usually means the token was cut short.

Frequently asked questions

Is it safe to paste a real token here?

Decoding happens in JavaScript on this page and the token is not sent anywhere. Still, a valid access token is a credential. Prefer expired or test tokens when you can, and clear the form on shared computers.

Can this tool verify a JWT signature?

No. It only reports whether a signature segment exists. To verify, use a JWT library in your own code with the HMAC secret or the issuer's public key, which is often published at a JWKS endpoint.

How do I tell if a token has expired?

Find exp in the Claims block. It is a Unix timestamp in seconds. Compare it with the current time, for example the output of date +%s in a shell. The tool itself does not flag expired tokens.

Why does my token have five parts?

Five segments indicate a JWE, an encrypted token defined by RFC 7516. Its payload is ciphertext, so no decoder can show the claims without the decryption key. This tool accepts three-part tokens only.

Related tools