Practical guide

Decode a JWT safely

A JWT is readable by anyone who has it. Decoding tells you what it claims; it does not tell you whether the token is valid or trusted. This guide covers a local inspection workflow.

Tools used in this guide

1. Never paste a production secret token

A signed JWT is a bearer credential. Anyone with it may impersonate the user until it expires. Use a synthetic test token or a token you are authorised to inspect.

2. Decode the three parts

The header and payload are Base64URL-encoded JSON, not encrypted. Decoding reveals claims and algorithm choices; it does not prove integrity.

3. Check claims, not just syntax

Read iss, aud, sub, exp, nbf and scope/role claims against the system that issued the token. A syntactically valid token can still be expired, for the wrong audience or from an untrusted issuer.

4. Verify signatures in your application

The page does not validate a production signature. Signature verification belongs in your backend with the issuer’s keys, algorithms you explicitly allow, and checks for expiry and audience. Never accept alg:none from an untrusted source.

What this guide does not promise

These tools run in your browser and are not a security product. Check the downloaded result before sharing it. Do not use a page you do not control for passwords, identity documents or other high-risk material.

Questions

Does decoding verify the JWT?

No. Decoding exposes header and payload only. Signature verification requires the issuer’s key and must be done in a trusted environment.

Is the token uploaded?

No. The decoder processes it in the tab. Avoid pasting production tokens into any page you do not control.

What does alg:none mean?

It is an unsigned token. It provides no integrity; a backend must not accept it unless a specific, deliberate test path allows it.