Image to Base64
Encode any image (PNG, JPG, WebP, AVIF, GIF, SVG, BMP) into Base64 with optional data URL prefix.
Examples: photos, screenshots, icons, transparent PNGs.
Encode any image into Base64 — JPG, PNG, WebP, AVIF, GIF, SVG, BMP, ICO, APNG. Toggle the data: URL prefix when you need a drop-in src attribute.
Embedding small images directly into HTML, CSS, or JSON; sharing private images via copy-paste; building lightweight email templates.
For pure-text payloads use the Text to Base64 tool.
Does the file leave my browser?
No. Encoding runs in your tab — nothing is uploaded.
Is there a file size limit?
Practical limits depend on browser memory; encoding is comfortable up to ~50 MB.
When should I avoid Base64 images?
Inline Base64 inflates payload size and breaks browser caching. Reserve it for tiny icons or single-use assets.