
How to Make a Favicon for Your Website (Sizes, Formats, and HTML)
A favicon is the small icon in a browser tab, bookmark list, and search result. It is also the icon people see when they add your site to their home screen. A missing one looks unfinished, and getting all the sizes right used to be fiddly. Here is what you actually need today. favicon.ico containing 16, 32, and 48 pixel images: the classic file, still requested by many browsers and tools. icon.svg: a scalable version supported by modern browsers, which can even adapt to dark mode. apple-touch-icon.png at 180 by 180 pixels: used when someone adds your site to an iPhone or iPad home screen. icon-192.png and icon-512.png: used by Android and progressive web apps through the web manifest. Start from a simple, bold shape. Tiny sizes can't show detail or long text. Use a square source image at least 512 by 512 pixels. Keep a little padding for the touch icon; iOS applies rounded corners.
