Contact

Tools  /  Encoding  /  Base64 Encoder

Base64 Encoder

Encode text to Base64. Handles emoji and accents correctly.

What this tool does

Text typed or pasted on the left encodes to Base64 on the right, live, as a one-way conversion — the format Base64 itself does not compress or encrypt anything, it only represents the same bytes as plain ASCII text.

Why emoji and accented text need special handling

The plain JavaScript function most encoders are built on, btoa, only understands one byte per character and throws an error on anything outside that range — which includes emoji, most accented letters, and non-Latin scripts. Text is converted to its real UTF-8 bytes first here, so something like "café ☕" encodes correctly on the first try instead of failing.

Privacy

Encoding happens in your browser. Nothing you type or paste is sent to a server.

Frequently asked questions

Is my data uploaded anywhere?
No. Encoding happens locally in the browser — nothing is sent to a server.
Does Base64 encryption keep my text secret?
No — Base64 is not encryption. It is a reversible representation of the same bytes as text, and anyone can decode it back with no key or password needed. It should never be relied on to hide sensitive data.
Why does encoding emoji or accented text sometimes fail on other tools?
The underlying btoa function in JavaScript only understands one byte per character and throws an error on anything outside that range. Converting text to its real UTF-8 bytes first avoids that failure entirely.
Does encoding add or remove any characters from the original text?
The result is longer than the original text, since Base64 represents each group of three original bytes as four output characters, plus padding to round out the last group when needed.
Where does a Base64-encoded string usually get used?
Common places include embedding a small image directly in HTML or CSS, sending binary data through a text-only format like JSON or an email attachment, and encoding data for inclusion in a URL or a token.
Theme Accent