JWT Decoder: Decode and Verify JSON Web Tokens

Use this jwt decoder to read what is inside a JSON Web Token. Paste a token to see the header and payload as clean JSON, with issued and expiry times in plain dates. Add a secret or public key to verify the signature. It all runs in your browser.

JWT Decoder

Header, payload, expiry and signature check.

Everything runs in your browser. Nothing you enter or upload is sent to a server.

How to use the JWT Decoder

  1. Paste the JWT (with or without "Bearer ").
  2. Read the decoded header and payload.
  3. Check the expiry status and dates.
  4. To verify an HS256 token, enter the secret and press Verify signature.

How it works

A JWT has three Base64URL parts separated by dots: header, payload and signature. The first two are decoded to JSON. Time claims are Unix seconds and are shown as dates. HMAC signatures are recomputed with the Web Crypto API and compared. Need to write and run Python code in the browser? Try the Online Python Compiler.

Example

The well-known example token from jwt.io decodes to {"sub": "1234567890", "name": "John Doe", "iat": 1516239022} and verifies with the secret your-256-bit-secret.

Frequently asked questions

Is it safe to paste my token?

Decoding happens in your browser and nothing is sent anywhere. Still, avoid sharing live production tokens.

Is a JWT encrypted?

No. A normal JWT is only encoded; anyone can read the payload.

Can it verify RS256?

Not here. Only shared-secret HMAC tokens (HS256, HS384, HS512) can be verified.

See also: Base64 Encoder, JSON Formatter.

Decode a JWT

How to use it

  1. Paste the token.
  2. Read the header and payload.
  3. Check the expiry time.
  4. Verify with a key if needed.

More questions

What does exp mean?

The exp claim is the time when the token stops being valid.

Related tools: Base64 Encode & Decode, Hash Generator, JSON Formatter & Validator.

Reading the dates in a decoded token

Paste the token (with or without Bearer) and read the header, payload and claims. For an HS256, HS384 or HS512 token, enter the secret and press Verify signature. To convert an iat or exp value on its own, use the Unix Timestamp Converter.

Worked example: a test token with iat 1767225600 and exp 1767229200 decodes to Thu, 01 Jan 2026 00:00:00 GMT issued and Thu, 01 Jan 2026 01:00:00 GMT expires. The difference is 3,600 seconds, one hour, and the status line says how long ago it expired. The claims table also lists iss and sub.

More answers

How long was the example token valid?

The difference between exp and iat is the lifetime. For 1767229200 minus 1767225600 that is 3,600 seconds, or 1 hour, so the token was valid from midnight to 1:00 am GMT on January 1, 2026.

Why does the status line say the token expired hours ago?

The status line compares the exp value with your device clock and says how long ago the token expired. The example token's exp is in early 2026, so it is long past its expiry.