PB
Available
code
lock Free · Private · In-Browser

Image to Base64 Converter

Turn an image into a Base64 data URI for code or CSS.

Upload an image to encode.

Embed images in your code

A Base64 data URI packs an entire image into a text string, letting you drop it straight into HTML, CSS, or a JSON payload with no separate file to host or request.

Upload an image and it is encoded to a data URI you can copy. It is ideal for small icons and inline assets; for large images the text grows big, so use it judiciously.

Handy and private

The encoding happens in your browser, so your image is never uploaded.

Frequently Asked Questions

What is a data URI?

A string that embeds the whole image as Base64 text, so it can live directly in HTML, CSS, or JSON without a separate file.

When should I use it?

For small icons and images, to save an HTTP request. Large images bloat the code, so keep it to small assets.

Is my image uploaded?

No. The encoding happens entirely in your browser.

Take it further
All Free Tools

Browse the full set of free, private, in-browser tools.

Learn More arrow_forward