Free Online JWT Decoder

Paste a JWT (JSON Web Token) below to instantly see its decoded Header and Payload as readable JSON.

Input Ready

Input statistics are available via the Stats button above this field.

Output

Output statistics are available via the Stats button above this field.

Results are provided for informational purposes only and may contain errors. Please verify important information independently. Use of this tool is at your own risk.

What the JWT Decoder does

The JWT Decoder splits a JSON Web Token into its three parts and shows the header and payload as readable JSON. The header shows the signing algorithm, such as HS256. The payload contains the claims, such as sub, iat and exp.

It only decodes the token and does not verify the signature. A decoded token tells you what it claims, not whether those claims can be trusted. Verification needs the secret or public key and must happen in your own backend.

When to use it

  • Debugging a 401 or 403 error: check whether the token has expired, or whether it carries the audience, issuer or roles you expect.
  • Checking what an identity provider actually puts into its tokens.
  • Reading the iat (issued at) and exp (expires) times. They are Unix timestamps in seconds, which the Timestamp Converter turns into dates.

Worked example

Input

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkFuYSIsImlhdCI6MTc2NzIyNTYwMCwiZXhwIjoxNzY3MjI5MjAwfQ.sig_placeholder

Output

{
  "Header": {
    "alg": "HS256",
    "typ": "JWT"
  },
  "Payload": {
    "sub": "1234567890",
    "name": "Ana",
    "iat": 1767225600,
    "exp": 1767229200
  },
  "Signature": "sig_placeholder"
}

Common questions about the JWT Decoder

Is the signature checked?

No. The decoder reads the header and payload only. Never accept a token as valid because it decodes correctly.

Is it safe to paste a real token?

With JSON output, the token is decoded in your browser and is not sent to the 4Dev server. If you pick another format, only the decoded header and payload, without the signature, go to the server to build it. A token can still grant access until it expires, so avoid pasting live production tokens, and revoke any token you think was exposed.

Why does decoding fail?

A JWT must have exactly three parts separated by dots, and the first two must be valid base64url-encoded JSON. Extra spaces or a missing part cause an error. Encrypted tokens (JWE) have five parts and cannot be read without the key.

Frequently Asked Questions

Does this verify the JWT signature?

No - this decodes the header and payload only, which doesn’t require the secret key. It does not verify whether the signature is valid.

Is my token sent anywhere or stored?

With JSON output, the token is decoded in your browser and is not sent anywhere. If you pick another format, only the decoded header and payload, without the signature, go to the server to build it, and they are not stored. Avoid pasting live production tokens all the same.

What if I get "Invalid JWT format"?

A valid JWT has exactly three dot-separated parts (header.payload.signature). Double check you copied the entire token, including all three segments.

Is this free?

Yes, it's free to use. No signup, no email required. Get results on this page.

How do I get my result?

Everything works right on this page. Your result appears here; no email delivery is required.