About this tool
Turn an image into Base64 text. Copy it as a data URI, a plain Base64 string, an HTML img tag or a CSS background-image rule, and paste it straight into your code or an email template. Nothing is sent anywhere.
How to use it
- Add an image.
- Choose the output: data URI, Base64 only, HTML or CSS.
- Press Copy to clipboard, or download it as a text file.
Frequently asked questions
What is a data URI?
A way to put a small file inside text, like data:image/png;base64,… You can use it as the src of an image or in CSS without a separate file.
Why is the text bigger than the picture?
Base64 uses about one third more space than the file itself. It works best for small images such as icons and logos.
Is the picture changed?
No. PNG, JPG, WebP, GIF, SVG and BMP are encoded exactly as they are. Other formats such as HEIC are saved as JPG first.
Can I use it in CSS?
Choose CSS background-image and paste the line into your stylesheet.
Is it free?
Yes. It is free to use, with no sign-up and no watermark.
Are my photos uploaded anywhere?
No. HD Resizer runs entirely in your browser, so your images stay on your device. Nothing is sent to a server, and there is no account or watermark.