File types / Images

.ico file

Icon image

Extensions
.ico
MIME type
image/x-icon
Signature
00 00 01 00at byte offset 0
Safety
Low risk

What is a .ico file?

ICO is the Windows icon format. A single file can hold several sizes of the same icon, which is why favicons are often .ico.

The first two bytes are zero, then a type field of 1 for icons (2 for cursors). The next two bytes give the number of images inside.

Used for: Windows icons and website favicons.

How can I tell if a file is really a ICO?

Read its first bytes rather than trusting the name. A genuine ICO file has the signature 00 00 01 00 at byte offset 0. The File Identity tool reads these bytes in your browser, so the file is never uploaded.

To compare the name against the content, use Validate Extension. To see the raw bytes, use Safe File Preview.

Is a .ico file safe to open?

An .ico file is an image container and does not execute code.

Easy to confuse

Cursor (.cur) files use the same layout with a type of 2. Modern sites usually use PNG or SVG favicons instead.