QR Code & Barcode Guides

Barcode Generator Online – Create Barcodes Instantly

A practical guide to generating barcodes online: what barcodes are, common types (Code 128, Code 39, UPC/EAN), how to create them, and printing tips for labels.

Table of Contents

If you need a barcode generator online, your goal is simple: choose the right barcode type, encode the correct value, download a clean image, and print it in a way that scanners can read. The details matter, especially for product labels and shipping workflows.

A good free barcode generator should also help you avoid common mistakes: wrong format, wrong length, missing quiet zones, and print scaling problems.

If you follow the steps below and test one sample label, you will be in good shape quickly.

This guide explains barcodes in plain language and shows how to create barcode online using our free tool. You will also learn printing tips that prevent scan failures and reprints.

What is a barcode?

A barcode is a machine-readable code that represents data using a pattern of bars and spaces (for 1D barcodes) or modules in a grid (for 2D codes like QR). In most business settings, “barcode” usually means a 1D barcode used for fast scanning in retail, inventory, logistics, and asset tracking.

A 1D barcode is optimized for speed. A scanner can read it quickly because it only needs to measure widths of bars and spaces along a single line. That is why 1D barcodes are common on product labels, shipping labels, and inventory tags.

QR codes are also “barcodes” in a broad sense, but they are 2D codes. They can store more data (URLs, Wi-Fi credentials, vCards), but they are not the default for retail checkout. Most checkout systems expect UPC/EAN or similar 1D symbologies.

A barcode does not automatically mean “product number.” It is a format that can encode data. The data you encode depends on the barcode type and your workflow. Some formats are designed for numeric-only values (like UPC and EAN). Others support letters and symbols (like Code 128).

A good barcode generator online includes two things:

  • Correct encoding for the chosen symbology (type rules).
  • Printable output that keeps bar widths and quiet zones intact.

That is why “barcode software” is often less about the bars and more about quality control: input validation, sizing, format choice, and print settings.

How scanners read barcodes

Barcode scanners read contrast changes between dark bars and light spaces. That is why print quality, size, and quiet zones matter. If a barcode is stretched, blurred, or printed too small, scanners may fail or misread it.

Most 1D barcodes also include a “quiet zone” (blank margin) on the left and right. The quiet zone helps scanners detect where the barcode begins and ends. Cropping the quiet zone is a common reason barcode labels fail.

Some barcode types also include a check digit (a simple error-detection digit) that helps catch mistyped numbers. UPC and EAN formats use check digits, and many barcode generators can calculate them when you enter the base digits.

Common barcode types (Code 128, Code 39, UPC/EAN)

Choosing the right type is the first step in using a barcode maker. Below are the most common formats people generate with an online barcode generator.

Code 128

Code 128 is one of the most popular formats because it supports a wide range of characters and is compact. It is widely used for logistics, shipping labels, internal inventory, and many business systems.

  • Good for: alphanumeric IDs, shipping labels, internal tracking
  • Watch for: correct data formatting and sufficient print size

Code 39

Code 39 is an older format that is simple and widely supported. It is common in industrial settings, asset tags, and some government or internal systems. It typically uses uppercase letters, digits, and a limited set of special characters.

  • Good for: asset tags, internal IDs, older systems
  • Watch for: uppercase-only constraints and longer barcode length

UPC-A and EAN (UPC/EAN)

UPC-A and EAN (EAN-13, EAN-8) are retail product barcode formats. They are numeric and include check digits. If you are selling products in retail channels, you may need UPC/EAN numbers assigned through a standards body (often GS1). The barcode generator can create the image, but it does not “assign” official product numbers.

  • Good for: retail products, consumer goods packaging
  • Watch for: correct length and valid assigned numbers

Other useful types

Depending on your workflow, you may also see Code 93, Code 11, MSI, and Pharmacode. Our tool supports several of these for convenience. The important rule is: match the barcode type to what your scanner system expects.

