Image to Base64

Convert any image file to a Base64 string (data URI) in your browser. Choose to include or strip the data-URI prefix, then copy or download the result. Nothing is uploaded.

Processed in your browser · No upload

Loading tool…

Encoding runs entirely in your browser using FileReader.readAsDataURL. Your image is never uploaded to any server.

Ad Slot (tool-image-to-base64)

FAQ

Are my images uploaded anywhere?
No. Encoding happens locally via FileReader. No network requests are made.
What is the difference between Base64 with and without the data-URI prefix?
With the prefix you get a full data URI like `data:image/png;base64,…` ready to paste into HTML or CSS. Without the prefix you get only the raw Base64 string.
Is there a size limit?
There is no hard limit, but very large images (tens of MB) can take a few seconds to encode in the browser. The output Base64 is about 33% larger than the original file.