Base64 Encoder & Decoder

Instantly encode text or files into Base64, or decode Base64 strings back to their original format.

Base64 Encoder / Decoder
Encode and decode Base64 data. Works with text and files. All processing is done in your browser.

What is Base64 Encoding?

Base64 is a group of binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. In simpler terms, it's a way to convert any kind of data (like an image, a PDF, or even just text) into a safe and readable string of characters.

This is particularly useful when you need to transmit data over media that are designed to handle only plain text, such as embedding image data directly into a CSS file or sending a file within a JSON object.

Common Use Cases

  • Embedding Images: You can embed an image directly into an HTML or CSS file using a Base64 data URI (e.g., <img src="data:image/png;base64,iVBORw0KG..." />), which can reduce the number of HTTP requests a browser needs to make.
  • Data Transmission: Sending binary files as part of a text-based format like JSON or XML.
  • Basic Obfuscation: While not a form of encryption, Base64 encoding makes data unreadable at a glance, which can be useful for hiding simple strings.

Frequently Asked Questions (FAQs)