Base64 Encoder
Encode text to Base64 in your browser. Full Unicode support, URL-safe variant, line wrapping. Nothing is uploaded, so credentials stay local.
Input
Result
The result appears here as you type.
What this tool is for
Base64 turns arbitrary bytes into 64 safe ASCII characters so they survive transports that expect text: JSON fields, data URIs, HTTP headers, email bodies. Encoding here happens in your browser, which matters when the thing you are encoding is a token or a basic auth pair.
How to use it
- Paste the text you want to encode.
- Switch on the URL-safe variant if the result goes into a query string or a filename.
- Copy the Base64 output.
Frequently asked questions
Is Base64 encryption?
No, and this is the single most costly misunderstanding about it. Base64 is reversible by anyone in one step with no key. It hides nothing. Use it for transport, never for secrecy.
What is the URL-safe variant?
Standard Base64 uses + and /, which have meaning inside URLs. The URL-safe alphabet swaps them for - and _ and usually drops the = padding, per RFC 4648.
Does it handle non-English text?
Yes. Input is encoded as UTF-8 first, so Cyrillic, Chinese, Arabic and emoji all round-trip correctly.