When should you embed images as Base64?
How data URLs work, and when they help or hurt performance.
Open Image to Base64 — freeWhat is a Base64 image?
Base64 encodes an image’s bytes as text, producing a data URL that starts with data:image/… You can paste it straight into HTML, CSS or JSON instead of linking to a separate file.
Image to Base64
Free · runs in your browser
How to convert
Open Image to Base64, drop in an image and download a text file with the data URL. It’s generated in your browser.
When it helps
Tiny icons, placeholders and images inside HTML emails or single-file demos benefit because no extra request is needed.
When to avoid it
Base64 is about a third larger than the original and can’t be cached separately. For normal website images, link to an optimized file instead.
Ready to try it?
Data URL for HTML and CSS. Free, private and nothing is uploaded.
Builds Morphly’s free, private file tools and writes these guides.