You can use the command line such as ImageMagick to free convert png to ico on Windows 11 or Windows 10.
Step 1. Download and install ImageMagick from the official website
Step 2. During installation, make sure to check the option to Add to PATH to allow running ImageMagick commands from the Command Prompt.
Step 3. Press Win + R, type cmd, and hit Enter to open the Command Prompt.
Step 4. Use the cd (change directory) command to navigate to the folder containing your PNG file. For example:
cd C:\path\to\your\image\folder
Step 5. Use the following command to convert PNG file to ICO on your PC:
magick input.png -define icon:auto-resize=64,48,32,16 output.ico
Here:
input.png is the name of the PNG image you want to convert.
-define icon:auto-resize=64,48,32,16 specifies the sizes for the ICO file. You can adjust these sizes based on your needs.
output.ico is the name of the resulting ICO file.