๐ก๏ธ Web Security & Token Encoding
Base64URL (URL-Safe Base64) Converter
Convert plaintext & standard Base64 to $\text{RFC 4648 \S 5}$ URL-safe $\text{Base64URL}$ (replacing $+$ with $-$, $/$ with $\_$, and removing $=$ padding) with instant JWT token decoding.
๐ซ JSON Web Token Payload
๐ Complex URL String
๐ฆ Sample Sentence
Plaintext / UTF-8 String
Chars: 51
Base64URL (URL-Safe)
Valid URL-Safe Base64
Standard Base64 vs Base64URL Comparison:
Why Base64URL is Critical for Modern Web APIs
Standard Base64 contains characters (`+`, `/`, and `=`) that have special reserved meanings in HTTP URLs, filenames, and URL query strings:
- Character Substitutions:
- `+` (Plus) becomes `-` (Minus / Hyphen)
- `/` (Slash) becomes `_` (Underscore)
- `=` (Trailing Padding) is removed entirely
- JSON Web Tokens (JWT): Standard RFC 7519 JWT headers and payloads are encoded in Base64URL so they can be placed directly in HTTP Authorization headers and URL query parameters without corruption.