Encode text to Base64 and decode Base64 to text instantly. Fast, secure, and free online tool.
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used to encode data that needs to be transmitted over text-based protocols like HTTP, email, or when storing binary data in text files.
The encoding process converts every 3 bytes of binary data into 4 ASCII characters, making it possible to send binary files through text-based systems without corruption.
Encode binary data for safe transmission over text-based protocols like HTTP, SMTP, or JSON APIs.
Convert images, documents, and other files to text format for embedding in emails or web pages.
Store binary data in text-based storage systems like databases or configuration files.
Embed small images directly in CSS or HTML using data URIs with Base64 encoding.
Start with binary data (images, files, etc.)
Divide binary data into 6-bit segments
Map each 6-bit chunk to a printable ASCII character
Append '=' characters if needed for proper length
Base64 is not encryption - it's encoding. It doesn't provide security or privacy. It simply converts data to a different format that's safe for text transmission.
Yes, Base64 encoding increases file size by approximately 33% because it converts every 3 bytes of binary data into 4 ASCII characters.
Use Base64 when you need to transmit binary data through text-based systems, embed small files in web pages, or store binary data in text formats.
Base64 uses 64 characters: A-Z, a-z, 0-9, +, and /. The = character is used for padding at the end of the encoded string.