Base64 File Converter
Convert files and images to Base64 or data URIs, and decode them back to downloadable files.
Runs locally
Loading tool…
Loading tool…
How to use
In File to Base64, drop a file or choose one from your device. Copy the raw Base64, complete data URI, HTML image tag, or CSS url() value. Images are previewed locally. In Base64 to file, paste either raw Base64 or a data:…;base64,… URI. The tool detects common file signatures, previews images, and provides a download. Large inputs are processed in bounded chunks to avoid call-stack limits; browser memory still limits the maximum practical file size.
FAQ
Is the selected file uploaded?
No. File reading, Base64 conversion, preview and download all happen inside your browser.
Why is Base64 larger than the original file?
Base64 represents every three bytes with four text characters, adding roughly 33% before the data URI prefix.