Image to Base64

Convert images to Base64 data URI or decode Base64 back to images

Processed on your device β€” never uploaded
Upload Image

Frequently Asked Questions

What is a Base64 data URI for images?
A Base64 data URI embeds the image data directly as a text string in your HTML or CSS, eliminating the need for a separate image file request.
When should I use Base64-encoded images?
Base64 is best for very small images like icons or simple graphics under 10 KB. For larger images, regular files are more efficient since Base64 increases size by about 33%.
How do I use a Base64 image in HTML?
Place the full data URI string (starting with "data:image/...") in the src attribute of an img tag, like: <img src="data:image/png;base64,..." />.