A quick guide:

  • Code 93: similar to Code 39 but more compact in many cases
  • Code 11: numeric data (often telecom and internal uses)
  • MSI: numeric, sometimes used in libraries and retail systems
  • Pharmacode: specialized format used in pharmaceutical packaging

If you do not know what to choose and the barcode is for internal use, start with Code 128. It supports many characters, it is compact, and it is widely supported by scanners. If your system explicitly requires a format, follow that requirement.

How to choose fast (3 questions)

  1. Is this for retail checkout? If yes, you likely need UPC/EAN.
  2. Is the value numeric only? If yes, UPC/EAN or numeric formats can work.
  3. Is the value alphanumeric? If yes, Code 128 is often the best default.

Once you choose, print one sample and scan it with the real device. Barcode success is as much about printing as it is about generation.

UPC vs EAN: quick notes

UPC-A is 12 digits and is common in North America. EAN-13 is 13 digits and is common globally. Many scanners can read both, but your retail channel or product system may require a specific format. If you are building product packaging, confirm requirements before printing thousands of labels.

If you see “UPC generator” or “EAN generator” online, most of those tools are really image generators. The hard part is getting valid numbers assigned to your products in the first place.

TypeDataCommon useNotes
Code 128AlphanumericShipping, logisticsCompact, widely used
Code 39Uppercase + digitsAsset tagsLonger, simple
UPC-A12 digitsRetail productsCheck digit required
EAN-1313 digitsRetail productsOften GS1-managed

How to generate a barcode (step-by-step)

Our free barcode generator is designed to be simple: pick the type, enter the value, generate, then download. This works for most internal IDs, logistics labels, and many product label workflows.

  1. Open the Free Online Barcode Generator.
  2. Choose the barcode type (Code 128, Code 39, UPC-A, EAN-13, etc.).
  3. Enter the value to encode. Follow the input rules shown in the tool.
  4. Click Generate to render the barcode.
  5. Adjust settings if needed: bar width, height, margins, and colors.
  6. Download as SVG for print or PNG for general use, then test scan before printing at scale.

If you need to generate barcode online free for internal labels, Code 128 is often the easiest default because it supports alphanumeric IDs and scans well at practical sizes.

Screenshot placeholder: Selecting barcode type and entering the value (example: Code 128 with an alphanumeric ID).
Screenshot placeholder: Adjusting width, height, margin, and display text before download.

Input rules and validation (avoid wasted prints)

Each barcode type has rules. For example, UPC-A needs 12 digits, and EAN-13 needs 12 or 13 digits (with a check digit). Code 39 typically expects uppercase characters. If your barcode prints but does not scan, the input or the print settings are usually the issue.

If you are generating UPC/EAN for retail products, confirm you are using valid assigned numbers. A barcode generator can create the image, but it cannot make a number “official” for retail distribution.

Our tool also supports auto-checksum behavior for common retail formats:

  • EAN-13: enter 12 digits and the tool calculates the 13th digit
  • EAN-8: enter 7 digits and the tool calculates the 8th digit
  • UPC-A: enter 11 digits and the tool calculates the 12th digit

This is helpful when you have the base digits and want to ensure your label uses a valid check digit. Always verify with your product database.

Download formats (SVG/PNG/JPG)

Download choice affects print quality:

  • SVG: best for printing and design work; scales without blur
  • PNG: good for web, documents, and many label workflows
  • JPG: use only if required; compression can soften edges

For product labels, SVG is usually the safest choice because bar edges remain sharp at any size. If you use PNG, export a larger image and avoid scaling it up.

Test scans before mass printing

Do a simple scan test before you print a full batch:

  • Scan using the actual scanner hardware (if available)
  • Scan under typical lighting
  • Scan after the label is applied to the real surface (box, bottle, bag)
  • Confirm the scanned value matches your system exactly

This test is the easiest way to catch issues like scaling, low contrast, or mismatched barcode type.

Printing & label tips

