How it works
A JWT is three Base64url strings joined by dots: a header, a payload and a signature. The decoder splits the token on those dots, Base64url-decodes the first two segments and parses each as JSON, which is all that reading a token takes — no key and no network request. The registered claims from RFC 7519 (iss, sub, aud, exp, nbf, iat and jti) are picked out and labelled, and the three timestamp claims are shown as UTC dates with how far in the past or future they fall, so an expired token is obvious without converting epoch seconds by hand.
Verification is a separate step, because the signature is the only part of a token that cannot be forged. Paste the HMAC secret or the issuer’s public key and the signature is checked against the exact bytes of the first two segments using the Web Crypto API built into the browser. The header’s alg picks the algorithm, the key is imported in whichever form you pasted it, and the result says whether the signature matches that key — which is what proves the claims were issued by whoever holds it and have not been altered since.
The input is forgiving about how a token was copied. A leading Authorization: or Bearer prefix, the quotes around a token lifted from a JSON body and the line breaks a terminal inserts are all stripped before decoding, so a token pasted straight out of a request log decodes without tidying.