Base64 Encoder
Encodes text as standard or URL-safe Base64, and is clear that this is encoding rather than encryption.
Loading the tool…
How to use this tool
- Paste the text you want encoded.
- Choose URL-safe if the result is going into a path, a query string or a JWT segment.
- Select Encode, then copy the result.
What base64 encoder does
Base64 exists to carry arbitrary bytes through channels that only accept text — an email attachment, a JSON string, a data URI, an HTTP header. It represents three bytes as four printable characters, which is why the output is about a third larger than the input. That is the whole of what it does.
It is not encryption and provides no protection at all. Anyone who sees a Base64 string can decode it in a second, and treating it as a way to hide a credential in a configuration file or a URL is a mistake made regularly and expensively. The URL-safe variant swaps + and / for - and _ and drops the trailing padding, so the result can be used in a path or a query string without being escaped again.