CODE39 barcode batch generation
▮ 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.
CODE39 barcode generation is oriented towards compatibility: it has a simple structure, comes with built-in verification, and can be read directly by most old-fashioned scanning devices.
CODE39 Features and Prices
CODE39 uses a fixed number of empty combinations for each character, and the characters are separated by intervals. This structure gives it a certain self-checking capability: even if a certain bar is slightly stained, it is easier to detect reading abnormalities. The price is that the encoding is relatively sparse, and the horizontal space occupied by the same content is significantly larger than CODE128. This is especially obvious on labels with longer numbers.
Practical impact of character set restrictions
- The standard character set is uppercase letters, numbers and a few symbols. Lowercase letters will fail to render.
- Doing an uppercase conversion before generating can avoid the entire batch of labels from failing due to lowercase letters.
- When labels are longer, consider upgrading to CODE128 to save space.
Code 39's rules are simple, fault-tolerant, and can only use numbers and capital letters, so it is very common on industrial nameplates, asset tags, and warehouse shelves. It can be read stably without additional check digits, and it is easy to confirm character by character during manual verification.
The price is that the same number of characters takes up more width, and long numbers will stretch very long. If the width of the label paper is limited, you can use Code 128 or shorten the number; in addition, its character set does not contain lowercase letters and needs to be converted to uppercase before encoding.
Content is converted to uppercase before generation to avoid the entire batch failing due to lowercase letters.
📖 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
❓ FAQ
- Can lowercase letters be used??
- Standard CODE39 does not support lowercase, please convert it to uppercase before generating.
- Why do I read more characters than I type??
- Some implementations will add start and end characters at the beginning and end, which is normal and the content itself remains unchanged.