How JWT Decoding Works
A JWT is structured as header.payload.signature, three base64url-encoded segments joined by dots. The decoder splits on ., base64url-decodes the first two segments, and JSON-parses each. The header typically contains {"alg": "RS256", "typ": "JWT"} (the signing algorithm and type). The payload contains the claims: standard claims like iss (issuer), sub (subject/user ID), aud (audience), exp (expiration), iat (issued at), nbf (not before), plus any custom claims your auth system adds. This tool also flags expired tokens by comparing the exp claim to the current time.