What Is a Code 39 Barcode Generator and How Does It Work?
A Code 39 barcode generator converts supported letters, digits, and symbols into a one-dimensional sequence of narrow and wide bars and spaces. This page creates a scalable SVG barcode in the browser, adds the required start and stop characters internally, and can append an optional Mod 43 checksum.
Code 39 is widely recognized in industrial, inventory, and identification workflows, but it is not interchangeable with UPC, EAN, Code 128, GS1 DataMatrix, or other barcode systems. Confirm the exact symbology required by the receiving scanner and database.
How to Generate a Code 39 Barcode Online
- Enter a supported barcode value.
- Choose the bar width for the narrow element.
- Choose the bar height.
- Enable readable text when people must verify the encoded value visually.
- Enable the Mod 43 checksum only when the target system expects it.
- Generate and download the SVG, then print and scan a production sample.
The asterisk is reserved for Code 39 start and stop markers and should not be entered as data. The generator adds those markers automatically.
Which Characters Does Code 39 Support?
The full Code 39 alphabet supported by this page includes uppercase A–Z, digits 0–9, space, hyphen, period, dollar sign, slash, plus sign, and percent sign. Lowercase input is converted to uppercase for encoding.
If the intended identifier contains lowercase text, accented characters, arbitrary Unicode, or a larger symbol set, use a symbology designed for that data rather than silently changing the identifier.
How Do Bar Width, Height, and Quiet Zones Affect Scanning?
The bar-width setting controls the narrow element, while wide elements are drawn at a fixed ratio relative to it. Increasing width can help low-resolution printing but also increases the total barcode length. Height improves the scanner’s vertical target area but does not add data capacity.
A quiet zone of blank space is required at both ends. The SVG includes internal margins, but the final design must not crop them or place borders, text, or graphics directly against the barcode.
What Is the Code 39 Mod 43 Checksum?
The optional Mod 43 checksum assigns a value to each supported character, adds those values, and appends the character represented by the remainder after division by 43. A receiving system must be configured to expect and validate that extra character.
Do not enable a checksum merely because it sounds safer. A mismatched scanner or database may treat the check character as ordinary data or reject the barcode.
Does a Generated Barcode Guarantee Scanner Compatibility?
No. Scanner settings, print density, optical resolution, contrast, physical size, quiet zones, surface curvature, material, glare, damage, and the expected symbology all affect performance. The same SVG can scan well on one label printer and poorly after scaling or rasterization in another workflow.
Test the exact exported file, printer, label stock, scanner, distance, and software configuration used in production.
Common Barcode Generation and Scanning Problems
- Unsupported character: Restrict the value to the Code 39 alphabet.
- Barcode is too wide: Shorten the identifier or choose a narrower supported bar width.
- Scanner adds an extra character: Check whether Mod 43 is enabled and expected.
- Printed bars blur together: Increase module width or improve printer resolution.
- Code will not scan: Preserve quiet zones, strong contrast, and correct physical dimensions.
- Database mismatch: Confirm uppercase conversion and the exact human-readable value.
Code 39 Barcode Example
For an inventory identifier such as PRODUCT-2026-001, the generator converts the value to uppercase, verifies that every character belongs to the Code 39 alphabet, adds start and stop markers, and draws the narrow and wide elements as SVG rectangles.
The start and stop asterisks are part of the symbology and are not normally displayed as user data.
Limitations of This Barcode Generator
This page generates Code 39 only. It does not create UPC, EAN, ISBN, Code 128, ITF, GS1-128, Data Matrix, PDF417, or regulated product identifiers. It does not issue company prefixes, product numbers, or database records.
The output is a technical graphic, not certification that a label meets industry, retail, healthcare, shipping, or government requirements. Obtain the correct identifier and verification process from the relevant organization.
Official Barcode Standards and Identification Resources
These references describe Code 39 and broader barcode identification requirements.