Printing is where most barcode problems appear. You can generate a perfect barcode image and still end up with a label that fails to scan if it is too small, too low contrast, or distorted by the print process.

Barcodes need enough width for scanners to resolve the bars and spaces. If your label is small, prefer a compact format like Code 128 and keep the encoded value short. Avoid shrinking a barcode after exporting it.

Keep blank space on both sides of the barcode. Do not crop it tight in a design tool. Do not place text or borders too close to the barcode edges.

Black bars on a white background is the safest choice. If you use color, keep bars dark and the background light. Avoid glossy glare where possible.

Barcode height matters, especially for handheld scanners. Very short barcodes can be harder to scan quickly. If you must reduce height, test with the scanner hardware your team actually uses.

5) Tips for product labels

If you need a barcode generator for product labels, keep these practical rules in mind:

  • Place barcodes on a flat area (avoid edges and curves).
  • Avoid placing barcodes on seams, folds, or textured packaging.
  • Keep a consistent label template so your process is repeatable.
  • Test scans at the point of use (warehouse, retail, shipping counter).

Curved surfaces are a common hidden problem. If you place a barcode on a bottle or a curved jar, the bars can appear “warped” to a scanner depending on the angle. If you must label a curve, use a larger barcode, place it on the flattest area, and test in real handling conditions.

Another practical tip: keep whitespace around the barcode on the label. Even if the barcode itself has margins, surrounding clutter can make scanning slower.

6) Label printers and scaling

Thermal label printers are common for shipping and inventory labels. If you use one, make sure the printer resolution is sufficient and avoid automatic scaling in the print dialog. “Fit to page” can distort bar widths and break scanning.

As a rule, you want the bars to print cleanly without “bleeding” into each other. If you see ink spread or uneven edges, adjust printer darkness, switch label material, or increase barcode width.

A good habit is to print one test label and scan it with the exact device used in operations. This is the fastest way to validate your barcode generator output.

7) DPI, resolution, and why SVG matters

Barcode scan reliability is tied to edge sharpness. If you export a small raster image and scale it up, bar edges can blur. That is why SVG is often best: it keeps the bars crisp at any size. If your workflow must use PNG, export a larger image and avoid enlarging it in the design tool.

If you are printing from a PDF, confirm that the barcode is embedded as a vector or as a high-resolution image. Low-resolution barcodes are one of the top causes of scan failures in product labels.

8) Common barcode print mistakes

  • Cropping too tightly and removing quiet zones
  • Using “fit to page” scaling in the print dialog
  • Printing dark bars on a dark background
  • Placing a barcode on a curve or near an edge
  • Using a low-resolution JPG for print

If you fix only one thing, fix scaling. Print at 100% when possible and keep bar widths consistent.

9) Keep a consistent label template

Consistency is a hidden best practice. If your team prints barcodes in different sizes and styles every week, scan issues become harder to debug. Set a standard:

  • Barcode type (example: Code 128 for internal IDs)
  • Default width/height
  • Standard margins and quiet zone spacing
  • Label material and printer settings

This turns barcode creation into a repeatable process instead of a new design decision every time.

10) Using barcodes and QR codes together

Many labels use both a 1D barcode and a QR code. The barcode is for fast scanning in operations. The QR code is for richer data like a product page, support guide, or internal documentation. If you do this, label them clearly and keep them separated so scanners do not confuse them.

11) Check digits, validation, and “good data”

Barcode quality is not only about printing. It is also about encoding the right value. Some barcode systems include a check digit (a number calculated from the rest of the digits). UPC and EAN formats commonly use check digits. If the number is invalid, scanners may reject it even if the barcode image looks perfect.

If you are creating retail packaging, make sure your UPC/EAN is assigned correctly. Many companies obtain numbers through GS1 so the identifiers are unique in the retail ecosystem. A free online barcode generator can create the image, but it cannot “mint” a valid retail identity by itself. If you already have a valid number, generating the barcode image for product labels is straightforward. If you are unsure, validate the format first, then print a sample and test it with your scanner.

