Decoder JWT & Signature Validator
Paste, decode, audit, verify and even generate JSON Web Tokens — without them ever leaving your browser.
RFC 7519 Architecture: JSON Web Tokens (JWT)
Base64Url structure, standard claims, signature algorithms, and stateless security.
A JWT comprises three dot-separated Base64Url parts: Header (algorithm metadata), Payload (user claims), and Signature (cryptographic tamper-proof proof).
HMAC relies on a shared symmetric secret. Microservices favor asymmetric RS256/ES256 where an Auth Server signs with a private key and consumers verify with public keys.
RFC 7519 establishes UNIX epoch timestamps for `exp` (expiration), `iat` (issued at), and `nbf` (not before), alongside `iss` (issuer) and `aud` (audience).
Access Tokens should have short lifespans (5-15 mins). Long-term session continuity is handled via opaque Refresh Tokens stored in secure `HttpOnly` cookies.
JWT Verification, Signature & Expiry Troubleshooting
Step-by-step fixes for expired tokens, signature mismatches, and algorithm exploits.
TokenExpiredError / Clock Skew Discrepancy
Invalid Signature: Secret Mismatch or PEM Format Error
Algorithm Confusion Exploit & 'alg: none' Bypass
Insecure Storage in localStorage & XSS Token Theft
Did You Know? JWT Standard Trivia
Official 'jot' pronunciation, the 4KB header limit, and the stateless revocation paradox.
Official Pronunciation: JWT is Pronounced 'Jot'
Section 1 of RFC 7519 explicitly specifies: 'The suggested pronunciation of JWT is the same as the English word *jot*'.
The 4KB HTTP Header & Cookie Overflow
Servers like Nginx enforce 4KB-8KB request header limits. Overloading JWT payloads triggers HTTP `431 Request Header Fields Too Large` errors.
The Revocation Paradox: Stateless Tokens Can't Be Killed
Because JWT verification is stateless without database roundtrips, valid signatures remain valid until `exp`. Early revocation requires stateful blacklists like Redis.
JOSE: The Complete Cryptographic Family
JWT belongs to the IETF JOSE suite alongside JWS (signatures), JWE (encryption), JWK (key representations), and JWA (algorithms).