How to convert a PNG to an ICO file
To convert a PNG to ICO, a converter draws the picture at each icon size and stores them together in one .ico file, the kind a website's favicon and Windows icons use. Olbo's Converter does this in your browser tab: choose the PNG, pick ICO, tick the sizes from 16, 32, 48 and 256 pixels, and save. Transparent parts stay transparent, and a picture that is not square is centred on a clear square rather than stretched.
Step by step
- Open the Converter and press Choose a file.Pick the PNG. On a computer you can also drag it onto the window. A square picture at least 256 pixels wide can fill every size without being stretched up.
- Under To, choose ICO.
- Tick the sizes you want.Sizes has a box for 16, 32, 48 and 256 pixels. Sizes bigger than your picture start unticked, because they would be stretched up from fewer pixels. One box always stays ticked.
- Press Convert to ICO.The new file is listed under Converted, with its size.
- Press Save.It is saved as a new file named after the PNG, like logo.ico. For a website, rename it favicon.ico.
Which sizes to tick for a favicon
Browsers show a favicon at 16 or 32 pixels, and Windows uses 48 and 256 for its bigger icons, so it is worth keeping all four. They all start ticked when your picture is at least 256 pixels on its shorter side.
Each size is drawn from your whole picture, not from a smaller size, and kept inside the .ico as a PNG.
Pictures that are not square, and other formats
An icon is square. A picture that is not square is centred on a transparent square, as large as fits, and the screen says so before you convert.
A JPEG, WebP or SVG becomes an icon the same way. A JPEG has no transparency, so only the space around a picture that is not square is clear.
More guides
Olbo is an office suite that runs in your browser. Your files are read on the machine you are sitting at and are never uploaded. See all the tools.