Image to Base64
Convert an image to a Base64 data URI, in your browser.
Drop an image here
Or choose an image from your device. Encoding happens locally in your browser — the image is never uploaded.
Recommended next steps
Related tools
Strip EXIF and location data from images, locally in your browser.
Convert SVG vector files to PNG at a chosen size, in your browser.
Create a QR code from any text or link and download it as PNG or SVG.
Frequently asked questions
No. The image is read entirely in your browser with the built-in FileReader and turned into a Base64 data URI on your own device. Nothing is ever sent to a server, so it works offline and your image stays private.
A data URI lets you embed an image directly inside HTML or CSS instead of linking to a separate file. That saves an HTTP request, which is handy for small icons, email signatures, or single-file pages. For large or frequently-changing images a normal file reference is usually better.
Base64 encodes every 3 bytes as 4 text characters, so the encoded string is always about 33% larger than the original binary file. The tool shows both the original size and the decoded size so you can see the overhead before you paste it.
No. The tool reads your file's original bytes and encodes them as-is, so it is lossless — a PNG keeps its transparency and nothing is re-compressed. The Data URI, CSS, and HTML options just wrap those same bytes in different snippets.
Last updated 2026-06-23.