Skip to tool

JWT Decoder

Decode a JWT to read its header, claims and signature. Nothing is verified, so use it to inspect a token, not to trust one.

Runs in your browser — your input is processed on this device and never uploaded.

Input

The whole token: three segments separated by dots, without the Bearer prefix. The signature is not checked.

Result

Results appear here.

About this tool

On this page

What is a JWT?

A JSON Web Token (JWT) is three Base64url segments joined by dots: a header, a payload of claims, and a signature. The signature lets the server that holds the key confirm that nobody changed the first two segments.

The header names the signing algorithm in its alg field. The payload carries whatever the issuer put there, usually a subject (sub), an issuer (iss), an expiry (exp) and an issued-at time (iat), plus custom fields.

How to use the JWT decoder

JWT
Paste the token alone, three segments separated by dots. Leave out the Bearer prefix from an Authorization header.
Header
Comes back as a JSON object you can read and copy.
Claims
Come back as a JSON object too.
Signature
Comes back as the raw Base64url segment, so you can compare it with the one you were given.

Warning

The signature, expiry and not-before time are not checked. A forged or expired token still decodes. Use this page to read a token, not to decide whether to trust it.

Why decode a JWT before you trust it

APIs adopted JWTs because one compact string can carry identity without a session lookup on every request. The same token travels in an Authorization header, a cookie or a query string. That convenience is also the trap: once you can read the payload, it is tempting to treat its claims as true.

Decoding first is how you catch the usual mistakes. A token with the wrong number of segments, a header that is not JSON, an alg you did not expect, or an exp that already passed shows up here before you wire anything into a verifier.

JWT decoder alternatives

jwt.io decodes and can also verify a signature when you give it the key. Libraries such as jsonwebtoken for Node.js and PyJWT for Python decode and verify in code, which is where verification belongs.

HMAC Generator and HMAC Verifier are the right tools when you have a raw message and a shared secret rather than a JWT.

This page does not sign, verify or decrypt. Encrypted tokens (JWE) have five segments and are refused.

Things to know about JWTs

Base64url drops the padding characters, which is why JWT strings never end in =. The exp, iat and nbf claims are Unix seconds, not dates.

Warning

The payload is encoded, not encrypted, so anyone who sees a token can read every claim in it. Keep secrets out of claims.

The alg header is chosen by whoever made the token. Well-known bugs accepted tokens with alg set to none as already verified, or let an attacker sign with an RSA public key used as an HMAC secret. Decoding shows you that header. Your verifier still has to insist on the algorithm it expects.

Browse

Find similar tools by category or tag.