Images & Codes

Image to Base64

Encode a selected image file as Base64 text or a data URL.

№ 099Runs locally

What this tool does

Image to Base64. Encode a selected image file as Base64 text or a data URL.

When to use it

Use it when a small image needs to be embedded in a data field or test fixture; large Base64 strings can be unwieldy.

How to use

  1. Try this sample input first: small image: logo.png.
  2. Choose or adjust the options this tool provides; leave unrelated settings at their defaults.
  3. Run the tool and read any validation or status message. Correct the input format before trying again if needed.
  4. Check whether the result matches the example output: data:image/png;base64,…. Then copy or download it.

Tool-specific tip: Choose an image file, convert it to a data URL or Base64 string, then copy the generated text.

Your input and files are processed in this browser. They are not uploaded by this toolbox.

Input and output example

Sample input
small image: logo.png
Sample output
data:image/png;base64,…