Code 11 Generator
Generate Code 11 (USD-8) barcodes with dual check digits C and K. Enter data, render scannable barcode, and download as PNG.
About
Code 11 is a high-density numeric barcode symbology developed by Intermec in 1977. It encodes digits 0 - 9 and the dash character (−), producing compact labels used primarily in telecommunications equipment labeling and component identification. The symbology employs two modulo-11 check digits, designated C and K, making it more error-resistant than single-check symbologies. Incorrect check digit computation causes scanner rejection, halting inventory workflows and triggering manual audits. This tool computes both check digits algorithmically and renders the barcode with proper start/stop sentinels via Canvas, producing scanner-ready output.
Note: Code 11 is limited to the character set 0 - 9 and −. Data containing alphabetic or special characters cannot be encoded. The barcode density depends on the selected module width; scanners typically require a minimum module width of 7.5 mil (0.19 mm) for reliable reads at standard distances.
Formulas
The check digit C is computed over the original data characters. Let the data have n characters with values d1, d2, …, dn.
where wi cycles through 1, 2, …, 10, 1, 2, … assigned right-to-left from the last data character. If the result equals 10, the check character is −.
where the data for K includes the appended C digit, and weights cycle 1 - 9 right-to-left. The final barcode structure is: Start sentinel + data characters + C + K + Stop sentinel.
Where: di = numeric value of the i-th character (0 - 9 for digits, 10 for dash). wi = positional weight. n = total number of data characters.
Reference Data
| Character | Value | Bar Pattern (BSBSB) | Encoding (1=wide, 0=narrow) |
|---|---|---|---|
| 0 | 0 | 00001 | NNNNW |
| 1 | 1 | 10001 | WNNNW |
| 2 | 2 | 01001 | NWNNW |
| 3 | 3 | 11000 | WWNNN |
| 4 | 4 | 00101 | NNWNW |
| 5 | 5 | 10100 | WNWNN |
| 6 | 6 | 01100 | NWWNN |
| 7 | 7 | 00011 | NNNWW |
| 8 | 8 | 10010 | WNNWN |
| 9 | 9 | 10000 | WNNNN |
| − | 10 | 00100 | NNWNN |
| Start/Stop | - | 00110 | NNWWN |
| Check Digit Calculation Parameters | |||
| Check C | Weights cycle 1 - 10 right-to-left, modulo 11 | ||
| Check K | Weights cycle 1 - 9 right-to-left (includes C), modulo 11 | ||
| Module Dimensions (Industry Standards) | |||
| Narrow bar | 1X (minimum 7.5 mil) | ||
| Wide bar | 2X to 3X | ||
| Inter-character gap | 1X | ||
| Quiet zone | ≥ 10X each side | ||
| Typical density | 15 char/inch at 7.5 mil | ||
| Max data length | No formal limit; practical limit ~40 chars | ||