Converters
Image to Base64
Turn an image into a Base64 data URI you can paste straight into HTML, CSS or JSON. Also decodes a data URI back into a downloadable image.
Runs entirely in your browser — nothing is uploaded
Encode an image
Drop an image here
or click to choose. Small icons and logos are the usual candidates.
No image loaded yet.
—File size
—Encoded size
—Dimensions
Output
Encoded output will appear here.
Decode a data URI
Good to know
- Base64 inflates a file by roughly 33%, so it suits small icons rather than photographs.
- Inlining removes a network request but the bytes cannot be cached separately from the page.