Download a sample ICO icon of any size

Get a Windows icon file with one embedded PNG image, useful for favicon fields and icon upload limits.

10,485,760 bytes
10 MiB · WebP · 1,309 B
Exact size

1 MB = 1,000,000 B · 1 MiB = 1,048,576 B

WidthHeight
Advanced: test an upload limit

Enter the byte limit above, then choose one byte below, the exact limit or one byte above. Each choice uses the same base: 10,485,760 B. Generate and download each file to test your endpoint.

How is the sample ICO file built?

Each file holds an ICONDIR header, one directory entry and one 32-bit RGBA PNG image, the PNG-in-ICO layout Windows has supported since Vista and browsers read as a favicon. The icon is the largest standard square that fits: 16, 32, 48, 64, 128 or 256 pixels. Extra bytes go into a tEXt chunk inside the PNG, which image decoders ignore.

The smallest valid ICO file is 1,151 bytes; any byte count from there up to 2 GiB can be selected. MIME type: image/vnd.microsoft.icon.

Which ICO size do you need?

What is inside a 1 MiB ICO file?

The 1 MiB sample contains a 256 × 256 PNG of 1,048,554 bytes after the 22-byte ICO header. Inside that PNG, the pixel data (IDAT) is 262,431 bytes stored without compression and the tEXt chunk is 786,054 bytes. A 10 KiB request gives a 48 × 48 icon and a 100 KiB request a 128 × 128 icon.

When is a sample ICO file useful?

  • Testing favicon upload fields in site builders and CMS settings.
  • Checking that a server sends .ico files with the right Content-Type.
  • Making sure an icon converter or validator rejects oversize icon files.

Questions about ICO test files

Can I use it as a favicon?

Yes. Browsers display PNG-based ICO files. For a real site, keep favicons small; this file is meant for testing size limits.

Does it contain several icon sizes?

No. It contains one image. Multi-size ICO files are common for Windows apps, but one PNG entry is enough for upload and parser tests.

Format reference and related tools

Format reference: Microsoft, Icons.

Other formats in this family (Images): PNG · JPG · WebP · SVG · GIF · BMP · TIFF.

Related: Image Convert · Compress Image · Bytes to MB converter

Noticed an issue with this test file? Report an issue →