Image to Base64 Converter
Convert an image to a Base64 data URL for HTML, CSS or JSON. Free, no sign-up, files never leave your device.
JPG, PNG, or WebP — multiple files supported
🔒 No upload · No size limit · No sign-up · No queue
How it works
- Choose an image file.
- The Base64 data URL appears straight away.
- Copy the data URL, the Base64 text only, or an <img> tag.
Embed small images straight into HTML, CSS, emails or JSON without hosting a separate file. Choose an image and get its Base64 data URL instantly, then copy the full data URL, just the Base64 part, or a ready-made <img> tag.
Frequently asked questions
What is a data URL?
A string such as data:image/png;base64,… that contains the whole image, so it can be used anywhere a URL is expected.
Why is the Base64 bigger than the file?
Base64 uses about 4 characters for every 3 bytes, so the text is roughly a third larger than the image.
When should I use Base64 images?
For small icons and logos. Large photos are better as normal files, because Base64 makes pages heavier and can't be cached separately.
Is my image uploaded?
No. The conversion happens in your browser.