Toolram
📖 Glossary

What is Base64?

Short answer: Base64 is an encoding scheme that converts binary data to an ASCII text string using 64 safe characters (A-Z, a-z, 0-9, +, /).

Detailed explanation

Base64 was created to transmit binary data (images, files) through protocols that only support text, like email (MIME) or JSON. Each 3 bytes of binary data are represented as 4 ASCII characters, increasing size by ~33%. It is NOT encryption: anyone can decode Base64 instantly. Its purpose is transport, not security.

Example

Text: 'Hello' → Base64: 'SGVsbG8='

Common use cases

  • Embedding small images in CSS (data: URLs)
  • Email attachments (MIME encoding)
  • JWT tokens (payload portion)
  • Storing binaries in JSON or XML
  • Basic Auth in HTTP headers

🇲🇽 También disponible en español