Base64 Image
Loading tool…
About Base64 Image
Upload an image (JPG, PNG, GIF, WebP, SVG, or another type the browser accepts) or paste a data URI starting with data:. You get a preview, Copy data URI, and Download image. Download writes the original bytes, not a new encode. Stats show Original, Data URI, and Increase.
The data URI uses standard Base64 (not URL-safe). Increase is ((data URI bytes minus original) / original) as a percent to one decimal. A typical value is about 33%. Some sites block data: images in CSP. That is the host policy, not this page.
How to use Base64 Image
- 1Upload an image or paste a data URI. Paste must start with data:. Upload is 15MB max.
- 2Preview the image. It renders locally from the data URI.
- 3Copy data URI or Download image. Download reconstructs the original bytes.
- 4Read the Increase percent. Base64 is typically about 33% larger than the file.
Paste vs upload
Upload is capped at 15MB. Paste of a long data URI is not size-capped. Paste must be a data: URI. Raw SVG markup or raw Base64 without the data: prefix is rejected.
Download picks an extension from the MIME type (png, jpg, gif, webp, svg, or .bin). Nothing is sent to a server.
Limits and privacy
The file is read in your browser. Nothing is uploaded. Upload is 15MB max. No account. Closing the page drops the image.
FAQs
- Why is Base64 bigger?
- Six bits per character versus eight bits per byte, plus padding. The Increase stat is that gap as a percent.
- Can I paste SVG markup?
- No. Paste a data: URI, or upload an .svg file. Raw SVG XML is rejected.
- Is the image uploaded?
- No. The file is read locally and turned into a data URI in your browser.
- What is the size cap?
- Upload is 15MB. A pasted data URI is not capped the same way.
- Will the data URI work on every site?
- Some Content-Security-Policy setups block data: images. That is the host, not this converter.