🔐 Base64 Encode & Decode

Encode text to Base64 or decode Base64 back to readable text.

Input Text
Base64 Output

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data as ASCII characters. It's commonly used to embed images in HTML/CSS, encode email attachments, transmit data in URLs, and store binary data in JSON. Every 3 bytes of input become 4 Base64 characters.

Have questions? Check our FAQ page.

Understanding Base64 Encoding

Base64 is a binary-to-text encoding scheme that converts binary data into a set of 64 printable ASCII characters. It's used whenever binary data needs to be transmitted over text-based protocols like HTTP, email (MIME), or stored in text formats like JSON and XML.

How Base64 Works

Base64 takes every 3 bytes (24 bits) of input and splits them into 4 groups of 6 bits. Each 6-bit group maps to one of 64 characters (A-Z, a-z, 0-9, +, /). If the input length isn't divisible by 3, padding characters (=) are added. This means Base64 output is always about 33% larger than the original data.

Common Uses

Related Tools