Image to Base64
Convert images to Base64 encoded strings
This free online image to base64 runs in your browser and is part of our Image Tools collection.
Image to Base64
Convert images to Base64 encoded strings
About Base64 Encoding
- Base64 encoding converts image binary data to ASCII text
- Use in HTML:
<img src="data:image/png;base64,..."> - Use in CSS:
background-image: url(data:image/png;base64,...); - Useful for embedding images in HTML/CSS/JSON without separate files
- Base64 encoded images are ~33% larger than original file
- Copy "Base64" for just the encoded string, "Data URL" for the complete data URI
More Image Tools
Explore related tools in the same category to solve adjacent tasks faster.