Loading utilities...
Encode text and files to Base64 format, or decode Base64 back to original content. Supports URL-safe encoding and batch processing.
Choose a tab below to encode/decode text, convert files to Base64, or process multiple files at once.
What is Base64?
Base64 is a binary-to-text encoding scheme that represents binary data in ASCII string format. It's commonly used to encode data that needs to be stored or transferred over media designed for text.
Common Use Cases:
• Embedding images in HTML/CSS (data URIs)
• Email attachments (MIME)
• Storing complex data in JSON/XML
• API data transfer
• Authentication tokens
URL-Safe Base64:
Standard Base64 uses +, /, and = characters which can cause issues in URLs. URL-safe Base64 replaces + with - and / with _, and removes padding (=) to make it safe for use in URLs and filenames.
Size Increase:
Base64 encoding increases the data size by approximately 33% (4:3 ratio). This is because 3 bytes of binary data are encoded as 4 ASCII characters.
Convert small images to Base64 and embed directly in CSS or HTML without external files.
Encode binary files to send through APIs that only accept text/JSON data.
Store sensitive binary data as text in databases or configuration files.