Skip to content
Devtoolry

JWT Decoder & Verifier

Paste a JWT to decode its header and payload instantly, read exp and iat as dates and verify HS256 signatures. Tokens are decoded locally, never uploaded.

Runs in your browser · Nothing uploadedFree · No sign-up

Something not working, or missing a feature? Send feedback

About the JWT Decoder & Verifier

Paste a JWT (the eyJ… string from an Authorization header, cookie or log) and see what is inside instantly. A JSON Web Token carries a header, claims and a signature. The JWT Decoder shows each part, explains standard claims and expiry times, and verifies HMAC signatures locally with your secret.

Everything runs in your browser, so your input is never uploaded to a server.

How to use the JWT Decoder & Verifier

  1. Paste the token (three Base64URL parts separated by dots).
  2. Read the decoded header and payload, including human-readable expiry.
  3. Enter the secret to verify an HS256, HS384 or HS512 signature.

Example

Decode a test token

Input

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyXzEyMyIsIm5hbWUiOiJBZGEgTG92ZWxhY2UiLCJyb2xlIjoiYWRtaW4iLCJpYXQiOjE3NjcyMjU2MDAsImV4cCI6MTc2NzIyOTIwMH0.od6B3BCmcmhe0a7HfIBFDOw_LKobRAh0bc08dhasgoM

Result

Header:  { "alg": "HS256", "typ": "JWT" }
Payload: {
  "sub": "user_123",
  "name": "Ada Lovelace",
  "role": "admin",
  "iat": 1767225600,   → 1 Jan 2026, 00:00 UTC
  "exp": 1767229200    → 1 Jan 2026, 01:00 UTC (expired)
}

Summary of what the decoder shows. The token was valid for one hour after it was issued; enter the secret my-test-secret to see the signature verify.

Common mistakes

  • Decoding is not verifying. Anyone can decode a JWT. Only checking the signature with the right key proves it was issued by your server and not modified, so never trust decoded claims on their own.
  • Expiry is in seconds. exp, iat and nbf are Unix timestamps in seconds. Comparing them with Date.now(), which returns milliseconds, makes every token look valid for decades.
  • RS256 and ES256 tokens. Tokens from identity providers such as Auth0, Cognito or Google are signed with a private key and verified with a public key (JWKS), not a shared secret. They decode here, but only HS256, HS384 and HS512 can be verified.
  • Clock skew. A token can look expired or not yet valid when server clocks differ by a few seconds. Most libraries accept a small leeway; configure one instead of disabling the expiry check.

Works well with the JWT Decoder & Verifier

Frequently asked questions

Is it safe to paste a production token?

Decoding and verification happen entirely in your browser; nothing is sent to a server. Still, treat valid tokens like passwords and prefer expired or test tokens.

Why can anyone read my token?

JWT payloads are only encoded, not encrypted. Never put secrets in them; the signature only proves they were not modified.

What are iat, exp, nbf and sub?

iat is when the token was issued, exp when it expires and nbf the time before which it is not valid; all three are Unix timestamps in seconds. sub identifies the user or subject the token is about.

Why does my token show as expired?

Its exp time is earlier than your device clock. Request a new token, or check that the server issuing it has the correct time.

Guides and tutorials