Image to Base64
Encode an image as Base64 or a data URI, or turn one back into a downloadable image.
About this tool
An image can travel inside a text file as Base64 or as a data URI. That is useful for small icons, emails and test fixtures, but it makes the file about a third larger.
Choose an image to see its Base64 and data URI, or paste a data URI or raw Base64 to rebuild the image and download it. The file stays in your browser, and images over 10 MB are refused.
Worked example
A 1 by 1 PNG has 67 bytes. As a data URI it starts data:image/png;base64,iVBORw0KGgo, and the decoded bytes are the same 67 bytes.
Common searches
- image to base64
- base64 to image
- image data uri
- png to base64
- data uri decoder