Skip to content
Local Only Dev Tools
5 min read

JWT Explained

The three parts of a JSON Web Token and what decoding can and cannot tell you.

Three parts

A JSON Web Token has three dot-separated parts: header, payload and signature. The header describes the algorithm; the payload carries claims; the signature proves integrity when verified correctly.

Decoding is not verifying

Base64url encoding is reversible by anyone. Decoding a token only lets you read it — it does not prove the token was issued by a trusted party.

Signature verification requires the correct secret or public key and must happen on a trusted server.

Claims to inspect

Look at iss, aud, exp and iat. An expired exp value means the token should be rejected, but only after the signature is verified.

Try it yourself

Decode a JSON Web Token and inspect its header, payload and signature without verification. Runs locally in your browser.

Open JWT Decoder