What you're using right now
- 100+ barcode & QR symbologies
- Live preview & customization
- PNG & SVG export, no login
- Copy to clipboard
Loading Barcode Mintβ¦
Free Online Barcode & QR Code Generator
Create a Matrix 2 of 5 barcode for legacy inventory and warehouse systems, right in your browser, no software to install.
Open the generator βTurn a CSV β or a numbered sequence β into hundreds of barcodes at once, exported as a ZIP of images or a print-ready PDF sheet. Launching with Pro.
The browser generator stays free forever. Paid plans are for teams who need bulk output and developers who need the REST API at scale β commercial license included. Tell us what you'd use; early-list members get first access and launch pricing.
What you're using right now
For designers & teams
Priced by requests. Commercial license and self-serve keys included; usage dashboard at launch.
Matrix 2 of 5 is a numeric-only linear barcode that belongs to the "2 of 5" family, a group of symbologies where every encoded digit is represented by five bars, exactly two of which are wide and three of which are narrow. It's one of the earliest barcode designs, dating back to the 1960s, and it predates the more familiar Interleaved 2 of 5 and Code 39 that eventually replaced it in most applications. The name comes directly from its structure: five elements per digit, two wide.
Unlike Interleaved 2 of 5, which packs two digits into alternating bars and spaces to save space, Matrix 2 of 5 uses only the bars to carry data — the spaces between bars are just fixed-width separators and don't encode anything. Each digit 0–9 is assigned a unique pattern of two wide bars among five, so the symbol is read one digit at a time from a single sequence of bar widths. This makes Matrix 2 of 5 less space-efficient than Interleaved 2 of 5 for the same data, which is one of the main reasons it fell out of favor once printing and scanning technology improved enough that Interleaved 2 of 5 and Code 128 became practical.
The symbol encodes digits only (0–9), with no letters or punctuation, and a start and stop pattern frame the data so a scanner can tell where the code begins and ends and in which direction it's being read.
Matrix 2 of 5 encodes digits 0–9 only, with no upper length limit defined by the symbology itself, though practical labels tend to run 4–20 digits. Each character is 5 bars (2 wide, 3 narrow); the spaces between bars are fixed-width and carry no data, unlike the interleaved variant. A distinct start and stop pattern frames the symbol so scanners can detect orientation and boundaries. There's no mandatory check digit in the base specification — whether one is appended depends entirely on the conventions of the legacy system you're integrating with. Matrix 2 of 5 isn't maintained by a formal standards body like GS1 or ISO; it persists purely through legacy equipment and software that still expects it.
Matrix 2 of 5 is largely a legacy symbology at this point. You'll mostly encounter it in older warehouse management systems, some airline ticket stock, and photofinishing envelope tracking — industries that adopted it decades ago and have kept the underlying label formats unchanged rather than migrate to newer standards. If you're generating a Matrix 2 of 5 barcode today, it's almost always because you're integrating with, or replacing labels for, an existing legacy system that specifically expects this format rather than choosing it fresh for a new application.
For new numeric-only barcode needs, Code 128 or Interleaved 2 of 5 are generally more practical choices because of their better data density and wider scanner support, but Matrix 2 of 5 remains necessary wherever a downstream system was built to read it.
Select Matrix 2 of 5 from the symbology list on the left, then type your numeric string into the data field — only digits 0–9 are accepted. From there you can:
/barcode?type=matrix2of5&data=1234567890 — to generate codes programmatically from your own scripts or systemsBecause Matrix 2 of 5 relies entirely on precise bar widths to distinguish wide from narrow elements, print quality matters more here than with symbologies that also use spacing to encode data. Use a printer resolution high enough that wide and narrow bars remain clearly distinguishable after printing — low-resolution thermal or dot-matrix output can blur the ratio between them and cause misreads. Keep the quiet zones clear of any other print or graphics, and test with the actual scanner model your legacy system uses, since older CCD and laser scanners can be less tolerant of print variation than modern imager-based scanners.
Matrix 2 of 5, Industrial 2 of 5, IATA 2 of 5, and Interleaved 2 of 5 all belong to the same "2 of 5" family and share the core idea of five bars per digit, two wide and three narrow. What separates them is where the data lives and how the standard was adopted: Matrix and Industrial 2 of 5 encode data only in the bars and treat spaces as fixed separators, making them wider for the same digit count; Interleaved 2 of 5 interleaves two digits into alternating bars and spaces, roughly halving the symbol length; and IATA 2 of 5 uses the same all-bars structure as Matrix and Industrial but is specifically the variant standardized for air cargo. If you're choosing fresh today rather than matching an existing system, Interleaved 2 of 5 or Code 128 will almost always produce a shorter, easier-to-scan barcode.