Base64 Encoder/Decoder

Convert text to Base64 encoding or decode Base64 back to text.

You can also drag and drop a text file here

About Base64 Encoding/Decoding

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used to encode binary data, such as images, when that data needs to be transmitted in environments that only reliably support text content.

How Base64 Works

  • Converts binary data to a set of 64 ASCII characters
  • Uses A-Z, a-z, 0-9, + and / for encoding (with = for padding)
  • Increases the data size by approximately 33%
  • Ensures safe transmission of binary data as text

Common Use Cases

  • Embedding images directly in HTML/CSS using data URLs
  • Encoding binary data in JSON payloads
  • Sending binary data in email body content
  • Storing complex data in cookies or local storage
  • Encoding user credentials in Basic Authentication
  • Transferring binary data through text-only protocols

Share this page