Image to Base64
Embed small images straight into HTML, CSS, JSON or emails. Get the raw Base64, a data URI and ready-to-paste snippets.
Processed in your browser – your files stay on your device.
Drop files here or Choose files
JPG, PNG, WEBP, GIF, BMP, AVIF or ICO · up to 1 files, 25.0 MB each
You can also paste images with Ctrl+V / ⌘V
How to use Image to Base64
- 1
Add an image.
- 2
Pick the format you need: data URI, raw Base64, CSS or HTML.
- 3
Copy it with one click.
Why use our Image to Base64 tool
Ready-made snippets
CSS background and HTML img tags are generated for you – no manual escaping.
Any web image format
JPG, PNG, WEBP, GIF, BMP, AVIF and ICO, with the correct MIME type in the data URI.
Nothing is uploaded
Encoding happens in your browser, so even internal graphics stay private.