Image to Base64
Free online image to Base64 converter: drop PNG, JPG, SVG or WebP for a Data URL, or preview and restore from Base64.
Privacy: all processing happens locally in your browser. Your input never leaves your device.
What is Image to Base64?
Inlining small icons or placeholders as Base64 Data URLs in HTML/CSS saves an HTTP request. Drop an image into this tool to get a complete data:image/png;base64,... string with one-click copy, or paste Base64 to preview and download the restored image. Everything is local. Note that Base64 is about 33% larger than the original — inlining is not recommended for images over a few dozen KB.
How to Use
- Drop in or choose an image
- Copy the generated Data URL
- (Reverse) paste Base64 to preview and download the image
FAQ
- How much bigger does an image get as Base64?
- About 33% larger (3 bytes become 4 characters) — only suitable for inlining icons of a few KB.
- Which formats are supported?
- Anything the browser can decode: PNG, JPG, GIF, SVG, WebP, AVIF and more.
Related Tools
QR Code Generator & ScannerFree online QR code generator and scanner: downloadable PNGs from text, links or WiFi info, offline image decoding.Image CompressorFree online image compressor: local canvas resampling with quality and size sliders, live compare, JPG/PNG/WebP output.Image Crop & Format ConverterFree online image cropper and format converter: drag to select, lock 1:1, 4:3 or 16:9 ratios, export PNG, JPG or WebP.
Last updated 2026-09-04