Convert images to Base64 data URLs

Get the Base64 data URL for any image instantly — copy it directly into an HTML tag, a CSS background, or a JSON payload. Works on a whole batch at once.

No upload, ever Batch friendly One-click copy
Drop images here to get their Base64 code
JPG, PNG, WebP, GIF, BMP · batch-friendly · nothing leaves this tab
Images are read and encoded entirely inside your browser. No file is uploaded, transmitted, or stored anywhere.
How it works

Three steps, no learning curve

01

Drop your images

Add one or an entire batch — each gets its own result card immediately.

02

Copy the code you need

Copy the full data URL, the bare Base64 string, or a ready-made tag from any card.

03

Download if needed

Export the full batch as a JSON file with filenames, MIME types, sizes and both the data URL and the raw Base64 for each image.

FAQ

Common questions about this tool

A data URL encodes a file’s binary content as ASCII text so it can be embedded directly into HTML, CSS or JSON without a separate file request. The format is: `data:;base64,`.
Base64 encoding expands binary data by roughly 33% — every 3 bytes of original data become 4 ASCII characters. This is the standard trade-off for embedding binary data in text-based formats.
Data URLs are useful for small images embedded in HTML emails, single-file HTML documents, CSS sprite replacements, or anywhere you want to avoid a separate HTTP request. For large images or anything that will be cached separately, a normal file URL is more efficient.
Yes — modern browsers render images from data URLs pasted into the address bar. It’s a quick way to verify that the encoding worked correctly.