Image to Base64
Encode an image as a Base64 data URI for CSS or HTML.
Runs on our server
About this tool
Encode an image as a Base64 data URI so it can be placed straight into HTML, CSS or JSON without a separate file. Best for small icons, since Base64 is about a third larger than the file.
How to use it
- 1 Choose the image.
- 2 Select Encode and copy or download the result.
Questions
Do you store what I enter?
No. Your input is processed to give you the result and isn’t saved.
Is this tool free?
Yes. It’s free to use with no sign-up and no limits for normal use.
More in Encoding & hashing
- Base64 encoder Encode text to Base64.
- Base64 decoder Decode Base64 back to text.
- Base64 to image Decode a Base64 string or data URI back into an image file.
- URL encoder Percent-encode text so it is safe to put in a URL.
- URL decoder Decode percent-encoded URL text.
- HTML entity converter Encode special characters as HTML entities, or decode them back.