Image to Base64 & Base64 to Image Converter

Convert images to Base64 data URLs or decode Base64 back into downloadable images locally.

How to use this tool

Choose an image to create a reusable data URL, or paste Base64 to restore and download the image. Processing stays in your browser.

Related tool: Image Compressor →

When to use the Image to Base64 & Base64 to Image Converter

Use it to embed a small image directly in HTML, CSS or JSON, or to turn a Base64 string from an API back into a file.

Examples

  • Inline a small icon as a data URL to save an HTTP request.
  • Decode a Base64 image returned by an API to check it.

Common mistakes

  • Inlining large images; Base64 is about 33% bigger and is not cached separately.
  • Forgetting the data:image/png;base64, prefix when using it in HTML.