Base64 Encoder

Your data never leaves your browser

Encode text to Base64, including full Unicode support.

Brie — Bug Reporting Tool

Dealing with encoding issues in production?

Brie captures the full network request/response chain so you can see exactly where encoding breaks.

About Base64 Encoder

Convert any text string to its Base64 representation directly in your browser. This tool handles full Unicode text (emojis, accented characters, CJK scripts) by first UTF-8 encoding the input before applying Base64. Useful for encoding credentials, binary data payloads, or embedding data in URLs and HTML.

How to use

  1. Paste or type your text into the input panel.
  2. The Base64-encoded output appears instantly in the output panel.
  3. Click Copy to copy the result to your clipboard.

More Encoding / Decoding

Frequently Asked Questions

FAQs about Base64 Encoder

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 transmit binary data over text-only media such as email or JSON.

Why does this tool handle Unicode differently?

The native btoa() function only handles Latin-1 characters. This tool uses encodeURIComponent + unescape before btoa() to correctly encode any Unicode text, including emojis and non-Latin scripts.

Is my data sent to a server?

No. All encoding happens entirely in your browser using built-in JavaScript APIs. Nothing is transmitted.

What is Base64 used for?

Base64 is used to encode email attachments (MIME), embed images inline in CSS/HTML as data URIs, store binary data in JSON, and pass credentials in HTTP Basic Auth headers.

How do I decode Base64 back to text?

Use the companion Base64 Decoder tool to reverse the process and get your original text back.