Convert any file to Base64 and back, with drag-and-drop, pure frontend
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.
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.
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.