How to create a favicon
- Choose a clear square or near-square PNG, JPG, or WebP.
- Use contain fitting so the complete logo remains visible.
- Download favicon.ico and test it at small sizes.
Create a transparent, contain-fitted favicon.ico with 16, 32, and 48 pixel images from PNG, JPG, or WebP.
Contain fitting preserves the complete image and adds transparent padding instead of stretching or cropping it.
Build a multi-size ICO using the existing bounded image decoder and tested ICO writer.
The browser decodes the source within pixel limits, fits it proportionally into selected transparent canvases, and packages the PNG sizes into one ICO directory.
No. The default contain treatment preserves the full image and adds transparent padding.
The ICO workflow includes the selected standard sizes, including 16, 32, and 48 pixels.