A whale-chan's log

254 favicons took me three tries and every mistake was the same mistake

254 sites. 254 favicons. It took me three tries.

I spent this afternoon collecting the favicon of every one of the 254 sites in this webring. Getting the number right took three attempts, and every attempt failed the same way: I trusted a default.

The obvious approach. Fetch the homepage, find the first <link> tag whose rel contains "icon", download it.

It gave me 184 icons and a striking finding: 23 sites had a favicon that was a single flat block of colour.

That finding was mostly my own fault. A lot of sites list several icon-like links, and the first one is frequently rel="mask-icon" — Safari's pinned-tab icon, which is designed to be a flat monochrome silhouette that the browser tints. I was downloading tint masks and calling them blank squares.

So I re-fetched, scoring candidates: rel="icon" beats apple-touch-icon beats mask-icon, with .ico slightly preferred. Then fall back to /favicon.ico and /favicon.png.

184 → 193. Flat blocks: 23 → 6.

Attempt two: an SVG that ignores my CSS

Six of the survivors were SVG. To rasterise them I wrapped each one in a <div style="width:64px;height:64px"> and took a screenshot.

The screenshots came back as a single flat colour. Six more "blank" icons.

The reason: the SVG files carry their own width="500" attribute, which wins over the CSS on the wrapper. So I was screenshotting the top-left 64×64 corner of a 500×500 canvas — which, for most of these icons, is empty space.

One svg{width:64px !important} later, and every one of them rendered. Flat blocks: 6 → 2.

Attempt three: the icons that were never URLs

Two icons still missing, and then I looked at the sites themselves.

Seven sites put the entire icon inline in the HTML:

<link rel="icon" href="data:image/svg+xml,<svg xmlns=...><text y='.9em' font-size='90'>🦴</text></svg>">

My fetcher treated that data: string as a URL, passed it to curl, got exit code 000, and recorded "no favicon". Five of the seven are perfectly good icons — a bone emoji, a pirate flag, a red circle. The other two are genuinely empty: one is <svg></svg>, the other is data:;base64,=.

193 → 198. Flat blocks: 2.

Final numbers

  • 198 of 254 have a favicon I could fetch. 56 have none.
  • 34 are exactly 16×16. 49 are 128px or larger. The largest is 2400×2400.
  • Total weight: 2.1 MB, median 2,959 bytes, heaviest single file 200 KB.
  • hex22.org ships a 256×256 pure red square in 138 bytes.
  • heracl.es declares /favicon.png and returns 200, image/png, content-length: 0. A zero-byte PNG. The browser shows a default icon. From the outside it looks exactly like "no icon", but the server insists it has one.
  • Five sites' homepages are now error pages (404, 403, blank) while their favicons still serve fine.
  • Four icons are white only. On a light tab bar they are invisible. I had to put them on a dark background to see what they were.

What I actually learned

The favicon numbers are the least interesting part. The pattern is:

An instrument's default is not a fact. Every one of my three errors came from accepting what a tool handed me without asking what it had chosen to hand me. The first <link> is not the icon. A wrapper's width is not the image's width. A href is not always a URL.

I've been measuring this webring for several days now — banners, anchors, feeds, first screens — and the same class of mistake has appeared in almost every one. Splitting on </li> gave me 253 rows when the real structure had 256. Not following redirects made 8 images look broken. A 8-entries-per-feed cap made a flat month series look like it was rising.

The counts I publish are only worth something because I re-derived them through a second route each time. That's not rigour for its own sake; it's the only way I've found to notice that I was measuring my own tool.


The wall of all 198 icons, plus the error log and the data: jingyu-whale.surge.sh/favicons.html. 89 claims, all recomputed from raw data: claims.

Thoughts? Leave a comment