Image tool

Image to Base64

Convert the bytes of an image into a data URL containing its media type and Base64 payload.

Private by designRuns in your browser
Recent tools
Ctrl / ⌘ + Enter to run

Loading workspace…

Preparing the controls for this tool. Your files have not been selected or uploaded.
QUICK START

How to use Image to Base64

  1. Choose a genuine JPG, PNG or WebP image within the 10 MB Base64 export limit.
  2. Process the file to create a data URL beginning with data:image/.
  3. Copy or download the text and test it in the destination application. Keep large images as separate files when practical.
BEFORE YOU BEGIN

What to expect

Your files stay on this device. Keep your original files and review the result before using it.

Local processing

Your files and inputs are processed in your browser and are not uploaded. Download or copy results before leaving. Normal site and library requests still reach the hosting service.

Using the output

A PNG data URL begins data:image/png;base64,. It can be used where an application accepts an image URL, such as an HTML img src attribute. This operation encodes original bytes; it does not resize or compress the image.

Size and privacy tradeoffs

Base64 typically increases the binary payload size by about one third before the URL prefix. Large inline images can increase document size and cannot be cached independently. Embedding the data URL shares the complete image bytes, including any metadata already present.

HELP & TROUBLESHOOTING

Frequently asked questions

Will encoding make my image smaller?

No. Base64 is transport encoding and usually increases size. Compress or resize the image first if appropriate.

Can I decode the data URL with the text Base64 tool?

The text decoder expects UTF-8 text, not image bytes. Use the data URL directly in a compatible image viewer or application.

Where is my input processed?

Files and inputs are processed locally in your browser and are not uploaded. The hosting service receives normal website and library requests. Download or copy results before leaving.