Image to Base64

Full data URI string with size stats and one-click copy

Drop an image or browse

Base64 output

Upload an image and encode to get the data URI here.

How Image to Base64 Works

Encode an image as a base64 data URI for inline CSS, HTML emails, or quick prototyping. Upload a file and Squeeze returns the encoded string with size stats and one-click copy. Handy for developers who need a data URI without running local scripts.

Step 1: Upload your image

Add the PNG, JPG, SVG, or other image you want encoded.

Step 2: Encode to base64

Squeeze converts binary image data into a base64 string.

Step 3: Review size stats

See output length so you know whether inline use is practical.

Step 4: Copy the data URI

One click copies a ready-to-paste data URI for CSS, HTML, or docs.

Why use this tool?

Base64 data URI output
One-click copy
Size stats included
Developer-friendly
Free image to base64 converter