Base64 Encoder / Decoder

Encode text or files to Base64 and decode Base64 strings.

What is Base64?

Base64 is an encoding scheme that converts binary data into a text string using 64 printable ASCII characters. It is widely used in email attachments, data URIs, API authentication tokens, and anywhere binary data needs to be embedded in text-based formats like JSON or XML.

How to Use This Tool

  1. Enter your text or paste Base64 data into the input field.
  2. Click "Encode" to convert text to Base64, or "Decode" to convert Base64 back to text.
  3. Copy the output.

Common Use Cases

Base64 encoding is used for: embedding images in HTML and CSS (data URIs), HTTP Basic Authentication headers (username:password encoded as Base64), storing binary data in JSON APIs, encoding JWTs (JSON Web Tokens), and email MIME encoding.

Frequently Asked Questions

Is Base64 a form of encryption?

No. Base64 is encoding, not encryption. Anyone can decode a Base64 string instantly. Never use it to protect sensitive data.

Why does Base64 output end with == or =?

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

**Disclaimer:** All operations run client-side in your browser. No data is sent to servers. This site is provided for developer convenience — always verify outputs before using in production systems.