Skip to content

JWT Decoder

Decode a JSON Web Token's header and payload and check expiry.

About the JWT Decoder

A JWT packs a base64url-encoded header and payload plus a signature. This decoder splits the token, decodes the first two parts and pretty-prints them as JSON so you can inspect claims such as sub, iss, iat and exp.

If an exp claim is present, the decoder shows whether the token has already expired and when it expires in UTC.

How to use the JWT Decoder

  1. Copy the JWT from your app, API response or Authorization header.
  2. Paste it into the input box.
  3. Read the decoded header and payload.
  4. Check the expiry line under the payload.

Examples

InputResult
eyJhbGciOiJIUzI1NiJ9…{ "alg": "HS256", "typ": "JWT" }
Token with exp claimValid until / Expired notice
Malformed tokenClear error message

Frequently asked questions

Does this verify the signature?

No. Verification needs the signing secret or public key, which should never be pasted into a web page. This tool only decodes the readable parts.

Is it safe to paste a real token?

Decoding happens entirely in your browser and nothing is sent anywhere. Even so, treat live tokens as credentials and avoid sharing them.

Is my data sent to a server?

No. This tool runs entirely in your browser using JavaScript. Nothing you enter is uploaded, logged or stored by AHRATOOLS.