The closest flags in the world
All 254 of them, ranked by how close the nearest other flag in the world is. The number is measured off the pictures, not off anybody's opinion of them: two copies of one picture score 0.
The closest flags in the worldEvery flag measured against every other. 0 is the same picture.
- 1Chad vs Romania10.7
- 2El Salvador vs Nicaragua23.5
- 3Egypt vs Yemen25.3
- 4Caribbean Netherlands vs Paraguay27.4
- 5Netherlands vs Paraguay27.4
- 6British Virgin Islands vs Cayman Islands28.2
- 7Hungary vs Tajikistan32.8
- 8Montenegro vs Vietnam32.9
- 9Kyrgyzstan vs Montenegro33.6
- 10Honduras vs Nicaragua34
flagory.com/closest
All 254, in order
Each flag with the one measured nearest to it, and how far apart they are. Take the table as a CSV.
How to get this number yourself
Every flag is drawn at 64×48 and cut into squares 8 across. Each square is averaged to one colour. Two flags are compared square against square, and the score is the worst single square — so two flags that agree everywhere except one corner are as far apart as that corner. 0 is the same picture; the number is the worst single tile, out of 255. This table is each flag's smallest such score against any flag not flying its own design.
All of it is in the open. The pictures are in the repository, the numbers are in content/similarity.json beside them, and npm run content:build writes that file from those pictures. Nothing was typed in, and nothing here needs to be taken on trust: npm run content:validate measures every pair again and refuses the file if it is not what came out.
What it cannot see. Every flag is stretched to the same box, so the shape of the flag and how wide it is flown are gone — two flags identical but for their proportions are not measured as identical, and two flags of very different shape are not pushed apart by it. A square is an eighth of the flag across, so a coat of arms, a star or a line of writing is averaged into the field behind it rather than counted. And it knows nothing about meaning: it compares pictures, and a person telling two flags apart has more than a picture to go on.