ToolDock.
Files Tool

Image to Base64 Converter

Convert any image to a Base64 data URL for embedding in HTML, CSS or JSON. Also decode Base64 back into an image with one click. Free and private.

How to use this image to base64 converter

  1. 1

    Choose Image → Base64 and pick a file to generate its data URL.

  2. 2

    Or switch to Base64 → Image and paste a data URL.

  3. 3

    Copy the result or download the decoded image.

Frequently asked questions

What is a Base64 data URL?

A data URL is a string that starts with data:image/...;base64, and contains the entire image encoded as text, so it can be embedded directly in HTML, CSS or JSON.

When should I use a Base64 image?

It is useful for small icons and thumbnails you want to embed without an extra HTTP request, or for storing images inside a database or config.

My Base64 string is very long — is that normal?

Yes. Base64 is about 33% larger than the original file. For large images, run them through the image compressor first to keep the string short.