Hongmu Notes

CODE128 barcode batch generation

CODE128 barcode online generation is the most versatile option: the content is not limited by number length, and letters and symbols can be carried.
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.

CODE128 barcode online generation is the most versatile option: the content is not limited by number length, and letters and symbols can be carried.

Why CODE128 is preferred for internal labels

Internal numbers often include prefix letters, separators and serial numbers, such as department code plus year plus serial number. This kind of content cannot be represented at all in the retail coding format. CODE128 supports all visible characters, variable length, and can compress numbers within a limited width, so it has become the most commonly used encoding for warehousing, assets, work orders, and document numbers. It is also denser than CODE39: taking up less lateral space at the same length.

Usage suggestions

  • When the content contains Chinese, the scanning results will be abnormal. It is recommended to use a combination of letters, numbers and symbols instead.
  • The longer the barcode takes up, the more space it takes up. When the label is narrow, redundant characters in the numbering are prioritized.
  • If you want to be fully compatible with old devices that only recognize CODE39, you can fall back to this format.

Code 128 can represent all standard characters, including upper and lower case letters, numbers and common symbols, so it is often used to encode numbers containing letters, such as order numbers, express delivery numbers and equipment serial numbers. It is generally narrower than Code 39 for the same amount of data.

It comes with a check digit, and the scanner will automatically check it when reading, so the probability of error is low. When using it, make sure there are no tabs or line breaks in the encoding. These invisible characters will be treated as data and participate in the encoding, causing the barcode to become wider or even unreadable.

The content should not contain Chinese characters, otherwise the scanning results will be abnormal. Use alphanumeric combinations for more stability.

📖 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

Can it represent lowercase letters??
Can. CODE128 supports all visible characters, both upper and lower case are available.
What are the advantages compared to CODE39?
It supports more characters and takes up less width for the same content. It is recommended to give priority to new projects.