File to Base64 String, for use as a data URI

Click the button below to select some files, or just drag some onto this page. Conversion is done fully in your browser, no data is sent to the server.

To use the resulting data URI, do either: <img src="data:image/gif;base64,B64Data..." /> or in CSS: background-image: url(data:image/gif;base64,B64Data...);. This works in the current crop of browsers, down all the way to IE9. IE9 is limited to around 32KB file size for embedded data though.

Select some Files
© Anders Hammervald, 2019