Free DotCode Generator
DotCode is a 2D code made of separate dots instead of squares, designed for the inkjet and laser printers that mark products on fast production lines. Type any text, up to about 390 letters or 780 digits here, and download it as a vector or an image.
Any text, up to about 390 letters or 780 digits; less with accents or other scripts.
The blank margin around the code, in modules (the width of the narrowest bar or one cell). DotCode needs at least 3.
Made in your browser; nothing you type is sent to QRdx. WebP and AVIF are encoded by QRdx's server when you pick them, and nothing is kept.
Where DotCode barcodes are used
Cigarette and tobacco packs sold in the EU: the traceability system of the Tobacco Products Directive accepts DotCode, as well as Data Matrix and QR codes, for the unique identifier on each pack.
Medicines, drinks and other goods coded on the line. The dots don't have to touch, so a fast inkjet printer can mark each item as it passes, on cartons, cans or labels.
Readers need a camera-based scanner with DotCode switched on; many phone apps and older scanners don't read it. The scan check on this page can't read it either, so it says the code wasn't checked: test a print with a reader that supports DotCode.
Plain DotCode or GS1 DotCode?
This page makes plain DotCode: it holds whatever text you type, with no registration.
GS1 DotCode, which carries GS1 Application Identifiers after a special first character, isn't offered here. For GS1 data in a barcode from this generator, use GS1-128.
What DotCode can hold
What it takes
Any text, up to about 390 letters or 780 digits; less with accents or other scripts.
Example
QRdx DotCode sampleAny text: letters, digits, symbols, line breaks, accents and other scripts. Accents and other scripts are stored as UTF-8 bytes, which take more room, and some readers show them wrongly.
A DotCode here holds up to about 390 letters or 780 digits. Larger ones were tested with an outside DotCode reader, which didn't read them, so the generator stops there.
Text that starts with two digits gets a marker in front saying it isn't GS1 data, as the DotCode specification asks; some readers show that marker as an invisible character before the text.
The code grows as you add text, keeping a wide rectangle. Dots sit on every other square of a checkerboard grid, so no two dots touch.
DotCode barcode size
| Example as SVG, PDF or EPS | 25.5 × 19.1 mm |
|---|---|
| Cell | 0.706 mm |
| Quiet zone | At least 3 cells all round; the generator starts with 3 |
- The vector downloads use a 0.71 mm module: each dot is that wide, on a grid of that pitch. Scale it to the dot size of the printer that will mark it.
- DotCode needs 3 modules of blank space all round, which the generator starts with.
- Image size starts at 2×: at 1× each dot is 2 pixels across, which the outside reader it was tested with didn't read.
- Test with the reader that will read it, at the size and on the material you'll print.
DotCode barcode API
The same barcode is an image URL, with no API key: put it in an img tag, a label template or a product feed. It checks the value the way this page does, and allows 300 requests a minute per IP address. The barcode API docs list every option.
SVG image
https://api.qrdx.dev/v1/barcode?format=dotcode&data=QRdx%20DotCode%20samplePNG, 3 pixels per module
https://api.qrdx.dev/v1/barcode?format=dotcode&data=QRdx%20DotCode%20sample&type=png&scale=3In a web page
<img src="https://api.qrdx.dev/v1/barcode?format=dotcode&data=QRdx%20DotCode%20sample" alt="DotCode QRdx DotCode sample" />DotCode barcode FAQ
Can this page check that it scans?
No. The scan check uses ZXing, which doesn't read DotCode, so it says the code wasn't checked instead of guessing. Test a print with a reader that supports DotCode.
DotCode or Data Matrix?
Use the one your printer and the readers on your line support. Data Matrix is read by more scanners; DotCode suits fast inkjet printers, whose round dots don't have to join up into squares.
Can a phone read DotCode?
Some barcode scanner apps can, but most phone camera apps can't. For codes people scan with a phone, use a QR code.
Other barcode types
All 20 barcode typesBarcodes are static: the data is in the bars, so they work offline and never expire. For a link people scan with a phone camera, use one of the QR code generators.