Image to Base64 and Base64 to image converter

Pick an image to get its Base64 data URL for HTML or CSS, or paste Base64 to view and save the image.

About Image ↔ Base64

Pick an image to get it as a data URL (data:image/png;base64,…), an <img> tag and CSS, plus the size increase (Base64 is about 33% larger). Good for tiny icons embedded in pages or emails.

Or paste Base64 or a data URL in the text box to preview it and download it as a file; the type is detected from the data.

FAQ

Should I embed images as Base64?

Only very small ones such as icons; larger images are better as files the browser can cache.

More tools here

Other tools you may like