Image to Base64
Drop an image and copy it as a Base64 data URI, an <img> tag or a CSS background. Encoded on your device.
Stays on your device
Nothing is uploaded. Files are processed in your browser.No waiting
No upload, no queue. Most photos are ready in a few seconds.Free, no sign-up
No watermark, no daily limit, up to 50 images at a time.
How to use it
- Drop your images into the box, or tap it to choose them.
- Pick the output: data URI, Base64 only, an HTML <img> tag or a CSS background.
- Tap Copy and paste it into your code.
Questions
Is the image changed or compressed?
No. The Base64 is the file's own bytes, exactly as they are, so the image is the same. To make the string shorter, compress or resize the image first.
Why is the Base64 bigger than the file?
Base64 uses 4 characters for every 3 bytes, so the text is about a third larger than the image. Inline small images such as icons and logos; link to bigger ones as normal files.
Will a HEIC data URI show in every browser?
No. Only Safari draws HEIC. Convert it to JPG first if the page must work everywhere.
Are my images uploaded?
No. Everything runs inside your browser on your own device. Your files are never sent to a server, and you can check: open your browser's developer tools, watch the Network tab, and you will see no upload.
Is it free? Are there limits?
Free, with no sign-up, no watermark and no daily limit. Because the work happens on your device, it costs us nothing to run, so there is nothing to ration. You can add up to 50 images at a time.