Skip to content
Devlar

Runs in your browser. Your input stays on your device.

JWT Decoder

Decode a JSON Web Token (JWT) to read its header, payload, and claims, right in your browser: the token never leaves your device. Expiry times show in your time zone and in UTC, risky tokens get clear warnings, and the signature is not verified.

Opens a file from your device. The file is read in your browser and is not uploaded.

0 characters · 0 B

Decoded

Privacy: This tool runs in your browser. Your input is processed on your device and is never uploaded to a server.

How to use

  1. Paste the token into the JWT box. A leading "Bearer " and surrounding quotes are removed for you, and Load example shows a sample token.
  2. Select Decode, or press Ctrl+Enter (Cmd+Enter on a Mac) anywhere in the tool. Press ? to see all keyboard shortcuts.
  3. Read the status line and the claims: when the token expires, was issued, and becomes valid, in your time zone and in UTC, with who issued it and who it is for.
  4. Check the warnings, such as "alg" set to "none", no expiry, a very long lifetime, or sensitive-looking data in the payload.
  5. Copy the header or the payload as formatted JSON. If the token is malformed, the error names the part that failed and Go to error selects the character.

Example

An HS256 token and its decoded header and payload.

Input
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20iLCJzdWIiOiJ1c2VyXzQ4MjEiLCJhdWQiOiJodHRwczovL2FwaS5leGFtcGxlLmNvbSIsIm5hbWUiOiJBeWVzaGEgS2hhbiIsInNjb3BlIjoib3JkZXJzOnJlYWQgb3JkZXJzOndyaXRlIiwiZXhwIjo0MTAyNDQ0ODAwLCJqdGkiOiIwYjlhNWYzZS03YzIxLTRkOGUtOWY2MC0yYTFiM2M0ZDVlNmYifQ.RUprgeXbt0BStQVT0BOOPrFFJXnIrw8pG8ssTzdrazw
Output
Header
{
  "alg": "HS256",
  "typ": "JWT"
}

Payload
{
  "iss": "https://auth.example.com",
  "sub": "user_4821",
  "aud": "https://api.example.com",
  "name": "Ayesha Khan",
  "scope": "orders:read orders:write",
  "exp": 4102444800,
  "jti": "0b9a5f3e-7c21-4d8e-9f60-2a1b3c4d5e6f"
}

Frequently asked questions

Is it safe to paste a token here?

Yes. The token is decoded by JavaScript in your browser and is never sent to a server, logged, or stored. You can disconnect from the internet after the page loads and it still works. A JWT is still a credential, though: anyone who has it can use it until it expires, so do not paste live production tokens into tools you do not trust.

Does this verify the signature?

No. This tool decodes the token and explains it; it does not check the signature, so it cannot tell you whether the token is genuine. Verification needs the secret or the public key and should happen in your server code with a maintained JWT library.

Why can anyone read a JWT payload?

The header and payload are only Base64URL encoded, not encrypted. The signature proves they were not changed, but it does not hide them. Never put passwords, API keys, or personal data in a JWT unless it is an encrypted JWT (JWE).

What do exp, iat, and nbf mean?

They are times in seconds since 1 January 1970 (UTC). exp is when the token expires, iat is when it was issued, and nbf ("not before") is when it starts to be valid. This tool shows each one as a date in your time zone and in UTC, with how long ago or how far ahead it is.

Why does it say expired when my app still accepts the token?

Many servers allow a little clock skew, often a minute or a few minutes, so a token can be accepted just after its exp. Your server or the issuer may also have a clock that is slightly off. The status here is calculated once, from your device’s clock, at the moment you decode.

Why is "alg": "none" dangerous?

It means the token has no signature, so anyone can change the payload, for example to raise their own permissions. Servers must never accept unsigned tokens. Some old libraries did by mistake, which is why this tool always warns about it.

Can it decode encrypted tokens (JWE)?

It recognizes them (they have five parts instead of three) and shows the protected header, which is not encrypted. The payload itself is encrypted and cannot be read without the key, so this tool does not try.

What is Base64URL?

A version of Base64 that is safe in URLs: it uses - and _ instead of + and /, and leaves out the = padding. JWTs must use it. If a token uses standard Base64 characters or padding, this tool still decodes it but warns you, because most JWT libraries will reject it.

Base64 Encoder and Decoder

Encode text or any file to Base64 and decode it back, with full UTF-8 support, URL-safe output, and data URIs.

Unix Timestamp Converter

Convert Unix timestamps in seconds, milliseconds, microseconds, or nanoseconds to dates in any time zone, and back.

URL Encoder and Decoder

Percent-encode text for URLs or decode it back, with clear errors and a breakdown of every URL part and query parameter.

Keyboard shortcuts

Run the tool, from anywhere in it
Ctrl+Enter
Show this list (outside text fields)
?
Close this list
Esc