Convert any image to a Base64 data URI instantly. Perfect for embedding images directly in HTML, CSS, or JSON. All conversion happens in your browser.
Click to upload image
PNG, JPG, WebP, AVIF up to 10MB
Upload an image and it is instantly converted to a Base64 data URI. Copy the result and paste it directly into HTML (img src), CSS (background-image), or JSON. The conversion happens entirely in your browser.
Your image never leaves your device. Base64 conversion is done locally, so there is no upload and no privacy risk.
Convert any image to a Base64 data URI instantly. Perfect for embedding images directly in HTML, CSS, or JSON. All conversion happens in your browser.
A Base64 data URI encodes an image's binary data as a text string that can be embedded directly into HTML, CSS, or JSON. Instead of referencing an external image file with a URL, you paste the encoded string straight into your code, and the image displays without any additional request.
This is useful for small images like icons, logos, and sprites where you want to avoid extra HTTP requests, or when you need to embed an image in a single self-contained file. It is also common in APIs and data interchange where images need to travel as text.
The conversion happens entirely in your browser. Your image is never uploaded to a server, so it is safe to use even with sensitive or proprietary images. There is no account required and no file size limit beyond what your browser can handle.