# Base64 Encoder

> Encode any text — including emoji and non-Latin scripts — into standard Base64.

URL: https://uttir.com/base64-encoder
Categories: developer-tools, encoding-tools
Privacy: Encoding happens locally in your browser. Your text is never uploaded.

## About

Base64 represents binary data as printable ASCII characters, which is why it shows up in email attachments, data URLs, authorization headers, and encoded JSON. This encoder converts your text to UTF-8 bytes first, so emoji, accented characters, and CJK scripts all encode correctly — something naive encoders get wrong.

The result uses the standard alphabet (A–Z, a–z, 0–9, +, /) with = padding, compatible with atob, Buffer, and every mainstream decoder.

## How to use

1. **Type or paste text** — Any Unicode text works, including emoji.
2. **Copy the output** — The Base64 string updates live; use Copy to grab it.

## Examples

### Plain ASCII

The classic example.

Input:

```
hello world
```

Output:

```
aGVsbG8gd29ybGQ=
```

### Unicode

UTF-8 bytes are encoded, not raw code units.

Input:

```
✓ ok
```

Output:

```
4pyTIG9r
```

## FAQ

### Is Base64 encryption?

No. Base64 is an encoding, not encryption — anyone can decode it. It exists to transport binary data through text-only channels safely.

### Why does the output end with "="?

Padding brings the output length to a multiple of four characters. One or two "=" signs are added depending on the input length.

### What does the output look like?

A string of A-Z, a-z, 0-9, +, / characters, padded with = to a multiple of 4. The output is plain ASCII and safe to embed in URLs, JSON, HTML, and email.

## Related tools

- [Base64 Decoder](https://uttir.com/base64-decoder) — Decode Base64 back into readable text, with clear errors for malformed input.
- [URL Encoder](https://uttir.com/url-encoder) — Percent-encode text for safe use in URLs — as a query value or a full URL.

---

For the full HTML page with the live tool, visit https://uttir.com/base64-encoder.
This file is the markdown rendering at https://uttir.com/base64-encoder.md. See https://uttir.com/llms.txt for a site-wide summary.
