Base64URL Encode
SGVsbG8sIFJhbmdkb20h
Converted locally in your browser with UTF-8 safe TextEncoder and TextDecoder handling. Your text stays only on this page.
Encode text as Base64URL
Convert plain text into the URL-safe Base64 variant (RFC 4648 §5) using browser APIs. The output uses - and _ instead of + and / and drops trailing = padding, so it travels safely in URLs, JWTs, and OAuth parameters. Unicode text is encoded as UTF-8 before btoa runs.
When to use this tool
Use Base64URL when an encoded value has to travel inside a URL, query parameter, or token. JWTs, OAuth/OIDC parameters, and other URL-safe tokens use this variant, which swaps + and / for - and _ and omits trailing = padding.
Privacy and limitations
This conversion runs locally in your browser. Base64URL is an encoding format, not encryption, so anyone can decode the result if they have the encoded text.