Home/Tools/Base64 Encoder/Decoder

Base64 Encoder/Decoder

Encode and decode Base64 strings for data transport, email attachments, and web development

Loading Base64 Encoder/Decoder...

Only applies to encoding mode

Loading interactive tool...

Need Professional IT Services?

Our IT professionals can help optimize your infrastructure and improve your operations.

Encode and Decode Base64

Base64 encoding converts binary data into ASCII text, making it safe for transmission over text-based protocols like email and HTTP.

Common Uses

  • Embedding images in HTML/CSS (data URIs)
  • Encoding credentials in HTTP Basic Auth
  • Transmitting binary files in JSON/XML
  • Encoding email attachments (MIME)

How It Works

Base64 divides input into 6-bit groups and maps each to one of 64 printable characters (A-Z, a-z, 0-9, +, /). The encoded output is ~33% larger than the original.

References & Citations

  1. Internet Engineering Task Force (IETF). (2006). The Base16, Base32, and Base64 Data Encodings (RFC 4648). Retrieved from https://datatracker.ietf.org/doc/html/rfc4648 (accessed January 2025)
  2. IETF. (1996). Multipurpose Internet Mail Extensions (MIME) Part One. Retrieved from https://datatracker.ietf.org/doc/html/rfc2045 (accessed January 2025)
  3. Mozilla Developer Network. (2024). Data URLs - HTTP | MDN. Retrieved from https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs (accessed January 2025)

Note: These citations are provided for informational and educational purposes. Always verify information with the original sources and consult with qualified professionals for specific advice related to your situation.

Frequently Asked Questions

Common questions about the Base64 Encoder/Decoder

What is Base64 encoding?

Base64 encoding converts binary data to ASCII text using 64 printable characters (A-Z, a-z, 0-9, +, /).

Used for embedding images in HTML/CSS, email attachments (MIME), encoding credentials in HTTP headers, and storing binary data in JSON/XML.

Increases size by ~33%.

Not encryption - easily reversible.

Common in APIs, web development, and data serialization.

0