# Cartograph Flag Finder (find a flag by its colours and layout) > Saw a flag and don’t know whose it is? Pick its colours, stripes and symbols to find the country. Finds the flags of 197 countries by their colours (red, dark red, orange, yellow, green, blue, light blue, white, black), their layout (horizontal, vertical or diagonal stripes, cross, saltire, canton, hoist triangle, border) and their symbols (disc, star, crescent, sun, coat of arms, writing, map, Union Jack, animal, plant, weapon), optionally with the number of stripes and a region. Every flag gets a score from 0 to 100; the best matches are shown with their flags. It is the flag-finder engine of the Cartograph app. Part of usefulweb.site (https://usefulweb.site/). Part of [Cartograph](https://cartograph.usefulweb.site/) (ownerApp: cartograph). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://cartographflagfinder.usefulweb.site/ (interactive tool at https://cartographflagfinder.usefulweb.site/tool) - JSON API: POST https://cartographflagfinder.usefulweb.site/api/v1/calculate with a JSON object of inputs (schema: https://cartographflagfinder.usefulweb.site/api/v1/tool) - OpenAPI: https://cartographflagfinder.usefulweb.site/openapi.json - MCP (Streamable HTTP): https://cartographflagfinder.usefulweb.site/mcp - tool `cartograph_flag_finder` ## Inputs - colours (multiselect): Colours in the flag - features (multiselect): Layout and symbols - bands (integer): Number of stripes (0 = any) - exclude (multiselect): Colours that are NOT in the flag - region (select): Region - onlyColours (boolean): Only these colours (penalise flags with more colours) - limit (integer): Results ## Method - Colours: every flag picture (flag-icons SVG, 4:3) was drawn once at 200 × 150 pixels and each pixel assigned to the nearest of nine named colours in CIELAB. Colours covering at least 3 % of the flag are its main colours; 0.8–3 % count as small details (emblems, outlines). - Layout and symbols: tags curated for every flag and checked against the flag descriptions of The World Factbook; the stripe count is measured at the fly edge (horizontal) and near the top (vertical). - Score: each wanted colour counts 1 when it is a main colour, 0.6 when a close colour is (red ↔ dark red/orange, blue ↔ light blue, yellow ↔ orange) and 0.35 when it only appears in details; each wanted feature 1 (0.5 for a close one, e.g. cross ↔ saltire, disc ↔ sun); the stripe count 1 when equal and 0.4 when one off. The sum is divided by the number of wishes; extra main colours cost a little (more with “only these colours”), excluded colours cost 0.5 each. - Results are sorted by score, then by English name. Flags are shown in the 4:3 drawing of flag-icons; official proportions differ for many countries.