Convert text to Base64 and decode Base64 strings instantly in your browser.
How It Works
Base64 takes your input bytes and groups them into chunks of 3 bytes (24 bits). Each chunk is split into four 6-bit segments, and each segment maps to a character from a 64-character alphabet: A–Z, a–z, 0–9, +, and /. If the final group has fewer than 3 bytes, it is padded with = signs so the output length is always a multiple of 4. This produces 33% more data than the original but ensures safe transport through text-only channels like email headers, JSON payloads, and CSS data URIs.
Frequently Asked Questions
What is Base64 encoding used for?
Base64 encoding converts binary data into a text-safe ASCII string format. It is commonly used to embed images in CSS or HTML, transmit data over email, store complex data in URLs, and include files in JSON or XML payloads where raw binary would cause issues.
Is Base64 the same as encryption?
No. Base64 is an encoding scheme, not encryption. It simply represents binary data as readable ASCII characters using a 64-character alphabet. Anyone can decode a Base64 string back to its original form without a key. It should not be used to protect sensitive data.
Why does my Base64 output have padding equals signs (=)?
Base64 works with groups of 3 bytes (24 bits) split into four 6-bit characters. If the input length is not a multiple of 3, one or two padding characters (=) are added to make the output length a multiple of 4. One = means 2 bytes were in the last group; two = means 1 byte.