Search tools

JWT Decoder

Read the header and claims of any JSON Web Token, check if it has expired, and verify HMAC signatures — privately.

JWT Decoder tool

Decoding only reads the token; it doesn’t prove it’s genuine. Anyone can decode a JWT, so never put secrets in the payload.

Processing runs in your browser.

JSON Web Tokens (RFC 7519) carry login sessions and API permissions in three dot-separated parts: a header, a payload of claims, and a signature. When authentication fails, the first step is usually to look inside the token: who is it for, which roles does it carry, and has it expired?

Typical uses

  • Debugging auth: check why an API returns 401 — often an expired token or the wrong audience.
  • Development: inspect tokens issued by Auth0, Cognito, Firebase or your own server.
  • Security reviews: spot sensitive data that shouldn’t be in a payload, or the dangerous “none” algorithm.
  • Testing: verify that your server signs HS256 tokens with the expected secret.

How to use the JWT Decoder

  1. Paste the token. A “Bearer ” prefix is removed automatically.
  2. Read the header (algorithm and type) and the payload (claims) as formatted JSON.
  3. Check the status line: valid, expired, not yet valid, or no expiry.
  4. To check an HS256/384/512 signature, enter the shared secret and click Verify.

Features

  • Decodes header and payload from Base64URL with full UTF-8 support.
  • Turns exp, iat and nbf timestamps into readable dates and “expires in 40 minutes” style times.
  • Labels registered claims such as iss, sub, aud and jti.
  • Verifies HMAC (HS256, HS384, HS512) signatures with the Web Crypto API.
  • Detects encrypted JWE tokens and explains why they can’t be read.

Frequently asked questions

Is it safe to paste a real token here?

The token is decoded in your browser and never sent anywhere. Still, treat live tokens like passwords: anyone who has one can use it until it expires, so avoid sharing screenshots of them.

Does decoding a JWT prove it’s genuine?

No. Anyone can decode a JWT because the payload is only Base64URL-encoded, not encrypted. Only verifying the signature with the right key proves it hasn’t been altered.

Why can’t I verify an RS256 token with a secret?

RS256 and ES256 tokens are signed with a private key and verified with the matching public key, not a shared secret. This tool verifies the HMAC family, which uses one shared secret.

What do exp, iat and nbf mean?

exp is when the token expires, iat is when it was issued, and nbf (“not before”) is when it becomes valid. All three are Unix timestamps in seconds.

Written by