Barcode Size and DPI Calculator
Translate a barcode X-dimension into achievable printer dots and estimated dimensions — a sizing aid, not a scan-compliance certification.
2 or 3dots
Nearest whole-dot alternatives for the requested module — neither is a scan-compliance guarantee.
| Metric | Value |
|---|---|
| Requested X-dimension | 0.33 mm |
| Effective X (after magnification) | 0.33 mm |
| Raw dots | 2.6374 |
| Lower alternative | 2 dots = 0.25025 mm |
| Upper alternative | 3 dots = 0.37537 mm |
| Quiet zone (left / right) | 3.3 mm / 3.3 mm |
| Encoded width (from module count) | Enter a verified module count |
| Total width with quiet zones | — |
| Bar height | 20 mm |
X-dimension and integer printer dots
How this is calculated
dots = X(mm) × DPI / 25.4 | effective X(mm) = dots × 25.4 / DPIA printer can only place a whole number of dots, so the requested X-dimension almost never prints exactly — this tool always shows both the floor and ceiling dot alternatives and their resulting effective size, rather than silently rounding to one.
Worked example
X = 0.33 mm at 203 DPI: dots = 0.33 × 203 / 25.4 ≈ 2.6374. That rounds to 2 dots (0.25025 mm) or 3 dots (0.37537 mm) — neither alternative is automatically standards-compliant on its own.
Linear versus 2D symbols
Linear symbols (EAN-13, UPC-A, Code 128) have a single bar height set independently of the X-dimension. 2D symbols (QR Code, Data Matrix) are square modules arranged in a grid, so this tool asks for module rows and columns instead of a separate height.
Quiet zones and encoded dimensions
The quiet zone is the required clear space on each side of the symbol, expressed as a multiple of the X-dimension. Total encoded width is only calculated when you supply the real encoded module count from a verified encoder — this tool never estimates module count from data length, since encoding overhead varies by symbology, mode and error-correction level.
Limits of a sizing estimate
A correctly sized, dot-aligned symbol is necessary but not sufficient for reliable scanning — print contrast, substrate, ink spread and scanner quality all matter too. This tool makes no compliance or readability guarantee.
- Magnification
- Applied once, before dot rounding.
- No compliance claim
- Geometry alone does not certify standards compliance or scan reliability.
Questions
Why must modules align to printer dots?
A printer can only place whole dots, never a fractional dot. If a barcode's X-dimension does not land exactly on a whole number of dots, the printer rounds each module up or down to the nearest dot it can produce — which is why this tool always shows both the floor and ceiling dot alternatives instead of a single, misleadingly precise number.
Why is text length insufficient to size a QR code?
A QR code's module grid size (its "version") depends on the amount of data, the error-correction level chosen, and the encoding mode (numeric, alphanumeric, byte, or kanji) — the same character count can produce different symbol sizes depending on those choices. Sizing a QR code correctly requires the actual encoded module count from a real QR encoder, not a guess from character count alone.
Sources
- How Big Should a QR Code Powered by GS1 Be? — GS1 UK (reviewed 2026-09-15)
- Code 128 FAQ and General Specifications — PrecisionID (reviewed 2026-09-15)