Convert between images and Base64, with preview, copy and download
Image to Base64 Converter is a simple, easy-to-use online tool for converting between images and Base64. Upload an image to generate its Base64, or paste Base64 to restore it as an image for preview and download.
This tool is especially useful for frontend developers, for generating inline images, API data transfer, icon asset optimization and more. All operations run locally, keeping your data safe.
Upload images in various formats and generate a Base64 string in one click, with an optional data: prefix.
Paste Base64 to preview the decoded image instantly, with download support.
Supports JPG, PNG, GIF and other mainstream formats for conversion and preview, auto-detecting the image type.
All conversions run locally in the browser — nothing is uploaded, ensuring data security and privacy.
data: prefix to use it directly in HTML/CSS/JSON; backends can strip it
image/png; you can add one yourself