Encoded Token

HEADERAlgorithm: HS256
{
  "alg": "HS256",
  "typ": "JWT"
}
PAYLOADIssued: Jan 18, 2018, 01:30:22
{
  "sub": "1234567890",
  "name": "John Doe",
  "iat": 1516239022
}
SIGNATUREPresent
HMACSHA256(
  base64UrlEncode(header) + "." +
  base64UrlEncode(payload),
  secret
)

This tool decodes JWT tokens for inspection only. No signature verification is performed. Never trust unverified tokens in production.

How to Use the JWT Decoder

Paste a JSON Web Token into the input field. The tool instantly decodes the Base64URL-encoded header and payload, displaying the contents in a readable JSON format. The signature section shows the algorithm used.

What is a JWT?

A JSON Web Token (JWT) is a compact, URL-safe token format used for securely transmitting information between parties. It consists of three parts separated by dots: a header (algorithm and token type), a payload (claims and data), and a signature (for verification).

JWT Structure

  • Header — Contains the signing algorithm (e.g., HS256, RS256) and token type (JWT).
  • Payload — Contains claims: registered (iss, exp, sub), public, and private claims.
  • Signature — Created by signing the encoded header and payload with a secret or private key.

Common JWT Claims

  • iss (Issuer) — Who issued the token.
  • sub (Subject) — The subject of the token.
  • exp (Expiration) — When the token expires (Unix timestamp).
  • iat (Issued At) — When the token was issued.
  • aud (Audience) — Intended recipient of the token.

Related Guides

Related Articles