Skip to main content

Image to Base64 Converter

Convert an image into a data:image/...;base64,... URL you can paste straight into HTML src attributes or CSS background-image — no separate file, no server request. Runs entirely in your browser.

How it works

The browser reads the file and encodes its bytes as Base64 (the same encoding behind the Base64 encoder). Remember: embedding adds ~33% size over the raw file, so Data URLs suit small assets — icons and preview thumbnails — rather than photos.