Image to Base64 Members
Convert an image to a Base64 string or data URI for HTML and CSS.
This tool is available to registered members
Create a free account or sign in to use this tool. Registration is free and takes less than a minute.
Your data is processed in your browser and is not uploaded to our servers.
About the Image to Base64
Image to Base64 encodes a picture as text so it can be embedded directly in HTML, CSS, JSON or emails. Choose a plain Base64 string, a data URI, a CSS background rule or an HTML image tag.
How to use the Image to Base64
- Choose an image (up to 10 MB).
- Pick the output format.
- Copy the result or download it as a text file.
Frequently asked questions
When should I use Base64 images?
For small icons and images where saving an extra HTTP request matters. Large images are better served as normal files.
Why is the Base64 text larger than the file?
Base64 encoding adds about 33% to the size.