Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 back to readable text.
A JWT looks opaque, but two of its three parts are just Base64URL-encoded JSON. Knowing that makes debugging sessions and API errors much easier.
A JSON Web Token is three strings joined by dots: header.payload.signature. Each part is Base64URL, a variant of Base64 that replaces + with - and / with _ and drops padding.
The first segment decodes to JSON describing the token: the signing algorithm (alg) and the token type (typ). A typical value is {"alg":"HS256","typ":"JWT"}. The algorithm matters: none means no signature at all, and accepting it is a well-known vulnerability.
The second segment holds the claims. A few standard ones:
iss — the issuer, for example your auth service.sub — the subject, usually a user identifier.aud — the intended audience; a token for one API should not be accepted by another.exp — expiry, in seconds since the Unix epoch.iat / nbf — issued-at and not-before times.The third segment is not readable as JSON. It is the signature over the first two segments, produced with a secret (HMAC) or a private key (RSA, ECDSA). Checking it requires the key; decoding the payload does not.
Anyone can decode a token and edit the payload. A server must verify the signature before trusting a single claim. Client-side code should treat a decoded payload as a hint, never as proof of identity.
exp with the current time; a token may look valid in a debugger but have expired.aud matches the service you are calling.alg: none — a token with no signature is accepted by any verifier that trusts the header.exp — a token that never expires is a long-lived credential leak waiting to happen.Paste any token into the JWT decoder to inspect it. The decoding happens locally, but still avoid using production tokens on sites you do not control.