How to prepare an image for a website favicon
Choose a square source, generate the common icon sizes, and check the small files before you add them to your site.
Start with a square that is already sharp
A favicon is tiny. A 512 pixel square logo keeps more detail than a wide photo cropped down to an icon. If the important part of the picture is not in the center, crop it first. The generator keeps the largest centered square and cannot guess which part of a logo matters.
Download the sizes your site actually uses
The usual set is 16 and 32 pixels for the browser tab, 180 for an Apple touch icon, and 192 and 512 for a home-screen icon. The ICO file from this tool contains the 16 and 32 pixel images. You still have to put the files on the website you control. Generating them here does not change any other site.
Look at the small sizes before you publish
Open the 16 and 32 pixel files at their real size. Thin lines and small words often disappear. A simple mark reads better than a detailed illustration. If the small files look soft, start from a larger, simpler source instead of enlarging a tiny logo.