Base64 File Encoder & Decoder
Encode any file to Base64 text or decode Base64 back to a downloadable file. Supports all file types — PDFs, images, archives, documents, audio, video, and more. Everything runs locally in your browser.
File Information
Decoded File Information
Base64 File Encoding Explained
Base64 encoding converts binary file data into a text string using 64 printable ASCII characters (A-Z, a-z, 0-9, +, /). This makes it possible to embed files directly into JSON, XML, HTML, CSS, email bodies (MIME), or any text-based format where binary data cannot appear.
Data URIs: The data URI scheme data:[mime];base64,[data] lets you embed files inline in HTML or CSS. For example, embedding a PDF or an image directly into a web page without making an additional HTTP request.
Size overhead: Base64 increases data size by approximately 33% because every 3 bytes of binary data become 4 Base64 characters. For API payloads and data transfer, consider this trade-off between convenience and bandwidth usage.