Generators

Barcode Generator

Create scannable barcodes and QR codes online for free. This barcode generator supports Code 128, EAN-13, UPC-A, Code 39 and QR Code formats. Download each result as a crisp PNG, or batch-generate a whole numbered sequence in one click.

100% free, no sign-up Runs in your browser PNG & ZIP export
Accepts any letters, numbers and symbols
Your barcode appears here
Type
Code 128
Characters
14
Status
Ready

How to use the barcode generator

This barcode generator works in real time and needs no installation. You set a few options, and the image updates as you type. Below, five short steps cover the whole process from first input to final download.

  1. Pick a barcode typeChoose Code 128, EAN-13, UPC-A, Code 39 or QR Code. Furthermore, each type suits a different use, so the dropdown labels the common purpose of each.
  2. Enter your valueType the text, number or URL you want to encode. As you type, the preview updates instantly, so you see the result without clicking anything.
  3. Adjust the lookSet the bar width, height and colours. Additionally, QR codes expose an error-correction level that controls how much damage a code can survive.
  4. Download the imageSave the result as a transparent-ready PNG. Moreover, linear barcodes also export as a scalable SVG for print at any size.
  5. Batch when neededSwitch to the batch tab to encode a pasted list or an auto-numbered sequence. Then download every code together in a single ZIP file.

Supported barcode formats compared

Each format encodes data differently and fits a specific industry. The table below summarises what every supported type accepts. Consequently, you can match the right symbology to your task before generating.

FormatAcceptsTypical useLength
Code 128All ASCII charactersShipping, packaging, internal labelsVariable
EAN-13Digits onlyRetail products worldwide12 digits + check
UPC-ADigits onlyRetail products in North America11 digits + check
Code 39A–Z, 0–9, few symbolsLogistics, defence, automotiveVariable
QR CodeAny text, URLs, contactsMarketing, payments, ticketingUp to ~4,000 chars

Linear barcodes hold a short identifier that links to a database record. In contrast, a QR code can store the full data itself, including a complete web address. Therefore retailers prefer EAN or UPC, while marketers reach for QR.

Code 128 packs the most data into the least space among the linear types. Code 39 is older and slightly longer, yet many legacy scanners still expect it. For that reason, pick Code 128 for new projects unless a partner asks otherwise.

The EAN-13 check digit formula explained

Retail barcodes protect against scanning errors with a final check digit. This generator calculates it for you automatically. Still, knowing the formula helps you verify any barcode by hand.

check = (10 − (Sodd + 3 × Seven) mod 10) mod 10
Sodd = sum of digits in odd positions (1st, 3rd, 5th…)
Seven = sum of digits in even positions (2nd, 4th, 6th…)
mod 10 = remainder after dividing by ten

The scanner repeats this same calculation after reading a label. When the computed digit matches the printed one, the read is valid. As a result, a smudged or misread barcode is rejected rather than charged incorrectly.

Worked example: building an EAN-13 code

Suppose your 12 data digits are 590123412345. The check digit completes the 13-digit barcode. Below, every step uses real numbers so you can follow along.

StepCalculationResult
Odd-position sum5+0+2+4+2+417
Even-position sum9+1+3+1+3+522
Weighted total17 + (3 × 22)83
Next multiple of 1090 − 837
Check digitfinal digit7

The finished barcode therefore reads 5901234123457. Type the 12 data digits into the tool above, and it appends the 7 for you. Consequently, you never need to run this maths manually.

A single wrong digit changes the weighted total, which changes the check digit — that mismatch is exactly how scanners catch errors at the till.

Trying the sequence feature

Now open the batch tab and pick "Auto sequence". Enter the prefix ASSET-, a start of 1, an end of 12 and a pad of 4. The tool then produces ASSET-0001 through ASSET-0012 as Code 128 labels. Finally, one ZIP download gives you all twelve images at once.

This sequence mode saves real time when you tag many items. Instead of typing each label, you describe the pattern once. Moreover, zero-padding keeps every code the same width, which prints neatly on a label sheet.

What is a barcode?

A barcode is a machine-readable pattern that encodes data as bars and spaces, or as black-and-white squares. A scanner reads the pattern and converts it back into the original text or number. Because machines read it far faster than humans, a barcode speeds up almost any counting task.

