Data Matrix Barcode Generator

Create compact Data Matrix codes for small items, electronics, and documents.

Any text or binary data (up to 2,335 characters)

Need a different barcode type? Browse all generators

What is a Data Matrix Barcode?

Data Matrix is a two-dimensional barcode that can store large amounts of data in a compact square or rectangular pattern. It uses built-in error correction (Reed-Solomon) to remain readable even when partially damaged. Data Matrix codes are commonly found on small electronic components, circuit boards, and in pharmaceutical packaging.

Want to learn more about Data Matrix barcodes? Read our complete guide to Data Matrix for electronics applications, healthcare uses, and implementation best practices.

How to Use This Generator

Creating a Data Matrix code is straightforward:

  1. Enter your data (text, numbers, or binary data up to 2,335 characters)
  2. Click 'Generate Barcode' to create your Data Matrix code
  3. Customize size and colors in advanced options (optional)
  4. Download your code as SVG, PNG (multiple resolutions), or PDF

Common Use Cases

Data Matrix codes are perfect for:

  • Electronics marking and component identification (PCBs, semiconductors)
  • Pharmaceutical packaging and medical device tracking
  • Document management and small item labeling where space is limited

Test Your Data Matrix Code

After generating your Data Matrix code, verify it scans correctly even at small sizes before production. Use our free barcode scanner to test your codes instantly - simply scan with your camera or upload an image to ensure proper encoding and readability. Test your Data Matrix code with our free scanner.