Base64 Tools

What is Base64?

Base64 is a way to encode binary data into text format using 64 ASCII characters. It's commonly used for:

  • Embedding images directly in HTML/CSS
  • Sending files through APIs that only accept text
  • Storing binary data in databases or JSON
  • Email attachments (MIME encoding)

Select Mode

Choose what type of data you want to encode or decode

Input

Enter text to encode to Base64, or paste Base64 to decode back to text

Output

Examples

Text Example:

Input: Hello World

Output: SGVsbG8gV29ybGQ=

Image Example (for HTML/CSS):

<img src="data:image/png;base64,iVBORw0KGgo..." />

API Example (JSON):

{
  "filename": "document.pdf",
  "content": "JVBERi0xLjQKJe...",
  "encoding": "base64"
}