Skip to content

JWT decoder

Decode a JSON Web Token to read its header, its claims and its expiration date.

Encoded JWT
This token is not a valid JWT. Make sure it contains 3 parts separated by dots (.).
Header (algorithm & type)
{{ headerObj }}
Payload (data / claims)
{{ payloadObj }}
Signature {{ signature }}
Waiting for a token...

What is a JSON Web Token (JWT)?

The JWT is an open standard (RFC 7519) that defines a compact, self-contained way to securely transmit information between two parties as a JSON object. It is now widely used forAPI authentication (REST/GraphQL) and user authorization in modern applications (single-page applications).

Token structure

A JWT always consists of 3 distinct parts, separated by a dot (.) :

  • The header: Usually contains the token type ("JWT") and the signing algorithm used (e.g. HMAC SHA256 or RSA).
  • The payload: Contains the "claims". This is the information about the user, such as their ID, their role (Admin/User) and the token expiration date (exp).
  • The signature: This is the security part. It is created by the server by hashing the header, the payload and a Secret. It lets the server verify that the token was not tampered with by an attacker along the way.

Warning: a JWT is not encrypted!

It is a very common mistake to think a JWT is "encrypted". The header and payload are simply Base64Url-encoded. As you can see with this tool, anyone who intercepts the token can read it easily. Never put passwords or sensitive data in a JWT payload! What makes a JWT safe is not the secrecy of its content, but its signature, which prevents tampering.

More dev tools:

How it works

How to use the JWT decoder

Decode a JSON Web Token to read its header, its claims and its expiration date.

  1. Paste your content

    Paste the JWT token.

  2. Decode

    The header and payload are shown as JSON.

  3. Check

    Check the expiration (exp) and the issuer.

FreeNo subscription, no hidden limits.
No sign-upOpen the page and use the tool. That’s it.
InstantResults in seconds, on mobile too.
PrivateEverything runs in your browser.

About the JWT decoder

A JWT has three parts separated by dots: header, payload and signature. The first two are simply Base64URL-encoded, so they are readable.

jwt decoder decode jwt json web token decoder jwt parser jwt debugger read jwt token jwt online
FAQ

Frequently asked questions about the JWT decoder

Does decoding verify the signature?

No. It displays the content, and verification requires the secret or public key.

Is it risky to paste a token?

Decoding is local, but avoid sharing valid production tokens anyway.

What does the “exp” claim mean?

The expiration date, in seconds since January 1, 1970 (Unix timestamp).

Is a JWT encrypted?

Generally not: it is signed, not encrypted. Do not put sensitive data in it.

Esc
↑ ↓ navigateEnter open