Astronomical Code Logo

Astronomical Code

Toolbox

Base64 Encoder

Encode text or files to Base64 format. Base64 encoding is commonly used when binary data needs to be stored or transferred as text.

Input

0 bytes

Base64 Output

Encoding ratio: 0.00x0 bytes

About Base64 Encoding

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format by translating it into a radix-64 representation. It's commonly used when binary data needs to be stored or transferred over media that are designed to deal with text.

Common use cases for Base64 encoding include:

  • Embedding binary data in JSON or XML
  • Encoding images for embedding directly in HTML or CSS
  • Sending binary data in email attachments
  • Storing complex data in cookies or local storage
  • Transmitting data in URLs where binary data might be problematic

Note that Base64 encoding increases the data size by approximately 33% (a ratio of about 1.33x) because it represents 3 bytes of data with 4 ASCII characters.

We value your privacy

We use cookies to enhance your browsing experience, serve ads, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies.