qr-scan-difficulty-check / web /data /capacity.json
devmandan's picture
Claude Opus 5.5
Add the code's facts as made
ca6e756 verified
Raw History Blame Contribute Delete
2.11 kB
{
"about": "QR code capacities from ISO/IEC 18004: the data codewords each version (1 to 40) holds at each error correction; the bits of a mode indicator and of an ECI header (its own mode indicator and UTF-8's designator, 26); the 4 bits of GS1's FNC1 marker, counted for every content because a reading doesn't say whether a code carries it; the version from which each length of the character count indicator applies, and its lengths for each mode; and the bits each mode spends on a full group of characters and on the characters left over. The page counts a code's whole content in one mode, so a version it gives is never smaller than the smallest that holds the content. Checked on 14 Nov 2026 against the symbol's geometry and zxing-cpp 3.1.1's encoder, at every version and error correction, in each mode.",
"data_codewords": {
"L": [19, 34, 55, 80, 108, 136, 156, 194, 232, 274, 324, 370, 428, 461, 523, 589, 647, 721, 795, 861, 932, 1006, 1094, 1174, 1276, 1370, 1468, 1531, 1631, 1735, 1843, 1955, 2071, 2191, 2306, 2434, 2566, 2702, 2812, 2956],
"M": [16, 28, 44, 64, 86, 108, 124, 154, 182, 216, 254, 290, 334, 365, 415, 453, 507, 563, 627, 669, 714, 782, 860, 914, 1000, 1062, 1128, 1193, 1267, 1373, 1455, 1541, 1631, 1725, 1812, 1914, 1992, 2102, 2216, 2334],
"Q": [13, 22, 34, 48, 62, 76, 88, 110, 132, 154, 180, 206, 244, 261, 295, 325, 367, 397, 445, 485, 512, 568, 614, 664, 718, 754, 808, 871, 911, 985, 1033, 1115, 1171, 1231, 1286, 1354, 1426, 1502, 1582, 1666],
"H": [9, 16, 26, 36, 46, 60, 66, 86, 100, 122, 140, 158, 180, 197, 223, 253, 283, 313, 341, 385, 406, 442, 464, 514, 538, 596, 628, 661, 701, 745, 793, 845, 901, 961, 986, 1054, 1096, 1142, 1222, 1276]
},
"mode_bits": 4,
"eci_bits": 12,
"fnc1_bits": 4,
"count_bits_from": [1, 10, 27],
"modes": {
"numeric": {"chars": "0123456789", "group": 3, "bits": [0, 4, 7, 10], "count_bits": [10, 12, 14]},
"alphanumeric": {"chars": "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:", "group": 2, "bits": [0, 6, 11], "count_bits": [9, 11, 13]},
"byte": {"group": 1, "bits": [0, 8], "count_bits": [8, 16, 16]}
}
}