This favicon generator will guide you to a perfect set of favicon files, suitable for all devices and situations (browser, homescreen icon for iOS/Android/Windows, MacBook Touch Bar etc.)
Open the Favicon generator Show archive.org snapshot and upload a square image:
Then follow the steps it guides you. In the result window, stick to the HTML5 tab. It is just fine.