Base64 URL Safe Encode & Decode
A URL- and filename-safe Base64 variant (- and _ replace + and /). This tool does both encode and decode on one page — just pick a mode, paste your text, and click. Everything runs on your device, nothing is sent to a server.
Everything runs in your browser. Your data is never sent to our servers.
Example
Example Input
Hello>?
Example Output
SGVsbG8-Pw
How to Use
- 1Choose Encode or Decode mode at the top.
- 2Type or paste your text into the Input field.
- 3Click the button (or press Ctrl+Enter) to process. The result appears in the Output field.
- 4Click Copy to copy the result, or "Swap input/output" to quickly reverse the operation.
About Base64 URL Safe
Base64 URL Safe is a Base64 variant (RFC 4648 §5) that replaces "+" with "-" and "/" with "_", and usually drops the "=" padding. The goal is to be safe to use directly in URLs and filenames.
How it works: the process is identical to standard Base64, only the character table differs in two positions and padding is optional. It is therefore easy to convert back and forth with regular Base64.
Base64 URL Safe is used in JWTs, URL parameters, tokens, and any time Base64 data needs to go into a URL without further escaping.
FAQ
Can this Base64 URL Safe tool both encode and decode?
Yes. This is a single page with a toggle — use Encode mode to transform text, and Decode mode to reverse it. No need for two separate pages.
Is my data sent to a server?
No. Base64 URL Safe is processed entirely in your browser. The text you enter never leaves your device.