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.

Quick answer

A JWT has a header, payload and signature. Decoding reads the first two parts; only signature verification establishes trust.

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.

Common mistakes

  • •Treating decoded claims as verified
  • •Ignoring the exp value
  • •Confusing encoding with encryption

When to use this

  • •Debugging authentication
  • •Inspecting token claims
  • •Checking expiry times

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