Encode and decode Base64 strings
Encode and decode Base64 strings instantly with our free Base64 converter. Support for text, images, and files.
Encode and decode text or files to Base64
Base64 is a binary-to-text encoding scheme that converts binary data into a string of ASCII characters. It is commonly used to embed images in HTML or CSS, encode email attachments (MIME), transmit binary data through text-only channels like JSON APIs, and store small files as strings in databases. Base64-encoded data is approximately 33% larger than the original, but the trade-off is universal compatibility with text-based protocols and systems.
Paste text or upload a file you want to encode.
Click "Encode" to convert to Base64, or "Decode" to convert back.
View the result instantly in the output area.
Copy the Base64 string to your clipboard.
Use the decoded output directly or download it as a file.
Base64 represents 3 bytes of binary data as 4 ASCII characters, resulting in approximately 33% size increase. This trade-off enables binary data to be safely transmitted through text-based protocols.
Discover more free tools you might find useful