What's inside an ICO file
An ICO is a small container that holds several square images at different sizes, so Windows and browsers can pick the sharpest one for each place. Modern ICOs store those images as PNG inside. Start from a square PNG at least 512 pixels wide so every size is drawn from enough detail.