Barcode tools · Generator

Barcode Generator

Create and customize linear barcodes in your browser. Generate Code 128, Code 39, EAN-13, EAN-8, UPC-A, and ITF-14 barcodes with check-digit validation and print-safe settings.

Barcode content

Enter a value to encode

Choose a barcode standard for your product, package, or internal label.

A flexible format for letters and numbers in inventory, shipping, and asset labels.

Printable ASCII characters are supported, including letters, digits, and punctuation.

Appearance

Adjust print-safe dimensions

Only adjust solid colors, bar thickness, height, and the clear margin around the symbol.

#111111
#ffffff

Contrast is suitable for a clear barcode.

Keep the clear margin on every side. The output margin is at least 10 narrow-bar widths.

Preview

Generated barcode

Ready

Your barcode preview will appear here.

Test the exported file with the scanner and printer you plan to use. Screen preview alone is not a print-quality check.

About this tool

Generate a barcode for products, packages, and labels

Choose the barcode format required by your retailer, inventory system, or shipping workflow. Enter the value, check the format-specific rules, and export a clean SVG or PNG from your browser.

How to generate and export a barcode

  1. Choose the symbology that matches the system that will scan the label: Code 128 for general alphanumeric data, Code 39 for compatible legacy workflows, EAN-13 or EAN-8 for retail, UPC-A for North American retail, or ITF-14 for shipping cartons.
  2. Enter the value in the selected format. EAN, UPC, and ITF-14 accept either the data portion so the check digit can be calculated, or the full value so its check digit can be validated.
  3. Set solid foreground and background colors, bar width, height, and the clear quiet zone around the bars. Keep strong contrast and avoid decorative effects.
  4. Download SVG for scalable print artwork or PNG when a raster image is required. Scan the exported file and test a physical label using the actual printer, stock, and scanner.

Choose the right barcode and protect scan quality

  • Code 128 is a flexible choice for general alphanumeric labels. Code 39 is a legacy-compatible format with a more limited supported character set. The correct choice depends on the receiving inventory, point-of-sale, or logistics system.
  • EAN-13 and EAN-8 are retail formats, UPC-A is widely used in North American retail, and ITF-14 is used on many outer shipping cartons. These formats are not interchangeable; confirm the required symbology with the retailer or trading partner.
  • EAN-13, EAN-8, UPC-A, and ITF-14 use check digits. This tool calculates or validates the mathematical check digit, but it does not assign an official product identifier.
  • For products sold through retailers or marketplaces, use a GTIN assigned to your business by GS1 or the organization accepted by your trading partners. A mathematically valid check digit does not make an arbitrary number an assigned product code.
  • Keep the quiet zone clear, use solid bars with strong contrast, and avoid gradients, rounded bars, logos, patterns, transparency, or decorative overlays. Test the final printed label, not only the preview.

Local browser processing

Barcode generation runs in your browser. Values are not sent to QR Toolbox servers, and no account is required.

Frequently asked questions

Which barcode format should I use?

Code 128 works for many general alphanumeric labels. Code 39 is used in compatible legacy systems. EAN-13, EAN-8, and UPC-A are retail formats, while ITF-14 is often used on shipping cartons. Ask the retailer, carrier, or inventory-system owner which format they require.

Does this free barcode generator assign official UPC or EAN numbers?

No. It renders a barcode from the value you enter and calculates or validates supported check digits. For commercial product identification, obtain a GTIN assigned to your business by GS1 or the organization accepted by your trading partners.

What is the difference between a check digit and a product number?

A check digit is a mathematical error-detection value at the end of certain barcode numbers. It helps validate the number format; it does not prove that the number has been licensed or assigned to your product.

Should I download SVG or PNG?

SVG is vector artwork and can be scaled for print without pixelation. PNG is a raster image that may be more convenient in some applications; use enough resolution for the final label size.

Can I add a logo or use rounded barcode bars?

No. The generator keeps one-dimensional bars solid and uses a clear quiet zone because decorative changes can make a barcode harder for scanners to read.