For internal barcodes (like Code 128), the rules are simpler, but consistency is still important. Decide whether IDs are case-sensitive, whether leading zeros matter, and what separators you use (dashes, underscores). The barcode should scan to exactly what your system expects. “Good data” is what makes barcodes feel effortless in daily operations.

FAQs

Is your barcode generator online free?

Yes. You can generate barcodes and download them without signup. For most workflows, SVG is best for print and PNG is good for general use.

Can I generate a UPC barcode for my product?

You can generate the barcode image, but UPC numbers used in retail often need to be assigned correctly (commonly through GS1). If you already have a valid UPC, you can use an UPC generator workflow to create the barcode image for packaging or labels.

Can I generate an EAN barcode?

Yes. EAN-13 and EAN-8 are common retail formats. Like UPC, the important part is using valid numbers. If you enter 12 digits for EAN-13 (or 7 digits for EAN-8), many tools can calculate the check digit.

When should I use Code 128 instead of UPC/EAN?

Use Code 128 when you need alphanumeric IDs, internal tracking, or shipping labels. Use UPC/EAN when you need retail product barcodes that follow those standards.

My barcode prints but does not scan. Why?

Common causes include: barcode too small, low contrast, missing quiet zones, or print scaling that changes bar widths. Print one test label, scan it with the real scanner, then adjust width/height/margins and re-test.

Do I need a QR code instead of a barcode?

QR codes are better for links, text, and actions like Wi-Fi or vCards. Barcodes are better for fast scanning in retail and logistics. Many businesses use both: barcodes for operations and QR codes for customer-facing actions.

If you are building a packaging or label system, it helps to define roles: the barcode is the machine-friendly identifier for your system, and the QR code is the customer-friendly bridge to web content. Keeping that separation avoids clutter and improves scan success.

Should I show the text under the barcode?

In many workflows, yes. Human-readable text helps when a scanner fails or when a person needs to manually verify a value. For some packaging designs, you may hide it, but on internal labels it is usually helpful.

Can I use colored barcodes?

You can, but keep contrast high. Dark bars on a light background scan best. Avoid light-colored bars and avoid printing on patterned backgrounds. If you add color for branding, test with your scanner hardware before production.

Can I generate barcodes in bulk?

Our online barcode generator is designed for single barcodes at a time. If you need bulk generation (hundreds or thousands), you usually want a scripted workflow or dedicated barcode generator software. The core best practices still apply: correct type, valid data, and print testing.

What about Amazon/FBA barcodes?

Amazon has specific label requirements depending on the program and product. Some labels use UPC/EAN, others use FNSKU labels. Confirm the exact format required by your workflow, then use the correct barcode type. When in doubt, test scan and verify the value matches what your platform expects.

Can Code 39 encode lowercase letters?

Standard Code 39 generally uses uppercase letters. If your data includes lowercase or special characters outside the allowed set, use Code 128 instead. Code 128 is a common default for internal IDs because it is flexible and compact.

What width and height should I use?

It depends on scan distance, label size, and scanner type. Start with a reasonable width (not too thin) and a height that is not overly short. Print one test label, scan it with the real scanner, and adjust. Avoid changing bar widths through scaling after export.

Do barcodes create product numbers automatically?

No. A barcode image encodes a number you provide. For retail, product numbers like UPC/EAN are typically assigned through a standard process. Your barcode maker can create the image, but you must ensure the number itself is correct and allowed.

Do UPC/EAN barcodes need a check digit?

Yes. UPC-A, EAN-13, and EAN-8 include a check digit. Some generators can calculate the check digit when you enter the base digits. Always verify the full number with your product database to avoid mismatches.

Ready to create one now? Use our barcode generator online to generate barcode online free and download it in seconds.

Explore More

If you find these tools helpful, consider supporting the project!

Support Us