Image to Base64

Encode an image as a data URI.

Source image

Everything runs locally in your browser - images are never uploaded.

About this tool

Load an image to get a Base64 data URI (data:image/...;base64,...) ready to paste into CSS background or an img src.

How to use

  1. Select or drop an image.
  2. Copy the generated data URI.
  3. Paste it into your CSS or HTML.

Examples

Output
data:image/png;base64,iVBORw0KGgo…

Frequently asked questions

For tiny icons to save a request. Large images inflate your CSS/HTML and hurt caching.
Contact

Let’s connect

Have a Liferay or Backend project you’d like to talk through? Fill in the form and I’ll get back to you.

Book Calendar