Free Online Data Matrix Generator
Generating & Printing Data Matrix 2D Barcode Images Online
Online Data Matrix Generator is developed based on OnBarcode
Barcode Generator for .NET.
NOTE
We are providing free online streaming barcode generation service. Now you can
generate barcode image through the following url:
http://generator.onbarcode.com/linear.aspx?TYPE=4&DATA=123456789
To get this free online service, please contact us support@onbarcode.com
Watch a quick video tutorial and get started
OnBarcode barcode products
OnBarcode also provides the following libraries and components for generating, printing, scanning, and reading Data Matrix barcodes.
Barcode Software & Libraries
OnBarcode provides professional barcode software and libraries for you.
QR Code Software & DLLs
OnBarcode provides reliable & mature QR Code software and dlls for you.
- QR Code in BIRT - creating, printing QR Code 2D barcode images and resize in Eclipse BIRT Report.
- Read QR Code in .NET - reading, scanning QR Code bar codes in .NET projects using C# / VB.NET sample code.
- QR Code in .NET - generating, creating QR Code matrix barcode images in .NET programs easily.
- QR Code in C# - generating, printing QR Code barcodes in Visual C#.NET applications.
- QR Code in VB.NET - creating, printing QR Code images in Visual Basic with VB.NET sample codes.
- QR Code in .NET Crystal Report - printing, generating multiple QR Code images in Crystal Reports with tutorial.
Data Matrix Software & Components
OnBarcode provides complete Data Matrix barcode generating component, library, and SDK for you.
How to Generate free Data Matrix Barcode online?
This comprehensive guide provides a step-by-step, web-focused approach to generating, encoding, and customizing Data Matrix (a 2D matrix barcode symbology designed for high-density data storage) in online web browser and web application. It covers basic quick generation, data encoding rules, advanced data formats, dimension customization, color/image settings, and advanced features, with web-specific optimizations to ensure seamless rendering and scanning across all online web environments.
Data Matrix Barcode Data Encoding for Online Web Applications
Understanding Data Matrix encoding rules is critical for ensuring compatibility with web-based data types. This section covers supported characters, maximum data capacity, and encoding modes tailored for web projects.
Data Matrix Valid Encoding Character Set
Data Matrix supports a wide range of character sets to meet diverse online web application needs:
- Full ASCII characters (all 128 standard ASCII values, 0-127)
- Extended ASCII characters (ISO 8859-1, values 128-255)
- Other character sets (e.g., Arabic, Cyrillic, Greek, Hebrew) via the ECI (Extended Channel Interpretation) protocol (a standard for custom character set encoding in barcodes)
Data Matrix Maximum Data Length
Maximum data capacity varies by encoding mode, which is important for planning web-based data storage:
- Alphanumeric data: Up to 2,335 characters (ideal for web URLs, product codes, and short text)
- Byte data (8-bit): 1,555 characters (for extended ASCII and binary web data)
- Numeric data: 3,116 digits (for web-based numeric identifiers like order numbers)
Data Matrix Encoding Data Mode
Data Matrix uses six encoding modes (schemes) to optimize data compression. For online web applications, the online barcode generator can auto-select the best mode, or you can manually configure it for specific web use cases:
- Auto: Online barcode generator automatically selects the optimal mode for your web data (recommended for most web projects)
- ASCII: For double-digit numerics and ASCII values 0-127 (standard web text)
- C40: For upper-case alphanumeric, lower-case, and special characters (web form data)
- Text: For lower-case alphanumeric, upper-case, and special characters (web user input)
- X12: For ANSI X12 EDI data sets (enterprise web applications)
- Edifact: For ASCII values 32-94 (electronic data interchange in web systems)
- Base256: For all byte values 0-255 (binary web data and non-printable characters)
Advanced Data Encoding in Data Matrix for Web Projects
Online web applications often require encoding complex data types. This section explains how to handle non-printable characters, Unicode text, and other advanced formats in web-based Data Matrix generation.
Encode Non-Printable ASCII Characters in Web Data Matrix
Non-printable ASCII characters (e.g., Carriage Return [CR]) are common in web form data and require special encoding:
- Replace non-printable characters with ~ followed by their three-digit ASCII value (e.g., [CR] = ~013)
- Set Process Tilde totrue to enable tilde-based encoding
- Set DataMode to Base256 for web compatibility
Encode Unicode Text in Web Data Matrix
For multilingual online web applications, encode Unicode text (e.g., Arabic, Chinese, Thai) using these steps:
- Set the Data property with your Unicode text
- Enable Encode Unicode Text to true (tells the library to process Unicode for web display)
Other Advanced Data Formats for Web Applications
Data Matrix supports additional formats critical for enterprise web applications:
- Binary data: Encode raw binary data (e.g., web file fragments) using Base256 mode
- GS1 data: Encode GS1 business messages (e.g., product identifiers) using FNC1 mode
- Structured Append mode: Split large web data into multiple Data Matrix symbols
Data Matrix Barcode Dimension Size for Online Web Browsers
Customize Data Matrix dimensions to fit responsive web design, ensuring clear display across all web browsers and devices. This section covers square, rectangular, and advanced dimension settings.
Quick Square Data Matrix with Specified Width
- Set Barcode Image Width to your desired pixel value (height will auto-match for square symbols)
Rectangular Data Matrix for Web UI
Data Matrix (ECC200) supports 6 rectangular symbol sizes, ideal for web UI elements with limited space:
- 8 rows x 18 columns
- 8 rows x 32 columns
- 12 rows x 26 columns
- 12 rows x 36 columns
- 16 rows x 36 columns
- 16 rows x 48 columns
To create a rectangular Data Matrix for web use:
- Set Format Mode to the desired rectangular size
- Set Barcode Image Width and Barcode Image Height with a ratio matching the symbol's row/column ratio
Advanced Dimension Settings for Web Compatibility
Use these settings to fine-tune Data Matrix dimensions for web display and scanning:
- UOM (Unit of Measure): Choose PIXEL (recommended for web), CM, or INCH
- X: Width of the barcode module (minimum value defined by your web application's scanning requirements)
- Format Mode: Specifies the Data Matrix symbol size
- LeftMargin/RightMargin/TopMargin/BottomMargin: Quiet zone (blank border) with a minimum width of X for reliable web scanning
- AutoResize: Disable to manually control dimensions for web UI consistency
- Resolution: Set to 96 DPI (standard for web images)
Note: If your web data exceeds the maximum capacity of the selected FormatMode, the library will auto-select a larger symbol size to ensure all data is encoded.
Data Matrix Color and Image Option Settings for Web Applications
Customize Data Matrix appearance to match your web application's UI, with support for different colors and image formats (raster and vector) for cross-browser compatibility.
Color Settings for Web UI Integration
Data Matrix supports standard and custom color schemes for web display. Follow these guidelines for scanning compatibility:
- Standard: Dark modules (e.g., black) on a light background (e.g., white) (most compatible with web scanners)
- Inverse: Light modules on a dark background (valid but test in all web browsers)
- Custom: Use high-contrast colors (e.g., red modules on white). Ensure your web scanner supports non-standard colors
Image Format Settings for Web
Generate Data Matrix in web-friendly image formats (raster and vector) for different web use cases:
Use Image Format property
- Raster formats: PNG (recommended for web), JPEG.
- Vector formats: SVG, EPS.
Advanced Data Matrix Options for Online Web Applications
Data Matrix Format Mode
Data Matrix (ECC200) includes 24 square and 6 rectangular symbol sizes. For web projects, specify Format Mode to control the symbol size:
Data Matrix Structured Append Mode
Split large web data (e.g., large documents, web form data) into up to multiple Data Matrix symbols using Structured Append mode:
- Set Structured Append to true
- Set Symbol Count (total number of symbols for the web data)
- Set Symbol Index (position of the current symbol, starting at 0)
- Set File Id (unique integer for all symbols in the set, ensuring web scanner can reassemble data)
GS1 Data Matrix Generation Online
For enterprise web applications requiring GS1 compliance, set "Is GS1 Compatible" to "GS1 Compatible" to signal GS1 Application Identifier (AI) data:
- Set property "Is GS1 Compatible" to "GS1 Compatible"
- Format data with GS1 AI codes (wrapped in parentheses) and corresponding values