Image ↔ Base64 Converter
Convert images to Base64 data URIs and back, with drag-and-drop upload and instant preview.
About this tool
The Image ↔ Base64 Converter embeds images directly into text — as a Base64-encoded data URI — and reverses the process, turning a data URI or raw Base64 string back into a downloadable image. Data URIs let you inline small images directly into HTML, CSS, JSON, or JavaScript without a separate file request, common for icons, email templates, and CSS background images.
Drag and drop an image (or use the file picker) and the tool reads it locally using the browser's FileReader API, shows an instant preview, and gives you the resulting Base64 string as either the full data URI (data:image/png;base64,...) ready to paste into an src or CSS url(), or the raw Base64 payload alone. File size is shown so you can judge whether inlining is appropriate — Base64 encoding inflates size by roughly 33%.
The reverse direction accepts either a full data URI or a bare Base64 string, renders a live preview so you can confirm it decoded correctly, and provides a one-click download link to save the reconstructed image file.
The entire conversion happens in your browser — the image is never uploaded anywhere.
