Convert images to Base64 data URIs for embedding in HTML, CSS, or JavaScript. All processing in your browser.
Drop an image here or click to upload
Supports PNG, JPG, GIF, SVG, WebP, BMP, ICO
Convert any image to a Base64-encoded string that you can embed directly in your HTML, CSS, or JavaScript code. This eliminates the need for separate image files, reducing HTTP requests.
data:image/png;base64,... string for use anywhere<img> element with data URI srcbackground-image: url(data:...) declaration syntax for Markdown documentsBase64 encoding increases file size by approximately 33%. A 10KB image becomes about 13.3KB of Base64 text. For small images (under 5KB), this overhead is negligible compared to the saved HTTP request.
No. All conversion happens locally in your browser using the FileReader API. Your image never leaves your device.
PNG, JPEG, GIF, SVG, WebP, BMP, and ICO. Any format your browser can display can be converted to Base64.