Image to Base64
Runs in your browser. Your files never leave your device.
How we keep your files private
How to use Image to Base64
- Add your image.
- Wait for the data URL.
- Copy it into your HTML, CSS or JSON.
Common uses
- Inlining small icons in CSS.
- Embedding images in emails or JSON.
- Testing APIs.
About this tool
Convert an image to a Base64 data URL that you can paste into HTML, CSS or JSON. Base64 makes files about a third larger, so it suits small icons better than large photos. Copy the result with one click.
Next steps
Frequently asked questions
How much bigger is Base64?
About one third larger than the original file.
When should I avoid it?
For large photos, which are better served as separate files.
Are my files uploaded to a server?
No. Everything runs inside your browser on your own device, so your files and text are never sent anywhere.
Is it really free?
Yes. There is no sign-up, no watermark and no limit on how often you use it.
Does it work on my phone?
Yes. It works in any modern browser on phones, tablets and computers. Very large files may be slow on older phones.
Does it work offline?
Once the page has loaded, most tools keep working without a connection, because processing happens on your device.