Type or paste your text
Anything goes: plain text, JSON, an API key, accented characters or emoji.
Type or paste any text and get its Base64 encoding instantly, with UTF-8 support, an optional URL-safe alphabet and optional line wrapping.
100% private — everything is converted in your browser and nothing is uploaded.
100% private — everything is converted in your browser and nothing is uploaded.
Keep going with your result in another tool. Nothing is uploaded.
Anything goes: plain text, JSON, an API key, accented characters or emoji.
Standard Base64 by default; tick URL-safe to use - and _ and drop the padding.
The encoded text is ready to copy as soon as you type.
To encode text to Base64, type or paste it into the input box with Text to Base64 selected. The Base64 version appears immediately in the output box, ready to copy. Text is converted to UTF-8 bytes first, so accents, symbols and emoji are handled correctly. Nothing is uploaded: the encoding runs in your browser.
Base64 is a way of writing any binary data using only 64 safe characters: the letters A to Z and a to z, the digits 0 to 9, plus and slash. Every 3 bytes of input become 4 characters of output, so encoded data is about 33% larger. It exists because many systems, such as email, JSON and URLs, were designed for text and can break on arbitrary bytes.
| Text | Base64 | Bytes |
|---|---|---|
A | QQ== | 1 |
Hi | SGk= | 2 |
Man | TWFu | 3 |
Hello | SGVsbG8= | 5 |
Hello, World! | SGVsbG8sIFdvcmxkIQ== | 13 |
Grüße, Welt! | R3LDvMOfZSwgV2VsdCE= | 14 |
€ | 4oKs | 3 |
| Input length | Padding added | Example |
|---|---|---|
| Multiple of 3 bytes | none | Man → TWFu |
| 1 byte over | two = signs | A → QQ== |
| 2 bytes over | one = sign | Hi → SGk= |
Anyone can decode Base64 in one step, so it provides no secrecy at all. Never use it to hide passwords or personal data; use real encryption for that. Its job is transport, not protection.
The conversion runs in your browser. What you type, paste or drop is never uploaded, which matters when the text holds tokens, personal data or internal files.
More utilities that also run without leaving your browser.