Free Base64 Converter
Convert any file - PDF, JPG, DOCX, ZIP, MP4, and more - to a Base64 string, or paste a Base64 string to download the original file. Supports raw Base64 and data URIs. Everything runs in your browser.
Drop any file here
PDF, JPG, DOCX, ZIP, MP4 - any format
Your files never leave your device.
Frequently Asked Questions
On the "File to Base64" tab, drop any file (PDF, JPG, DOCX, ZIP, MP4, or any other format) into the upload area. Toggle whether to include the data URI prefix, then click "Encode to Base64." Copy the string or download it as a .txt file.
Switch to the "Base64 to File" tab, paste your Base64 string or data URI, optionally enter an output filename, and click "Decode & Download." The original file downloads immediately - MIME type and extension are auto-detected from the data URI prefix.
Base64 is used wherever binary data must travel through a text-only channel: embedding images in HTML or CSS, attaching files via MIME email protocols, storing binary blobs in JSON APIs or databases, or embedding PDFs inline in web pages.
Any file - PDF, JPG, PNG, DOCX, XLSX, ZIP, MP3, MP4, SVG, fonts, and every other format. Base64 converts raw bytes to printable ASCII characters, so it works universally regardless of content type.