Base64 Encoder / Decoder

Encode and decode text and files to Base64 format, ideal for data transmission.

0 / 100,000

What is Base64 Encoding?

Base64 is an encoding system that transforms binary data (like an image, a file, or any text) into a string of plain ASCII text characters. Its main purpose is to ensure that data remains intact and unmodified during transport through media that only support text, such as email or some APIs.

Common Use Cases

  • Embedding images in HTML/CSS: Allows you to insert an image directly into the code of a web page (using <img src="data:image/png;base64,...">), avoiding an additional server request.
  • Data transmission in APIs: It is common to use Base64 to send files or binary data within a JSON body, which by nature only handles text.
  • Email attachments: The MIME protocol uses Base64 to attach files to emails.

Important: Base64 is an encoding method, not an encryption method. It should not be used to protect sensitive information, as anyone can easily decode it.