Skip to content

Base64 Encoder

Convert any text, including emoji and accented characters, into a Base64 string in one click.

Processed locally in your browser

Options
0 chars · 0 lines
The result will appear here.

What is Base64 Encoder?

Base64 represents binary data using 64 printable ASCII characters (A–Z, a–z, 0–9, + and /). It is used wherever bytes must travel through systems that only handle text: email attachments, JSON payloads, data URLs and HTTP Basic authentication headers.

This encoder first converts your text to UTF-8 bytes, so non-Latin characters and emoji are encoded correctly, then maps every 3 bytes to 4 Base64 characters.

How does it work?

  1. Type or paste your text in the input box; the Base64 result appears instantly.
  2. Choose line breaks (none, 76 characters for MIME, 64 for PEM) and whether to keep the "=" padding.
  3. Copy the result or download it as a text file. Use Swap to decode a Base64 string right away.

Common use cases

  • Embedding a small text or JSON snippet in a URL, cookie or config value.
  • Building an HTTP Basic Authorization header from "user:password" test credentials.
  • Preparing MIME-style Base64 blocks for email or PEM-like files.
  • Checking what a Base64 value in a log or API response should look like.

Examples

Try this input in the tool above:

Input
Hello world
Output
SGVsbG8gd29ybGQ=

Privacy

Base64 Encoder runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.

Limitations

Base64 is an encoding, not encryption: anyone can decode it. It also makes data about 33% larger. For files, use the Base64 File Encoder.

Frequently asked questions

Is Base64 a form of encryption?

No. Base64 only changes the representation of data and offers no secrecy. Never rely on it to protect passwords or tokens.

Why does my result end with "=" characters?

The "=" characters are padding that make the output length a multiple of 4. You can turn padding off, but some decoders require it.

Are emoji and accented letters supported?

Yes. Text is converted to UTF-8 before encoding, so characters such as é, ç, 你 or 😀 round-trip correctly.

More tools in Encoding & Decoding →