TC

Base64 Encoder

Free Base64 encoder and decoder. Encode text to Base64 or decode Base64 to text. Instant conversion, no signup required.

About Base64 Encoder

Base64 is a binary-to-text encoding scheme that represents binary data in ASCII string format. It is commonly used to encode binary data for transmission over media that only support text, such as email or storing complex data in text fields like XML or JSON. Each Base64 digit represents exactly 6 bits of data. The encoding process converts 3 bytes (24 bits) into 4 Base64 digits. The result is a string that is approximately 33% larger than the original binary data.

How It Works

Our Base64 encoder works in two modes: Encode Mode — Converts plain text into Base64 representation. This is useful for embedding binary data in text files, transmitting data over text-only protocols, or storing complex data in text-based formats. Decode Mode — Converts Base64 encoded strings back to plain text. Useful for reading Base64 encoded data or verifying encoded content. Simply type or paste your text, choose encode or decode mode, and copy the result.

Common Uses

  • Data URI schemes for embedding images in HTML/CSS
  • Encoding email attachments (MIME standard)
  • API authentication tokens
  • Storing binary data in JSON or XML
  • URL-safe data transmission

FAQ

Is Base64 encryption?

No, Base64 is an encoding scheme, not encryption. It can easily be decoded by anyone who sees the encoded string. Do not use Base64 to hide sensitive data.

Why is Base64 used?

Base64 is used to ensure binary data can be safely transmitted over protocols that only support text, such as email or HTTP. It converts binary data into ASCII characters that are unlikely to be corrupted during transmission.

How do I decode Base64?

Simply paste your Base64 string into the input box, select Decode mode, and the plain text will appear in the output area.