365FreeTools365

Image to Base64

Turn an image into a Base64 data URI, or decode one back.

🔒 100% in-browser processing · your files never leave your deviceRuns locally · nothing uploaded✓ No sign-up⚡ Instant🌐 KO·EN·JA·ZH·ES
Loading…

How to use

  1. Select an image — the data URI is generated instantly.
  2. Press “Copy” and paste it into background-image or an <img> src.
  3. To reverse it, paste a data URI and press “Save as file”.

Supported formats

PNGJPGWEBPGIFSVG

Convert icons and logos into Base64 data URIs you can paste straight into HTML or CSS, and turn a data URI string back into an image file.

Frequently asked questions

Does Base64 make files bigger?
About 33% bigger. Worth it for small icons that avoid an extra request, not for large photos.
Which formats are supported?
PNG, JPG, WEBP, GIF and SVG. For SVG, pasting the markup is usually lighter.
The string is enormous.
That is normal — you are looking at the raw bytes as text. Keep it on one line in your editor.

Works well with