How to convert an image to Base64
- Drop an image.
- Choose the output: data URI, HTML, CSS, Markdown or JSON.
- Copy it or download it as a text file.
Everything runs in your browser, so your images are never uploaded to our servers.
Convert images to Base64 data URIs with HTML, CSS and Markdown snippets, and decode Base64 back.
PNG, JPG, WebP, GIF, SVG, ICO — or paste (Ctrl+V)
🔒 Everything happens in your browser. Your images are never uploaded.
Everything runs in your browser, so your images are never uploaded to our servers.
For small icons and images under about 10 KB, to save an extra request. Larger images are better as normal files.
Yes. Use the Base64 → Image tab and download the result.
Remove image backgrounds automatically with AI and get a transparent PNG or new background.
Open Tool →