A reader works by shining light at the code and measuring the reflection. Dark bars absorb light, while light spaces bounce it back. From that pattern of widths, the decoder rebuilds the encoded value in milliseconds.

Linear barcodes store data along a single horizontal line of varying-width bars. Two-dimensional codes such as QR store data across a grid, which holds much more information. Moreover, a 2D code stays readable even when partly damaged, thanks to built-in error correction.

Who uses barcodes?

Retailers scan EAN and UPC codes at every checkout. Warehouses track pallets and bins with Code 128 and Code 39. In addition, marketers print QR codes on posters, menus and packaging to link straight to a web page. Hospitals, libraries and event organisers all rely on the same technology.

A short history

The first barcode was patented in 1952, yet it took decades to spread. A pack of chewing gum became the first scanned retail product in 1974. QR codes followed in 1994, invented to track car parts in Japan. Since then, smartphone cameras have turned QR codes into an everyday tool.

Why barcodes matter for your business

Barcodes remove manual data entry, which is slow and error-prone. A scan takes a fraction of a second and rarely makes mistakes. As a result, staff process more items in less time and customers wait less at the till.

Accurate scanning also feeds clean data into your systems. Furthermore, that data drives reliable stock counts, faster reordering and trustworthy sales reports. Clean inputs prevent costly downstream errors across the whole operation.

The cost of adopting barcodes stays low as well. A printed label costs almost nothing, and free tools like this one remove software fees. Consequently, even a small shop can run a professional scanning workflow on a tight budget.

Standards keep barcodes interoperable

Retail barcodes follow shared GS1 standards, so any compliant scanner reads them. As a result, a product made in one country scans correctly in another. These rules cover digit counts, check digits and minimum sizes, which this tool respects automatically.

How barcodes support key metrics

Faster checkouts lift throughput per hour, a metric every shop watches. Likewise, accurate inventory cuts both stockouts and overstock, freeing working capital. QR codes add a marketing metric too, since each scan is a measurable engagement you can track over time.

Tips for barcodes that always scan

A few habits keep your codes reliable in the real world. First, leave a clear quiet zone of white space on both sides. Without it, a scanner often fails to find where the code begins.

Next, keep enough contrast between bars and background. Dark bars on a white background read best, so avoid low-contrast colour pairs. Additionally, test a printed sample before you order a large run.

Finally, size the code for its scanning distance. A small label suits a handheld reader at close range. However, a poster QR code needs to be large enough to scan from across a room.

Frequently asked questions

Are the barcodes free to use commercially?

Yes. Every barcode and QR code you create here is free for personal and commercial use, with no watermark and no sign-up required.

Do my barcodes get uploaded anywhere?

No. The generator runs entirely in your browser, so your values never leave your device. Consequently, it works offline once the page has loaded.

Why does EAN-13 ask for only 12 digits?

The 13th digit is a check digit, and the tool calculates it automatically. Therefore you only type the 12 data digits and let the generator finish the code.

Which QR error-correction level should I pick?

Level M suits most uses and balances size with resilience. However, choose H when a code may be printed small, placed outdoors or partly covered by a logo.

Can I print these barcodes at high resolution?

Yes. Linear barcodes export as SVG, which scales to any print size without blur. In addition, every code downloads as a sharp PNG for digital use.

Related tools

QR Code Generator

Build dedicated QR codes for links and contacts. Moreover, it adds logo and styling options.

Sequence Generator

Create numbered or lettered sequences fast. Furthermore, it pairs well with batch barcode labels.

Random Data Generator

Generate test SKUs, IDs and records. Additionally, you can feed the output straight into batch mode.

Password Generator

Produce strong, random passwords instantly. Moreover, every value is generated locally in your browser.

Random Number Generator

Pull random numbers within any range. Furthermore, the suite covers dice, coins and lottery picks.

List Randomiser

Shuffle any list into a random order. Additionally, it is handy for raffles and fair draws.

Rate this tool

4.4
out of 5
411 ratings
5 ★
68%
4 ★
17%
3 ★
6%
2 ★
2%
1 ★
7%
How useful was this tool?