Skip to content

Base64 Encoder

Convert any text into a Base64 string. Unicode characters such as Arabic or emoji are encoded correctly via UTF-8 before Base64. Useful for embedding data in URLs, emails or configuration files.

What this means

Base64 represents binary data as 64 printable ASCII characters, so it survives text-only channels. Each group of 3 bytes becomes 4 characters.

How we calculate it

Formula

UTF-8 encode the string, then group bytes into 6-bit chunks mapped to A–Z a–z 0–9 + /.

Worked example

Encode 'Hello world':

  1. 1Type or paste your text.
  2. 2The Base64 output updates live.
  3. 3Copy the encoded string.

Important assumptions

  • Input is encoded as UTF-8, matching how most systems decode Base64.

Frequently asked questions

What is Base64 used for?

Embedding images in HTML or CSS, passing data in URLs, storing binary in JSON, and sending files as text over email.

Does Base64 support Arabic and emoji?

Yes, when the text is UTF-8 encoded first, which this tool does automatically.

Related tools