Base64 image encoder and decoder
DATAURITurn a picture into a data URI for CSS, HTML or JSON, or paste Base64 and see the picture inside it. Both run in this tab; your files are not uploaded.
Picture to Base64
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
| Who | Can they see it? |
|---|---|
| You | Yes |
| OBSCURA OS | No. Your file never reaches us. |
| Someone who breaks into our servers | No. Your file is not there. |
| Advertisers or partners | No. |
| Anyone using your unlocked computer, or a harmful browser extension | Yes. Keep your device and browser clean. |