Free & private
Code strings

JWT decoder

Paste a JSON Web Token to read the header and payload it carries. Decoding happens in your browser, so the token never leaves your device.

One-way100% FreeNo upload
JWT Decoder
Code strings · one-way · UTF-8
try
Input0 chars · 0 bytes
Output0 chars · 0 bytes
UTF-8 · ready⌘⏎ copy● local

What a JWT is

A JSON Web Token (JWT) is three Base64URL-encoded parts joined by dots: header.payload.signature. The header says which algorithm signed the token, the payload holds the claims (who the user is, when the token expires), and the signature proves the first two parts have not been changed. Because the header and payload are only encoded, not encrypted, anyone can read them — which is exactly what this tool does.

How to use this decoder

  1. Paste the full token, including both dots.
  2. The header and payload are decoded and shown as formatted JSON.
  3. Read the claims — sub, exp, iat, iss and any custom fields your app adds.

Decoding is not verifying

This tool reads the token; it does not check the signature. A decoded payload tells you what a token claims, not that the claim is genuine. Only your server, holding the secret or public key, can verify that the signature is valid and the token was really issued by you. Never trust a decoded claim for an access decision without verifying the signature first.

Reading the common claims

  • exp — expiry, as a Unix timestamp. If it is in the past, the token is stale.
  • iat — issued-at time.
  • sub — the subject, usually the user id.
  • iss / aud — who issued the token and who it is for.

Timestamps are seconds since 1970; convert them to a date to check expiry.

Examples

InputeyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0IiwibmFtZSI6IkFkYSIsImlhdCI6MTcwMDAwMDAwMH0.sig
Output// Header { "alg": "HS256", "typ": "JWT" } // Payload { "sub": "1234", "name": "Ada", "iat": 1700000000 }

Frequently asked questions

Can I decode a JWT without the secret?
Yes. The header and payload are only Base64URL-encoded, so they can be read without any key. The secret is only needed to verify or create a signature, not to decode.
Does this tool verify the signature?
No. It decodes and displays the header and payload. Verifying the signature requires your secret or public key and should happen on your server.
Is it safe to paste my token here?
Decoding runs entirely in your browser — the token is not uploaded. Still, treat live tokens like passwords and avoid pasting production tokens into any tool you do not control.
Why is my token shown as invalid?
A JWT must have three parts separated by two dots and valid Base64URL in the first two. Copy the whole token with no line breaks or surrounding quotes.

Related tools

Every tool on encoder.website converts your text and hands the result straight back — it is never stored. Pick another tool from the sidebar any time.