← CatalogImage to Base64

Image to Base64 Converter

Turn an image into a data URI with ready-made CSS and HTML snippets, or decode a data URI back into an image. Runs entirely in your browser — nothing is uploaded.

Encoding and decoding happen locally with FileReader and atob. Your images never leave your device.

Data URIs shine for tiny icons and single-file HTML — for anything bigger, serve a real file. Shrink the image first with the Image Compressor or Image Resizer.