Picture to Base64

Drop a picture here, choose one, or paste Press Enter to choose a file.

JPEG, PNG, WebP, ICO, SVG or another image. Up to 200 MB on this device. Processed on your device, not uploaded.

Free to open and check one file at a time. Saving the result needs a paid plan.

Base64 to picture

How it works

A picture you drop is read in this tab and written out as a Base64 data URI, ready for CSS, HTML, Markdown or JSON. Paste Base64 the other way and the picture it holds is shown and can be saved.

Questions people ask about DATAURI

When is a data URI a good idea?

For small things used once: an icon in a stylesheet, a logo in an email signature, a picture in a single-file HTML report. Base64 makes a file about a third larger and it cannot be cached on its own, so above roughly 10 KB a linked file is usually better.

What does it accept when decoding?

Plain Base64, a full data URI, Base64 split over several lines, the URL-safe alphabet with - and _, and Base64 with its = padding missing. The kind of picture is read from its first bytes, so it is named correctly even when the text says otherwise.

Is a decoded SVG safe to look at here?

Yes. It is shown as an image, and a browser never runs script inside an SVG shown that way. Saving it gives you the file exactly as decoded, script and all, so check it with SVGCLEAN before putting it on a website.

Who can see your file
WhoCan they see it?
YouYes
OBSCURA OSNo. Your file never reaches us.
Someone who breaks into our serversNo. Your file is not there.
Advertisers or partnersNo.
Anyone using your unlocked computer, or a harmful browser extensionYes. Keep your device and browser clean.