CONVERT

Image to Base64

Encode an image as text for a data URL or a system that expects Base64 input.

Image to Base64

Choose a file and adjust your output.

On-device

Drop your images here

or browse files from your device

JPG, PNG, WebP, GIF and more · Up to 25 MB per file
Files stay on your device
Output settings

Exports a text file containing the full data URL.

How to use this tool

  1. Choose your source image or drop it into the workspace.
  2. Keep embedded assets small. Large strings make documents difficult to edit and can be expensive to copy.
  3. Run the tool, review the result and download your copy.

When to use it

Embed a small icon in a self-contained HTML example or pass image bytes through a text-only field.

Does Base64 compress the image?

Base64 represents binary bytes using text. Its text payload is usually larger than the original file.

Related tools