Favicon Generator
All favicon sizes from one image
Loadingโฆ
Was this tool helpful?
About this tool
This favicon generator turns a single image into every icon file a website needs at once โ PNGs at 16, 32, 48, 180, 192, and 512px, plus a combined favicon.ico built from the 16, 32, and 48px versions. For example, upload a non-square logo and the 'auto-trim margins' option, which is on by default, samples the color at the four corners to detect a transparent or solid-color margin, then crops a square around the content with 4% of padding before generating each size.
How to use
- Drag in or select the image you want to use as an icon.
- Six preview sizes (16/32/48/180/192/512px) and a favicon.ico are generated automatically.
- If your image is not square, toggle 'auto-trim margins' and compare the results.
- Download individual sizes, or grab all 6 PNGs and the ICO at once.
- Copy the HTML snippet shown on screen and paste it into your site's <head>.
- Upload the generated files (favicon.ico and the rest) to your site root to actually apply them.
Frequently asked questions
- What sizes does it generate?
- PNGs at 16, 32, and 48px (browser tabs), 180px (apple-touch-icon for iOS home screens), and 192px/512px (Android), plus a favicon.ico combining the 16, 32, and 48px versions.
- Does it work with non-square images?
- Yes. Turning on "auto-trim margins" samples the color at the four corners to detect a transparent or solid-color margin, then crops a square around the content. With it off, the image is center-cropped to a square instead.
- How do I apply the generated files to my site?
- Upload the downloaded files to your site root, then paste the HTML snippet shown on screen (the <link rel="icon" ...> tags) into your page's <head>.
- Is my image saved on a server?
- No. From the moment you select an image to generating each size, building the ICO file, and downloading, everything happens in your browser.
- How exactly does 'auto-trim margins' work?
- It samples a 10x10 pixel patch at each of the four corners and averages the color. Pixels close to that average (when there is no transparency) or with an alpha value of 10 or less (when there is transparency) are treated as margin. It then finds the boundary of the non-margin content and crops a square around it with 4% of padding added.
- What sizes does the favicon.ico file contain?
- It combines the 16, 32, and 48px PNGs into a single ICO file, for older browsers or anywhere that specifically expects the ICO format, like bookmark icons.
- What are the 180px, 192px, and 512px versions used for?
- 180px is the apple-touch-icon used when adding a page to an iOS home screen; 192px and 512px are for Android home screens and PWA icons. The 16, 32, and 48px versions are for browser tab favicons.
- My PNG has a transparent background โ why isn't the margin trimmed correctly?
- 'Auto-trim margins' judges the margin from the color at the four corners. If the logo fills the corners or each corner is a different color, it may not find the margin correctly โ try turning the option off and comparing it with a plain center crop instead.
- Can I get every size at once instead of generating them one at a time?
- Yes. 'Save all PNGs' downloads all 6 sizes in one go, and 'Save favicon.ico' downloads the combined ICO file separately.