Base64 Encoder & Decoder

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

Base64 Output

How to Use This Tool

  1. Select "Encode" to convert plain text to Base64, or "Decode" to reverse the process.
  2. Type or paste your input text in the left box.
  3. The output updates automatically as you type.
  4. Click "Copy Output" to copy the result to your clipboard.

How It Works

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 widely used to embed binary data (images, files) in text-based formats such as JSON, HTML, and email. This tool performs encoding and decoding entirely in your browser using the JavaScript btoa() and atob() functions with full UTF-8 character support.

Frequently Asked Questions

When would I use Base64 encoding?

Common uses include embedding images in CSS or HTML as data URIs, encoding binary data for JSON APIs, and encoding email attachments in MIME format.

Does Base64 encrypt my data?

No. Base64 is an encoding scheme, not encryption. Anyone who has the Base64 string can decode it back to the original content instantly. Do not use it to protect sensitive data.

Why does the Base64 output sometimes end with == or =?

Base64 encodes data in 6-bit groups of 3 bytes at a time. When the input length is not divisible by 3, padding characters (=) are added to make the output length a multiple of 4.

← Back to all tools