Convert an image to a Base64 data URI — copy or download, original bytes preserved, in your browser.
Encodes an image's original bytes as Base64 — full data URI, raw, CSS, HTML or JSON — with copy and download.
Pixels and quality are unchanged; an animated GIF stays animated.
Base64 is about 33% larger than the binary; best for small inline assets, not large photos.
The file is read on this page only; nothing is uploaded.
Image to Base64 turns an image file into a Base64 text string you can paste directly into HTML, CSS, JSON or a data URI. It encodes the file's original bytes, so the pixels, format and quality are unchanged — only the representation becomes text.
Choose how the output is wrapped: a full data URI, the raw Base64 only, a CSS url(…) rule, an HTML <img> tag, or a JSON string. Copy buttons under the result put the full data URI or the raw Base64 on your clipboard, and the result panel shows the exact lengths and how much larger the text is than the binary.
Because the original bytes are encoded directly, an animated GIF stays animated in the data URI. The file is read and encoded by browser APIs on this page — nothing is uploaded.
Original bytes are encoded as-is — pixels, format and quality stay exactly the same.
One-click copy for the data URI or raw Base64, plus a downloadable text file.
Full data URI, raw Base64, CSS url(), HTML <img> or JSON — ready to paste.
The result reports the Base64 length, data-URI length and the ~33% inflation.
Embed a small image straight into CSS or HTML without a separate request.
Paste a logo as a data URI into an email template or document.
Send an image inside a JSON field as a Base64 string.
Keep a tiny image inline so a page works without external files.
No. It encodes your file's original bytes as Base64. The pixels, format and quality are unchanged; only the representation becomes text.
Base64 text is roughly 33% larger than the binary file, and the result panel shows the exact raw-Base64 length, data-URI length and inflation. Use it for small inline assets, not large photos.
Yes. Copy buttons under the result put the full data URI or the raw Base64 on your clipboard, and you can switch the output to a CSS url(), an HTML img tag or a JSON string.
Yes. Because the original file bytes are encoded directly, an animated GIF stays animated inside the data URI — no frame is dropped.
No. The file is read and encoded by browser APIs on this page; nothing is sent to a server.
Tools that pair well with Image to Base64.