Hongmu Notes

▮ Barcode batch generation

One-dimensional barcodes can be generated in batches with one piece of content per line, supporting CODE128, CODE39, EAN-13, EAN-8, UPC-A, ITF-14, MSI, Pharmacode, Codabar, adjustable width, height and color, and exported to SVG.
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.

🧭 How to choose a format so that it will not be rejected by the scanner

The first principle of selecting a format is to look at the usage scenario: there are no restrictions on the content of internal numbers, storage locations and asset tags. Use CODE128 directly, which can carry almost all common characters; if you want to attach it to retail products, you must use EAN-13 or UPC-A, because the cash register system of supermarkets only recognizes these two codes, and the last digit is a check digit calculated by rules. If the number of digits is incorrect, the rendering will fail directly; if industrial equipment or old systems only support CODE39, make sure the content contains only uppercase letters and numbers.

Retail products must use EAN-13 or UPC-A, and CODE128 is the easiest to use for internal labels.

📏 Why should width and height be adjusted?

Width refers to the number of pixels in the thinnest vertical bar, which determines the total length of the entire barcode: the longer the content, the more horizontal space is required. The height only affects the reading margin and does not affect the encoding content, but being too short will make it difficult to aim the handheld scanner. In practice, the method is to use the default width to generate it first, and after exporting it, check whether it can fit in the label layout; if it cannot fit, give priority to changing the format (such as shortening the content) instead of blindly compressing the width. If the width is less than one pixel, it will be mixed together when printed.

When it cannot fit, reduce the content instead of compressing the width. If the content is too thin, the print will become mushy.

🖨️ Benefits of exporting SVG and printing

Barcodes are vector graphics, and the edges of the lines remain sharp when enlarged to any size; if the exported bitmap is a bitmap, it will be blurry after enlargement, and the scanning success rate will decrease accordingly. Each result of the tool can be exported as an SVG file separately, put into label typesetting software or directly handed over to the printer, and can be scaled losslessly according to the target size. It should be noted that the blank space (quiet area) on the left and right sides of the barcode is part of the encoding. Do not cut it off during typesetting, and do not put text or watermarks on it.

Do not cut off or emboss the blank space on the left and right sides of the barcode, that is part of the encoding.

🔗 All keywords and tutorials

Keywords page of the tool12a

Return to tool home page

❓ FAQ

Will the data be uploaded??
No. The barcode is generated in the browser, and the input content is not uploaded or saved.
Why do some rows display format mismatches??
EAN-13, UPC-A, ITF-14, etc. have requirements on digits and characters. For example, EAN-13 requires 12 or 13 digits and the check digit is correct.
Can I export pictures??
Currently, each item can be exported as an SVG vector file, which can be enlarged without distortion; if a bitmap is needed, it can be saved in the typesetting software.
How many items can be generated at one time??
Processed by row, the generation is slightly slower when the number is large; it is recommended to generate and download in batches according to tags.
Can the number below the barcode be displayed??
Yes. After turning on "Show text", the content will be printed below the barcode. If the scan fails, you can manually check it.