DotCode generator
DotCode was designed for printers that can't draw a solid square. A continuous inkjet head firing at cartons that rush past at line speed lays down round dots with gaps between them, and a Data Matrix printed that way falls apart. DotCode is made of isolated dots on a checkerboard grid, so a join that never formed between two dots costs nothing. You'll meet it on cigarette packs, where the EU tobacco traceability rules accept it next to Data Matrix and QR, and on cartons coded by inkjet or laser right on the line.
321 × 233 px in the PNG
Specification
- Character set
- any data
- Length
- from 1 to 250 characters
- Check digit
- not used by this symbology
Generate DotCode barcodes in bulk
Got a whole list of values rather than one? Generate DotCode barcodes in bulk
Where it is used
- Unique identifiers on tobacco packs under the EU traceability system, printed at the speed of the packing machine
- Date, lot and serial codes inkjetted onto cartons, cans and bottles as they pass the coder on a filling line
- Laser coding on pharmaceutical and food packaging, where the marking head works in dots rather than filled areas
How it compares
Against Data Matrix: Data Matrix wants touching modules and a solid L-shaped edge to find itself by, which a high-speed inkjet struggles to deliver. DotCode only asks for dots in roughly the right places, has no finder pattern to damage, and can be laid out as a long, thin strip to run along the edge of a pack. In exchange, fewer devices read it. The big industrial imagers support it; most phone apps and general-purpose decoders don't. Against QR there's barely a comparison to make, because the jobs differ: QR is for people holding phones, DotCode is for a camera mounted over a conveyor.
Common mistakes
- Testing it with a phone. An app that reports nothing isn't telling you the code is bad; most likely it doesn't know DotCode at all. Test with the imager that will read it on the line, or with a verifier.
- Letting the dots merge. On screen and on a laser printer they come out round and separate, as they should. If a proof shows dots running into blobs, the print is too heavy for the dot pitch, and that's the one failure DotCode doesn't forgive.
- Using it as the only code on a pack that consumers or shops will scan. Anyone outside your own supply chain needs a QR code or a retail barcode next to it.
- Running artwork right up to the symbol. DotCode needs a quiet zone of three dot pitches all round, and a pattern that touches the outer dots costs reads on the line.
Frequently asked questions
- Can a phone scan DotCode?
- Usually not. Most camera apps and the open-source decoders behind them, including the one on this site's scanner, don't read DotCode. Industrial imagers from the major manufacturers do.
- Why are there gaps between the dots?
- That's the design. Every module is a separate dot, and the reader works from where the dots are, so the gaps are exactly what makes the code tolerant of inkjet printing. Don't fill them in.
- How much data can it hold?
- The format has no fixed maximum: the symbol simply grows as data is added. This generator accepts up to 250 characters, which already makes a symbol far larger than anything printed on a pack; traceability codes run to a few dozen characters.
- Is it the same thing as a dot-peened Data Matrix?
- No. Dot peening stamps a Data Matrix into metal as a pattern of dots, but the result is still Data Matrix, with its own layout and its own reader settings. DotCode is a separate symbology with a separate decoder.