Drop files here, or click to browse
Up to 5 MB. Smaller files are better suited for Base64.
How to use
Choose an image under 5 MB
Drop a file on the uploader. A thumbnail preview appears with the original file size next to an estimate of the encoded size, roughly 1.37 times larger.
Pick an output tab
Switch between the Data URI, Raw Base64, CSS, and HTML tabs. The CSS tab wraps the URI in a background-image rule, and the HTML tab produces a complete img element you can paste into markup.
Copy the string
Hit the copy button above the text box and paste the result into your stylesheet, HTML, or JSON payload. Use another swaps in a different file without reloading the page.
Why Image to Base64
- Encode any image as a Base64 data URI for inline embedding.
- Get data URI, raw Base64, CSS background, or HTML img tag.
- Useful for small icons or email-safe embeds, never exceeds your image size.