Image to Base64
Convert images to Base64 Data URLs for HTML or CSS embedding.
✓ Local processing · No uploads · No signup
Drop an image here, or click to browse
Real-world uses
- A 4KB arrow icon on a one-page campaign: inline it as a Data URL to drop a request and avoid icon-path differences between CDN and local builds.
- A Markdown-based email template blocks remote images: inline a 100×100 logo so it renders even when the recipient is offline.
Limits: Base64 is ~33% larger and cannot be cached separately; inlining anything over 10KB slows first paint — keep real photos as files. This tool also outputs the original file bytes, so <b>EXIF/GPS metadata is preserved</b>; run EXIF Viewer & Cleaner first if you need it removed.
Related tools:Shrink SVGs before inliningGenerate site icons
How it works
- Pick or drop an image
- Copy the generated Data URL
- Paste it into an img src or a CSS url()
FAQ
How much bigger does Base64 make a file?
Roughly 33% larger. Use it for small icons only; serve large images as separate files from a CDN.
Related tools
Image Compare
Compare two images with a draggable slider and inspect before/after differences.
Favicon Generator
Turn one image into every favicon size, an ICO and a ready-to-use ZIP.
Color Converter
Type or paste any colour value and get HEX, RGB, HSL, HSV, CMYK and OKLCH at once, with WCAG text contrast.
Color Scheme Generator
Feed in one seed colour or sample an image to get six harmonies, each swatch labelled with WCAG contrast and grey-level separation.
