Base64 Encode Text
Convert any text or string to Base64 — useful for data URIs, API payloads and binary-safe transport.
Encode any text to Base64 instantly. Free, private online Base64 encoder.
Base64 Encode Text examples
| Input | Output |
|---|
| Hello world | SGVsbG8gd29ybGQ= |
| Café | Q2Fmw6k= |
How the base64 encode text works
- Your text is encoded as UTF-8 bytes.
- The bytes are converted to standard Base64 with padding.
- Non-ASCII characters such as é are encoded correctly, not lost.
Rules and edge cases
- Text is encoded as UTF-8 bytes first, so Café encodes correctly to Q2Fmw6k= rather than losing the accent.
- Standard Base64 with = padding is produced — the alphabet is A–Z, a–z, 0–9, + and /.
- Base64 grows the data by roughly 33%, so 300 characters become about 400.
- URL encoding is the right choice for query strings; Base64 with + and / needs escaping in a URL.
Frequently asked questions
Is Base64 encryption?
No. It is a reversible encoding with no key, and anyone can decode it instantly. Never use it to protect passwords or personal data.
Why does my encoded emoji look longer than expected?
An emoji is four UTF-8 bytes, and Base64 expands every three bytes into four characters — so a single emoji costs eight encoded characters.