Image to Base64 Converter

Convert an image into a Base64 data URL or restore a Base64 image value as a downloadable image file.

Files and content are processed locally in your browser and are not uploaded to our server.

About this tool

Choose an image to create a Base64 data URL that can be used in HTML or CSS. You can also paste a Base64 image value and restore it as an image file. The tool shows the resulting text length and estimated size.

Features

How to use

  1. Choose a direction: Select image to Base64 or Base64 to image.
  2. Add the content: Choose an image or paste a Base64 image value.
  3. Copy or download: Copy the generated data URL or download the restored image.

Examples

Limitations

FAQ

What is the difference between a data URL and raw Base64?
A data URL includes a MIME type prefix such as data:image/png;base64,...; raw Base64 contains only the encoded content.
What image size is recommended?
Keep source images under a few hundred KB; very long data URLs can slow page loading.
Can I decode from CSS url()?
Paste the data URL portion; the tool removes the prefix if present.