Base64 Converter

Convert text and files to/from Base64 encoding with instant results.

Input Text

Output

Base64 encoded/decoded text will appear here...

Statistics

0
Input Length
0
Output Length
0%
Size Change
-
Status

Understanding Base64

How Base64 Encoding Works

Binary to Text

Converts binary data to a text format using 64 different characters (A-Z, a-z, 0-9, +, /)

3 Bytes → 4 Characters

Every 3 bytes of input data becomes 4 Base64 characters (33% size increase)

Safe Transmission

Ensures binary data can be safely transmitted over text-only protocols

Common Applications

Data URIs

Embedding images directly in HTML/CSS

Email Attachments

Sending binary files via email protocols

Basic Authentication

Encoding credentials for HTTP headers

API Communication

Transmitting binary data in JSON/XML

Base64 Character Set

A-Z
a-z
0-9
+
/
=
Padding character

The equals sign (=) is used for padding when the input data length isn't divisible by 3. This ensures the output is always a multiple of 4 characters.

Quick Examples