Text and data tools

Base64 Encoder

Encode text as standard UTF-8 Base64.

Conversion input and options

0 / 5,242,880 characters

How it works

Convert text to UTF-8 bytes, then represent those bytes as standard Base64. The encoder handles accented characters, non-Latin scripts, and other Unicode text as well as English.

Encode Hello, Tierify! and paste the result into the Base64 decoder to check the round trip. Text containing multiple writing systems can be decoded again when its bytes represent valid UTF-8.

Input and output example

Input text

Hello, Tierify!

Converted text

SGVsbG8sIFRpZXJpZnkh
Download example result

Tips

Base64 is an encoding, not encryption. Anyone with the string can decode it, so do not use it to conceal passwords or private information.

Limits

This tool encodes text rather than binary files. It does not generate URL-safe Base64. Output is typically about one third larger than the input's UTF-8 byte length.

Common questions

Why is the result longer than the original text?

Base64 writes every 3 bytes as 4 characters. Characters outside ASCII take 2 to 4 bytes in UTF-8 before encoding, so é becomes w6k= and 한글 becomes 7ZWc6riA.

Can I put the result in a URL?

Standard Base64 can contain +, /, and =, which have special meanings in URLs. Percent-encode the result with the URL Encoder before adding it to a query string. This tool does not create URL-safe Base64.

Does the result contain line breaks?

No. The result is a single line. MIME email wraps Base64 at 76 characters per line and PEM files at 64, so add line breaks only when the receiving format requires them. The Base64 Decoder ignores line breaks.

Privacy notice · Report a problem · Contact