JWT Decoder
Decode any JWT token to see its header, payload, and signature. Stays in your browser โ tokens are never sent anywhere.
What a JWT actually is
A JSON Web Token (JWT) is three Base64URL-encoded parts joined by dots: header.payload.signature. The header and payload are JSON objects that anyone can decode โ they're not encrypted, just encoded. The signature proves the token wasn't tampered with, and verifying it requires the secret/key.
Common header fields
algโ algorithm: HS256 (HMAC-SHA256), RS256 (RSA-SHA256), ES256 (ECDSA), or none.typโ always "JWT".kidโ key ID, when the verifier needs to know which key to use.
Common payload claims
issโ issuer (who created the token)subโ subject (who the token is about โ usually a user ID)audโ audience (who the token is for)expโ expiration time (Unix timestamp)iatโ issued at (Unix timestamp)nbfโ not before (Unix timestamp โ token invalid before this time)jtiโ JWT ID (unique identifier, prevents replay)
Security caveat
Anyone with a JWT can read its contents. Never put sensitive data in the payload โ passwords, PII, secrets. The signature only proves authenticity, not confidentiality. If you need confidentiality, use JWE (JSON Web Encryption) instead.
