You can convert an image to a data URI directly from within the DevTools.
This can be done in several places inside the DevTools.
- Right click an image in the page en choose “Inspect”:
Right click url in Styles tab and choose: “Open link in Application panel”:
Copy image as Data URI: