Base64 encode

Convert text to a Base64 string from UTF-8 bytes; runs locally.

Type or paste text. The tool encodes UTF-8 bytes to Base64 (RFC 4648).

Input
Base64

How it works

Your text is converted to UTF-8 bytes, then each byte is encoded to Base64 characters.

Output uses the standard alphabet A to Z, a to z, 0 to 9, +, / with padding = when needed.

What is Base64?

Base64 maps binary data to printable ASCII. It is not encryption; anyone can decode it.

Privacy

Encoding runs in your browser. Avoid pasting secrets on shared devices.

Common questions

Is this UTF-8?
Yes. The input is encoded as UTF-8 before Base64.
Why is the output longer?
Base64 expands data by roughly 4/3 compared to raw bytes.
Can I decode here too?
Use the Base64 decode tool in this section.
Line breaks in output?
This tool shows one continuous string; you can paste wrapped text when decoding.