About this tool

Image conversion, kept simple

Image to Base64 is a free online utility for converting image files into text-based formats and turning Base64 image data back into a viewable, downloadable file.

Image to Base64

Select an image from your device, drop it onto the converter, or paste an image from your clipboard where supported. The tool reads it in your browser and offers a full Data URI, raw Base64, HTML image markup, or CSS background-image declaration.

Supported formats include PNG, JPEG, GIF, WebP, SVG, BMP, ICO, and AVIF. Actual format support for previewing depends on your browser.

Base64 to Image

Paste a Base64 Data URI or raw Base64 text to decode an image. Data URIs provide their own image type; for raw Base64, choose the type to use. The tool validates and previews the decoded image before you download it.

Processed on your device

Conversion happens locally in your browser. Image content is not uploaded to our server. The converter uses browser APIs to read files, create previews, encode and decode image bytes, and prepare downloads.

Files larger than 20 MB are not accepted by the converter to keep the experience manageable in your browser.

Open the converter View Source Code