Base64 Encode / Decode

Encode plain text to Base64 or decode Base64 strings back to text.

Text / Base64 Input
Result

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data as an ASCII string. It's commonly used to embed images in HTML/CSS, transmit data in URLs, encode email attachments, and store binary data in JSON or XML formats.

How Base64 Encoding Works

Base64 takes groups of 3 bytes (24 bits) and splits them into 4 groups of 6 bits each. Each 6-bit group maps to one of 64 printable ASCII characters (A-Z, a-z, 0-9, +, /). If the input isn't divisible by 3, padding characters (=) are added.

← Back to all tools