Base64 encoder and decoder
Encode a file or text to Base64 or a data URL, and decode Base64 back to a file.
Drop a file to encode
or drop it here, or paste. Up to 25.0 MB per file.
Runs in your browser. Your files are not uploaded.
Files up to 25 MB can be encoded and up to 50 million characters decoded. Base64 makes data about a third larger.
Decoding accepts line breaks, missing padding and the URL-safe alphabet.
How to use Base64 encoder and decoder
Choose a mode: File to Base64, Text to Base64, Base64 to text or Base64 to file.
Drop a file or type or paste the input.
For encoding, choose Base64 or Data URL as the output.
Copy the result or download it; for Base64 to file, select Decode and download.
Questions
No. Encoding and decoding happen in your browser and nothing is sent anywhere.
Yes. The decode modes accept plain Base64 or a data URL. Whitespace, missing padding and the URL-safe alphabet are accepted too.
A file to encode can be up to 25 MB. Pasted Base64 text can be up to 50 MB.
It is saved as decoded with an extension found from the content, or decoded.bin if the type is not recognised.
Related tools
- QR code generatorMake a QR code for text, a link, Wi-Fi sign-in or an email, and save it as SVG or PNG.
- Barcode generatorMake a Code 128, EAN-13, EAN-8, UPC-A, Code 39 or ITF barcode and save it as SVG or PNG.
- DOCX converterConvert a Word .docx file to HTML, Markdown or plain text, with headings, lists, tables and pictures kept.
- JSON, CSV and XML converterFormat, minify and validate JSON, convert CSV and JSON both ways, and format XML or turn it into JSON.