Convert an image into a Base64 string or data URI for CSS, HTML or JSON.
Drop it in or choose a file.
Data URI, plain Base64, CSS background or an HTML img tag.
Paste it straight into your code.
For small icons and images you want inside a CSS or HTML file. Large images are better as normal files.
Base64 adds about 33% to the size.
Not when you choose a file: it is converted in your browser and never leaves your device. If you use “From a URL”, our server fetches that image for you, and doesn’t keep it.