How Offline JWT Decoding Works (and Why Decode Never Means Verify)
A compact JWS JSON Web Token consists of three Base64URL-encoded segments separated by dots: header.payload.signature. Because the header and payload are encoded rather than encrypted (unlike JWE), any client can decode them locally by mapping - to +, _ to /, restoring omitted = padding, and decoding the resulting UTF-8 byte sequence.
Never paste live production OAuth or OIDC bearer tokens into server-backed websites. ByteHelpers parses every segment strictly inside your browser tab without writing tokens to URL hashes or localStorage, and flags alg: none tokens or expired exp claims immediately so you can debug auth failures safely before running server-side signature verification.
- StandardRFC 7519 (JWT) & RFC 7515 (JWS) using unpadded RFC 4648 §5 Base64URL decoding.
- Security BoundaryDecode ≠ Verify. Inspecting claims does not validate cryptographic signatures; always verify against JWKS or secrets server-side.
- Claim TimestampsAutomatically converts numeric epoch seconds (exp, nbf, iat, auth_time) into ISO-8601 UTC and live expiration deltas.
Does decoding a JWT verify its signature?
No. Base64URL decoding only reveals the cleartext JSON header and payload. Cryptographic signature verification requires the HMAC secret or asymmetric public key (JWKS) inside a trusted backend or Web Crypto verifier.
Why does native atob() fail on many real-world JWT segments?
JWT uses RFC 4648 Section 5 Base64URL, which replaces + and / with - and _ and strips trailing = padding. Native atob() expects standard Base64 and also corrupts multibyte UTF-8 characters like accented names or emoji.
Can this tool decode encrypted JWE tokens with 5 dot-separated parts?
A 5-part JWE token has a cleartext protected header in part 1, while parts 2 through 5 hold the encrypted key, IV, ciphertext, and authentication tag. You can inspect the JWE header locally, but decrypting the payload requires the private decryption key.