JWT Decoder

Decode a JWT payload without verifying the signature.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste a JSON Web Token to read its header and payload as JSON. A leading Bearer is removed for you. This only decodes: it does not verify the signature or check whether the token has expired.

How to use

1
Step 1
Paste the token (three dot-separated parts).
2
Step 2
Press Run.
3
Step 3
Read the header, payload and signature.

How it works

A JWT is three Base64URL segments joined by dots. The first is the header, the second is the payload (the claims), and the third is the signature. The tool decodes the first two segments and prints them as JSON, together with the raw signature segment. Anyone can read a JWT payload, so never put secrets in one.

Worked example

The jwt.io sample token

Input
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
Output
{ "header": { "alg": "HS256", "typ": "JWT" }, "payload": { "sub": "1234567890", "name": "John Doe", "iat": 1516239022 }, "signature": "SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", "warning": "This decoder does not verify signatures. Never trust decoded JWT data for authentication or authorization decisions." }
Walkthrough
iat is a Unix timestamp (1516239022 is 18 January 2018). Paste it into the Unix timestamp converter to read it as a date.

Limitations

  • The signature is not verified, so a decoded token is not proof of anything.
  • exp, nbf and iat are shown as raw numbers; they are not checked or converted to dates.
  • Encrypted tokens (JWE) cannot be read.

Questions

How do I decode a JWT?
Paste the token and press Run. The header and payload are decoded to JSON.
Does this verify the JWT signature?
No. It only decodes, so it cannot tell you whether a token is genuine.
Is it safe to paste a token here?
Decoding happens in your browser and nothing is sent. Still, treat live production tokens as secrets and prefer test tokens.
How do I read the exp claim?
It is a Unix timestamp in seconds. Convert it with the Unix timestamp converter.

Features

  • Header, payload, signature
  • Bearer prefix stripped
  • Runs in your browser

Guides

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • How base64 encoding works

    Andrew Schmelyun

    Clear mental model for Base64 tools and data-URL workflows.

    Watch on YouTube
  • TypeScript in 100 Seconds

    Fireship

    Typed JS snippets often get formatted or hashed nearby.

    Watch on YouTube
  • MDN Web Docs

    MDN

    Primary reference for web APIs these developer tools touch.

  • Window.btoa()

    MDN

    Browser Base64 APIs that local encode tools mirror conceptually.