Image to BASE64
Encode any image to a Base64 data URI string for embedding in HTML, CSS or JSON. Supports PNG, JPG, GIF, WEBP and SVG.
Loading tool…
How to use the Image to BASE64
Base64 turns an image file into plain text so it can be embedded directly inside HTML, CSS, JSON or email templates without a separate file request. This is handy for small icons, placeholder images and self-contained documents.
- 1Upload or drag an image file into the tool.
- 2Choose the output format: raw Base64, data URI, HTML <img> tag or CSS background.
- 3Click "Copy" to copy the encoded string to your clipboard.
- 4Paste the code wherever you need the embedded image.
Frequently asked questions
Does Base64 make images larger?
Yes, Base64 text is about 33% larger than the original file, so it is best for small images under roughly 10 KB.
Which image formats are supported?
Any format your browser can read, including PNG, JPG, GIF, WEBP, SVG, BMP and ICO.