Base64 File

Convert any file to Base64 and back, with drag-and-drop, pure frontend

File → Base64 Base64 → File

About Base64 File Conversion

Any file is essentially binary data and can be Base64-encoded into plain text (Data URI form: data:<type>;base64,<data>). This lets files be embedded directly in HTML, CSS, or JSON without extra requests — commonly used for inlining small icons or sending attachments via APIs.

This tool converts locally in your browser; files are never uploaded to any server, making it suitable for sensitive files. Use it only for small files (e.g. under a few dozen KB) — larger files will noticeably slow down the browser and consume memory.

Examples

1. Select or drop an image/document and instantly get its Base64 text.

2. Paste Base64 into "Base64 → File", enter a file name, and click download to restore the original file.

FAQ

Q: How should I name the file when restoring?
A: Enter a name with extension, e.g. image.png, doc.pdf. If your Base64 is a full Data URI (with the data:type;base64, prefix), the tool auto-detects the MIME type.
Q: What if a large file conversion lags?
A: Base64 increases size by about 33% and runs entirely in memory. If it lags, use a smaller file, or use "Base64 Image" for images (which is specially optimized).