JWT Decoder

Paste a token to read what it says and when it expires, then check its signature with the secret or the public key.

  • A token’s header and claims are only Base64url: anyone holding it can read them. Never put a secret in one.
  • Reading isn’t trusting: only a signature checked with the right secret or public key shows who made it and that nothing changed.
  • exp, nbf and iat are seconds since 1970 in UTC; a server allows a little clock skew (.NET’s default is five minutes), so a token can work a bit past its exp.
  • Checks HS256, HS384 and HS512 with the secret; RS, PS and ES with a public key as PEM, a JWK or a whole JWK Set (picked by the token’s kid); EdDSA where your browser has it. alg none is never called valid, and a private key is refused.
  • Five parts instead of three is an encrypted token (a JWE): only its header can be read without the key.

More tools

Keep exploring.

All tools

Markdown Editor

Write Markdown and see it as you type, with GitHub alerts, tables, tasks, math, Mermaid and PlantUML.

Text Compare

Two texts or files side by side, every change lined up to the character.

Code Practice

Puzzles that compile, to keep a developer's mind sharp.