Hongmu Notes

Codabar barcode generation

Codabar barcode generation is used for internal circulation: numbers are mainly used, and the first and last characters mark the usage category.
100% Browser local processing 0 Data upload

▮ Barcode settings

Barcode preview (click "Download this barcode" to save the SVG separately)

💡 Instructions for use

  • The encoding format must match the usage scenario: CODE128 is used for internal numbers, storage locations, and asset tags; EAN-13 or UPC-A must be used for retail products, because the cashier system only recognizes these two codes.
  • EAN-13, EAN-8, UPC-A, ITF-14, etc. have requirements on the number of digits and characters. If the last check digit is incorrect, it cannot be generated. Please use the system rules to calculate the correct encoding first.
  • The width of the module determines the length of the entire barcode: the longer the content, the greater the horizontal space required. If it cannot fit, the content should be streamlined instead of reducing the width to less than one pixel.
  • The height only affects the error margin during scanning. If it is too low, it will be difficult to align the handheld device. It is recommended that the height be no less than 50 pixels before printing.
  • Each result can be exported as an SVG vector file independently, and it will not be blurred when enlarged and printed; the blank areas on the left and right sides should be retained during typesetting.
  • The barcode is generated in the browser, and the input content is not uploaded or saved; in batch scenarios, it is recommended to generate and download in batches according to label batches.

Codabar barcode generation is used for internal circulation: numbers are mainly used, and the first and last characters mark the usage category.

Structural features of Codabar

Codabar consists of numbers and a small number of symbols. It is characterized by a marking character at the beginning and end: different letters represent different application categories, such as distinguishing ordinary documents, urgent shipments or specific institutions. This design allows the same system to accommodate multiple types of numbers. When reading the code, you can judge the type by looking at the first and last characters. Therefore, it is still used in scenarios such as library borrowing, express delivery, and medical sample circulation.

Notes on use

  • There are fixed requirements for the first and last characters. If the characters are missing or written as unsupported characters, the generation will fail.
  • The intermediate content is mainly numbers, and the scope of use of symbols is limited. It is recommended to generate it in small batches first.
  • If the docking system only reads the numeric part, you need to confirm whether the other party will automatically remove the first and last marks.

Codabar allows numbers and a small number of symbols, and has a loose structure. It is commonly used in blood bank labels, express delivery slips, and library borrowing cards. Its encoding starts and ends with four starting and ending characters, which facilitates manual identification of the boundaries of the barcode.

Because the character set is limited and the verification capability is weak, it is more suitable for internal circulation and short numbering scenarios, and is not suitable as a consumer-oriented product barcode. When generating, make sure that the starting and ending characters appear in pairs. If one is missing, the entire paragraph will be unreadable.

Generally, the starting and ending characters are A and B or C and D. If the two ends are consistent, it can be read normally.

There are fixed requirements for the first and last mark characters, and missing them will cause the entire line to fail to be generated.

📖 Glossary

1D barcode
A code composed of vertical bars and spaces of different thicknesses for scanning devices to read horizontally. It is commonly found on retail and logistics labels.
CODE128
The most versatile code, which can represent numbers, letters and commonly used symbols, has variable length, and is commonly used for internal tracking numbers and location labels.
CODE39
A simple, self-verifying code that can use uppercase letters and numbers and is compatible with older scanners and industrial equipment.
EAN-13
The most commonly used thirteen-digit code for retail goods, the last digit is the check digit, and the code scanner will automatically verify it.
UPC-A
A twelve-digit code commonly used in North American retail, closely related to EAN-13, and can be converted to each other by leading zeros.
Check digit
The one digit at the end of the code used for self-checking is calculated by the previous people according to fixed rules, so that input errors can be found.
quiet zone
The blank space on the left and right sides of the barcode must be reserved. If it is cropped or embossed, the scanning device will not be able to recognize it.
module width
The width of the thinnest vertical bar determines the length of the entire barcode; when the width is insufficient, printing and scanning are likely to fail.
barcode density
The amount of information carried within unit length. When the length is fixed, the more content, the higher the density, and the higher the printing accuracy requirements.
SVG - vector barcode
Barcodes saved in vector format will not be blurred when enlarged and printed, making them suitable for label typesetting and printing delivery.

🔗 All keywords and tutorials

Keywords page of the tool12a

Return to tool home page

❓ FAQ

Does the scan result contain the first and last characters??
Usually included. If the system only recognizes numbers, you need to configure the reading end to remove the first and last marks.
Can it be used for express delivery orders??
This coding is common for small express delivery and internal circulation. Please refer to the carrier's requirements for the official bill.