Back to Tools

Base64 Encoder/Decoder

Encode and decode Base64 strings

What is Base64 Encoding?

Base64 is a binary-to-text encoding scheme that converts binary data into ASCII characters. It's commonly used to safely transmit data over systems designed for text, like email or URLs, without corruption or data loss.

Common Use Cases

Email Attachments

Encode binary files for safe transmission via email protocols.

Data URIs

Embed images directly in HTML/CSS using Base64 encoding.

API Data

Encode binary data for JSON APIs and web services.

Authentication

Encode credentials for HTTP Basic Authentication headers.

How It Works

1

Enter Text

Type or paste text to encode, or Base64 to decode.

2

Choose Action

Click Encode to convert to Base64, or Decode to reverse.

3

View Result

See the encoded or decoded output instantly.

4

Copy or Swap

Copy the result or swap input/output for quick editing.