Image to Base64
Turn an image into a Base64 data URL, ready for CSS, HTML or JSON.
A data URL embeds the image directly in your markup, so the browser needs no second request to fetch it. That is a real win for a tiny icon on a critical path, and a real loss for anything larger.
Base64 inflates the payload by about a third and the result cannot be cached separately from the file it sits in. As a rule of thumb, embed under 2 KB and link to anything bigger.
How to use it
- Drop in an image.
- Pick the output you need — a raw string, a CSS background, an img tag or JSON.
- Copy it, or download it as a text file.
Not working as you expect? Report a problem with this tool.