Interleaved 2 of 5 – Generator Settings
Content
Interleaved 2 of 5 encodes exclusively numeric characters (0 to 9). Other characters such as letters or special characters are not supported. The length of the barcode content is technically unlimited; however, the available print area should be considered during planning.
Add a leading '0' when digit count is odd
Interleaved 2 of 5 encodes digits internally in pairs – every two digits are combined. This requires that the total number of digits be even. Enable this checkbox if you want the generator to automatically add a leading '0' when the digit count is odd. Example: 12345 becomes 012345. A more efficient solution for odd digit counts is using a checksum (see next section), which ensures an even digit count while simultaneously increasing read reliability.
Append Optional Checksum
The checksum is appended to the content of the barcode and is used for error detection during scanning: The scanner calculates the checksum independently and compares it with the value found in the barcode. If both match, the scan is considered correct. Example: 12345 becomes 123457 – the odd digit count is balanced by the check digit; a leading zero is not required.
The nested checkbox “show in human readable line” lets you control whether the checksum is also printed in the text line below the barcode. This is useful when manual input or verification of the complete number is required.
Wide/Narrow Bar Ratio
Interleaved 2 of 5 is one of the so-called two-width barcodes and uses only two different bar widths: narrow and wide. (In contrast, Code 128, for example, uses four different bar widths.) The ratio between the widths can be set between 2.0:1 and 3.0:1. A higher ratio makes it easier for the scanner to distinguish between narrow and wide bars. This can be useful when the barcode is printed on uneven surfaces or at low resolution. The bar width ratio also affects the overall width of the barcode. In practice, 2.5:1 is the most commonly used value.
Further technical details about Interleaved 2 of 5 (including structure, robustness, short scan problem) can be found in our comprehensive comparison Code 128, Interleaved 2 of 5 and Code 39.
Generate Interleaved 2 of 5 Barcodes as Vector or Raster Images
Vector Formats: All vector formats (PDF, EPS, SVG) store geometric coordinates with a precision of six decimal places. The human-readable text line is converted to outlines, eliminating the need to supply fonts when sharing the file.
- PDF: Enables the use of CMYK and RGB color spaces. Supports transparent backgrounds.
- EPS: Functionally identical to PDF. Contains an embedded TIFF preview that can be used by DTP programs without native EPS support.
- SVG: Works exclusively with RGB colors. Particularly suitable for integration into web applications and browser-based systems.
Raster Formats: All raster formats (PNG, BMP, JPG) store the selected DPI resolution in the file header. This allows graphics applications to correctly interpret the physical size of the barcode. The bar widths are precisely adjusted to the target resolution to avoid aliasing artifacts. Even at low print resolution (such as 203 or 300 DPI), scannability remains intact. Since our online generator creates only black-and-white images, they are saved in space-saving grayscale format.
- PNG: Lossless compression. The only raster format that supports transparent backgrounds.
- BMP: Uncompressed grayscale format without quality loss.
- JPG: Lossy compression; the high contrast of barcode graphics combined with a quality factor of 100% prevents visible compression artifacts.
Interleaved 2 of 5 Generator for Professionals – Bulk Creation, Serial Numbers
For creating barcodes in bulk or as serial numbers, you'll need our desktop software Barcode Vectorizer. It combines all the features of our free online generator with a range of professional capabilities.
Standard Edition:
- Direct transfer of barcodes via Drag & Drop or Copy & Paste as PDF, EPS or SVG into applications such as Adobe InDesign, Adobe Illustrator or CorelDRAW
- Precise color selection with numeric values for color components (0–100 for CMYK, 0–255 for RGB)
- Save function for reusing your own designs
- Over 20 supported linear barcode types, including Interleaved 2 of 5
Pro Edition – additionally:
- Bulk creation: Generate thousands of barcodes from your own number lists at once – ideal for shipping labels, inventory management or logistics processes
- Serial number generator: Automatic generation of sequential numbers with freely selectable start, end and increment values as well as optional prefix, suffix and checksum – e.g., from 000001 to 999999
- Barcode API: Seamless integration of the barcode generator into your own applications or workflows
Get It for My Desktop