Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 strings back to plain text.

Learn more about this tool

How to Use

Enter plain text and click Encode to convert it to Base64, or paste a Base64 string and click Decode to recover the original text. This tool fully supports UTF-8 characters including emoji and non-Latin scripts.

What is Base64 Encoding?

Base64 is a binary-to-text encoding scheme that represents binary data using 64 printable ASCII characters (A–Z, a–z, 0–9, +, /). It is commonly used to embed images in HTML/CSS, transmit binary data over text-based protocols like email and JSON, and store credentials in HTTP Basic Auth headers.

UTF-8 Support

Standard btoa() only handles Latin-1 characters. This tool usesTextEncoder and TextDecoder to correctly encode and decode Unicode text, ensuring Chinese, Japanese, emoji, and other multi-byte characters work without corruption.