Base64 Encoder

Convert text to Base64, with full Unicode support and an optional URL-safe variant.

Runs in your browser. Nothing you type is sent to a server.

How to use Base64 Encode — Free Online Text to Base64 Converter

  1. 1Choose the scheme you need, then encode or decode.
  2. 2Paste your text into the left-hand box.
  3. 3The converted result appears on the right — copy it, or press Swap to send it back through the other way.

About Base64 Encode

Base64 exists because a lot of the internet still assumes text. Email bodies, JSON string fields, CSS files and URLs all choke on raw binary, so Base64 maps every three bytes onto four printable characters that survive the trip intact.

The common failure in browser-based Base64 tools is Unicode. The built-in btoa function throws on any character above U+00FF, and the widely copied btoa(unescape(encodeURIComponent(x))) workaround mangles some sequences. This tool encodes through UTF-8 bytes directly, so emoji, Devanagari, Arabic and Chinese text all encode and decode without corruption.

One thing worth repeating: Base64 provides no security whatsoever. It is trivially reversible by design, which is exactly the point — it is there to keep data intact, not to keep it secret.

Frequently asked questions

What is Base64 used for?
Embedding binary data where only text is allowed: data URIs in CSS and HTML, email attachments, JSON fields, and HTTP Basic authentication headers.
Is Base64 encryption?
No, and this matters. Base64 is an encoding, not a cipher — anyone can decode it instantly with no key. Never use it to hide passwords or personal data.
Does it work with emoji and Hindi or Arabic text?
Yes. The text is converted to UTF-8 bytes before encoding, so any Unicode character round-trips exactly. Many older Base64 tools break on anything outside basic Latin.
What is URL-safe Base64?
A variant that replaces + with - and / with _ and drops the = padding, so the result can sit in a URL or filename without being escaped. Tick the box to produce it.
Why is my Base64 longer than the original?
Base64 represents 3 bytes as 4 characters, so output is about 33% larger than the input. That overhead is the price of being text-safe.
Is it free?
Yes — unlimited use, no sign-up, no watermark and no limit on how many times you run it.