BASE64URL EXPLAINED
Base64 vs Base64URL
Base64URL encodes the same bytes as Base64, but avoids characters with special meaning in web addresses.
The character changes
Standard Base64 uses + and /. Base64URL
replaces them with - and _. It commonly
omits trailing = padding too.
This makes the result safe to place in URLs, filenames, cookies, and compact tokens without extra escaping.
When to use each format
Use Base64URL for JWT segments, URL query values, and identifiers. Use standard Base64 when a protocol or API explicitly expects it.
Convert Base64URL values →