BarcodeFree

How to Create a Barcode: Complete Guide (2026)

Whether you are a retailer labeling products, a warehouse manager tracking inventory, an event organizer issuing tickets, or a healthcare professional identifying specimens — creating a barcode is straightforward when you know the right steps. This guide walks you through every stage, from picking the right format to printing a scannable result.

Step 1: Choose Your Barcode Type

The barcode format determines which characters you can encode, how compact the result is, and what scanners will read it. Use this table to pick the right one:

FormatBest ForCharacter SetExample Use Case
Code 128General-purpose 1DAll 128 ASCII charactersShipping labels, warehouse bins, internal asset tags
EAN-13Retail products (global)13 digits (GS1 required)Supermarket product packaging in Europe and Asia
UPC-ARetail products (North America)12 digits (GS1 required)US and Canadian grocery and retail checkout
QR CodeURLs and mobile scanningAlphanumeric, URLs, binaryRestaurant menus, event tickets, marketing campaigns
Code 39Legacy and industrial systems43 characters (uppercase only)US military, automotive parts, older government systems

Step 2: Get Your Data Ready

The data you encode depends on the format you chose. For Code 128 and Code 39, you can encode any text string — a product SKU, a serial number, a lot code, or a custom identifier. These formats are open standards with no registration requirements, so you can start using them immediately without any application process or fee.

For EAN-13 and UPC-A, the situation is different. If your barcodes will be scanned at retail point-of-sale terminals — for example at a supermarket checkout — you must use a number issued under the GS1 system. This requires joining GS1 US (or your local GS1 member organization) and obtaining a Company Prefix. As of 2026, GS1 US annual membership starts at approximately $250 per year for small businesses with up to 10 products. If you are creating EAN-13 or UPC-A barcodes for internal use only — where you control both printing and scanning — you are free to use any 12- or 13-digit number without GS1 registration.

For QR Codes, encode a full URL (including https://) for best compatibility with phone cameras. Keep the URL short to reduce QR complexity and improve scannability at small print sizes.

Step 3: Generate Your Barcode

Use the free generator below. Select your format from the buttons at the top, type or paste your data into the input field, and the barcode updates in real time. Use the width and height sliders to set your target dimensions. Toggle the text label on or off depending on whether you need human-readable text beneath the bars. When the preview looks correct, click Download PNG to save the file.

Format

100px600px
50px300px

Step 4: Test Your Barcode

Before printing in bulk, always scan the generated barcode and confirm the decoded value matches your input. Install a free barcode scanner app on your phone — most camera apps on iOS and Android also decode barcodes natively. Point the camera at the barcode on your screen and verify the result.

Pay attention to quiet zones: the blank margin on each side of the barcode must be at least 10 times the width of the narrowest bar (the X-dimension). Missing quiet zones are one of the most common causes of scan failures in production. The minimum recommended bar height is 6.35 mm — barcodes that are too short can be difficult for fixed-beam scanners to read.

Test under real conditions: the same lighting, scanner distance, and label material you will use in production. Glossy label stock can cause glare that reduces scanner reliability. If you are using a handheld scanner, test at both close range and at the maximum working distance you expect in practice.

Step 5: Print Your Barcodes

Print quality has a direct impact on scannability. Use a printer with a minimum resolution of 300 DPI — 600 DPI or higher is strongly recommended for small barcodes or narrow bar widths. Standard laser printers handle barcodes well at 600 DPI. Inkjet printers can work, but ink bleed on absorbent paper stock may thicken the bars and cause decoding errors.

Thermal printers (direct thermal or thermal transfer) are the industry standard for barcode label production. They produce sharper, more consistent bars than inkjet or laser printers and are designed for high-volume label printing. For shipping labels, warehouse tags, and any application requiring thousands of labels per day, a thermal label printer is the right tool.

Always print black bars on a white background. Avoid colored backgrounds, colored bars, or reverse (white-on-black) barcodes — most 1D scanners are optimized for dark-on-light contrast. After printing, verify the quiet zones are preserved: the blank margins must appear in the final printed output, not just in the digital file.

Common Barcode Mistakes

Wrong format for the use case. Using Code 128 on a product you plan to sell in retail stores will not work at POS checkout — those systems expect EAN-13 or UPC-A. Match the format to the scanning infrastructure, not just the data.

Barcode too small. Scaling down a barcode to fit a small label reduces bar width below the minimum scannable size. If the barcode must be small, consider switching to a higher-density format or reducing the amount of encoded data.

Poor contrast. Light-colored bars, colored substrates, or printing on glossy silver label stock can reduce contrast to the point where scanners fail. Always target black bars on a plain white background.

Missing quiet zones. Cropping the image or placing other design elements too close to the barcode removes the required blank margin. Quiet zones are part of the barcode specification — without them, scanners may misread the start or stop characters.

Data errors. For EAN-13 and UPC-A, the last digit is a check digit calculated from the preceding digits. Entering an incorrect check digit will cause scanners to reject the barcode. This generator calculates check digits automatically — but if you type in a full 13-digit EAN number manually, confirm the check digit is correct before printing.

Frequently Asked Questions

What is the easiest barcode to create?

Code 128 is the easiest barcode to create for most use cases. It supports the full ASCII character set — letters, digits, and symbols — requires no registration or licensing fees, and works with virtually any barcode scanner. Simply enter your text, generate the barcode, and download it. No GS1 membership or application process is needed unless you are selling products through retail point-of-sale systems.

Do I need to pay for a barcode?

It depends on your use case. For internal purposes — inventory tracking, asset tags, shipping labels within your own warehouse — you can create and use barcodes for free using formats like Code 128 or Code 39. However, if you need a barcode for retail point-of-sale scanning (the barcode that appears on consumer product packaging), you must obtain a GS1 Company Prefix through GS1 US, which costs approximately $250 per year for the base tier. This gives you a globally unique company prefix and the right to issue EAN-13 or UPC-A numbers.

Can I create a barcode in Excel or Word?

Yes, you can create barcodes in Excel or Word using barcode fonts (free downloads for Code 128, Code 39, etc.) or by installing a barcode add-in. However, these methods have limitations: barcode fonts require manual check-digit calculation, give you less control over sizing and quiet zones, and may not render correctly across different machines. A dedicated browser-based tool like this one handles check digits automatically, lets you set exact dimensions, previews the result in real time, and exports a clean PNG — making it a more reliable option for production use.

How do I make sure my barcode scans correctly?

To ensure reliable scanning: (1) maintain sufficient quiet zones — at least 10 bar widths of blank space on each side; (2) keep the barcode large enough — narrow bars should be at least 0.25 mm wide, and height should be at least 6.35 mm; (3) print with high contrast — always black bars on a white background; (4) use a minimum print resolution of 300 DPI; (5) test with multiple scanners before mass printing; (6) for QR codes, use error correction level M or H to tolerate minor print defects. Scan your test print under the same conditions (lighting, scanner distance) as the final environment.

What is a GS1 barcode?

A GS1 barcode is a barcode that carries a number issued under the GS1 system — the global standard for supply chain identification. The most common GS1 barcodes are EAN-13 (used worldwide for retail products) and UPC-A (used in North America). To obtain a GS1 number, a company must join GS1 US (or the GS1 member organization in their country) and pay an annual membership fee to receive a unique company prefix. This prefix ensures that no two companies will ever issue the same product number. GS1-128 (a structured form of Code 128) is also used in logistics to encode batch numbers, expiry dates, and other supply chain data.