JWTs contain base64url-encoded header and payload data, so they can be decoded without a library—but decoding does not verify the signature or make the claims trustworthy.
A JSON Web Token consists of three dot-separated base64url segments: a JSON header, a JSON payload and a signature. The first two segments can be read directly because JWT encoding is not encryption.
When decoding JWT parts manually, convert the URL-safe characters back to the standard Base64 alphabet and restore missing padding. Browser JavaScript can use atob(), Python can use base64.urlsafe_b64decode(), and shell users can use base64 or a Python fallback.
The standard claims include exp for expiration, iat for issuance time, iss for issuer and aud for audience. The exp value uses Unix seconds, while JavaScript’s Date.now() uses milliseconds.
Decoding only reveals token contents; it does not authenticate them. Servers should verify the signature with the correct key and algorithm, then validate exp, iss and aud before using claims for authorization. JWT payloads should not contain passwords or other sensitive secrets.