About this tool
A JSON Web Token (JWT) is a compact, signed token used to authenticate users against APIs – for example as a bearer token after logging in via OAuth 2.0 or OpenID Connect. It consists of three Base64URL-encoded parts separated by dots: header, payload (the “claims”) and signature.
The JWT decoder shows header and payload in readable form, turns time claims such as exp, iat and nbf into real dates and tells you whether the token has expired. With a secret or public key (PEM or JWK) you can also verify the signature – for HS, RS, PS and ES algorithms.
Decoding and verification run entirely in your browser using the Web Crypto API. The token is never sent anywhere.
How it works
- Paste the token (it usually starts with eyJ) into the field.
- Header, payload and the key claims appear instantly, including the expiry status.
- To verify the signature, enter the secret (for HS256 etc.) or the public key (for RS256, ES256 etc.).
- The result shows “Signature verified” or “Invalid signature”.
Frequently asked questions
Is a JWT encrypted?
No, a regular JWT (JWS) is only signed. Anyone can read its content – the signature only prevents undetected changes. So never put secret data in the payload.
What do exp, iat and nbf mean?
exp is the expiry time, iat the time the token was issued and nbf the time from which it is valid. All three are Unix timestamps in seconds. You can also convert single values with the Unix Timestamp Converter.
Where do I get the public key?
Identity providers usually publish their keys as a JWKS at a URL such as /.well-known/jwks.json. You can paste the JSON directly – the matching key is selected via the kid in the header.
Is it safe to paste a token here?
The token never leaves your browser. Still, a valid token is like a password: only share production tokens and secrets with tools you trust, and revoke them if in doubt.