The most useful barcode generator tips and common mistakes center on three steps: choose the right 1D format, enter valid data, and download an SVG. A barcode can look correct on screen and still fail when printed if it uses the wrong symbology, contains a mistyped digit, or has been enlarged from a blurry raster image. The Barcode Generator supports Code 128, EAN-13, UPC-A, and Code 39, then creates the barcode locally in your browser. Enter the appropriate value and the code renders immediately; for EAN-13 and UPC-A, the tool adds a missing check digit or verifies the one in a complete code. When the result is ready, one click downloads a print-ready vector SVG. Because generation runs entirely in JavaScript on your device, the value never leaves the browser, and the page also works offline once it has loaded. The practical goal is more than producing dark-and-light stripes: the code must represent the intended value, follow the numbering rules for its intended system, and remain legible after it is scaled into a label, package, spreadsheet, or design file. Start with the format, review the value and any check-digit warning, then print a test at the final size before producing a full batch.

The mistakes that cause the most problems
Most barcode problems begin before generation. They come from choosing a format that does not match the receiving system, entering the wrong number of characters, or moving an unverified preview into a label workflow. These are the mistakes worth catching first.
- Choosing by appearance. A format can look like a set of stripes while representing a completely different data structure. Match the label to the system that will scan it.
- Using the wrong digit count. EAN-13 and UPC-A have required lengths, and a partially entered value is appropriate only when the tool is expected to complete the check digit.
- Changing a full code. Do not delete or duplicate the final digit of a complete EAN-13 or UPC-A; the tool can verify the supplied check digit for you.
- Skipping the printed test. A correct preview does not prove that a label will remain readable after it is resized, cropped, or printed.
- Starting from a screenshot. A raster copy can lose edge definition when enlarged, so keep the downloaded SVG as the source artwork.
Create and download a clean barcode
- Select the required format. Open the Barcode Generator and choose the 1D symbology used by the receiving system. Use Code 128 for logistics, shipping, tracking labels, or any value containing letters, digits, and ASCII symbols; choose EAN-13 or UPC-A for retail products, or Code 39 for inventory.
- Enter the exact value. For EAN-13, enter either 12 digits to have the final check digit added or a full 13-digit code to have it checked. For UPC-A, enter 11 digits or a full 12-digit code. Code 128 and Code 39 encode their supported text directly.
- Review the preview and any flag. The barcode renders instantly as you type. If a complete EAN-13 or UPC-A contains an incorrect final digit, the tool flags the typo for review before you print.
- Download the vector file. Click Download SVG to save the print-ready barcode. Place it into a label template, packaging artwork, spreadsheet, or design file, and retain the SVG as the master artwork rather than replacing it with a screenshot.
The complete workflow runs locally in JavaScript after the page loads, so the entered value never leaves the device. The generator is free and requires no sign-up, account, watermark, or usage limit, keeping the process focused on the barcode rather than user administration.
Choose the format before typing
A format is not interchangeable simply because it can display the same characters. Choose based on the required symbology, the data it must contain, and the system that will scan it.
| Format | Best fit | What to enter | Check digit |
|---|---|---|---|
| Code 128 | Logistics, shipping, tracking labels, SSCC pallet codes, and any ASCII text | Letters, digits, or symbols | Not required |
| EAN-13 | Retail products worldwide | 12 digits to add the 13th automatically, or a full 13-digit code | Final 13th digit; added or verified automatically |
| UPC-A | Retail products in the US and Canada | 11 digits to add the 12th automatically, or a full 12-digit code | Final 12th digit; added or verified automatically |
| Code 39 | Internal inventory, automotive, defense, and industrial tags | Alphanumeric text | Not required |
EAN-13 and UPC-A are retail formats with different digit lengths and regional roles. Code 128 is the compact, high-density, text-capable option used for shipping and logistics, while Code 39 is an older but rugged alphanumeric format common in internal inventory and industrial systems.
For a fast reference while you work, the barcode format cheat sheet summarizes the formats, expected digit counts, and output type in one place.
Enter values and check digits correctly
Enter the value the receiving system expects, not a formatted version of it. For EAN-13 and UPC-A, use digits only: do not add spaces, hyphens, or labels such as “SKU.” If the field expects the complete retail code, paste all digits and let the generator verify the check digit. If it expects a partial retail code, enter only the preceding 12 EAN-13 digits or 11 UPC-A digits and allow the tool to append the check digit.
Paste a full code only when every digit is known. Do not guess a missing check digit, because a guessed digit can create a technically valid but incorrect code. A checksum confirms the arithmetic relationship among the digits; it does not prove that the number has been assigned to the right product. Compare the generated value with the source record before creating labels.
Code 128 and Code 39 need no check-digit setup. Their main choice is fit: Code 128 encodes any ASCII character in a compact, high-density code, while Code 39 is useful when a simple, rugged alphanumeric format is enough.
Keep SVG output sharp in print
SVG is the important output choice because a barcode depends on clean bar boundaries. The generator creates vector files, which remain sharp as their dimensions change. A PNG or JPEG may look adequate on screen, but enlarging a raster copy can blur the edges and reduce scan reliability.
- Keep the SVG as the master file. Open it in your design application or convert it to PNG later only when a particular workflow requires a raster format.
- Scale proportionally. Changing width and height at the same ratio avoids distortion.
- Do not alter the bars. Avoid covering, recoloring, or redrawing them, and keep the barcode area clear.
- Test at the actual printed size. A label that works on a large monitor can fail on a small tag, so verify the physical result.
Vector artwork avoids the fixed pixel grid of a raster image. That matters when a proof is resized for production: the SVG can be placed into the final layout at its intended dimensions without relying on an enlarged screen capture.
Run a final label preflight
- Confirm that the format matches the receiving system and the value exactly matches the product, SKU, tracking number, or asset record.
- For a complete EAN-13 or UPC-A, correct the value if the tool flags its check digit.
- Check that the barcode has enough clear space and contrast on the chosen label stock.
- Print one test at the final size on the intended material, then scan it with the device used in the workflow.
- Keep the SVG source and repeat the test if the size, stock, printer, or surrounding artwork changes.
The preview confirms what was generated; the physical scan confirms that the finished label works. That final check closes the gap between creating a correct code and producing a barcode that another system can read reliably.
If you're weighing options, Keyword Density Checker Tips and Common Mistakes covers this in detail.