QR codes and barcodes

Scan Code Generator

Make a scannable code in seconds. Generate a QR code or a barcode such as Code 128, EAN-13, UPC-A, EAN-8, Code 39, or ITF-14, customise the colours, then download a crisp SVG or PNG. Free, private, and made right in your browser.

Any text or website URL.

Customise

Colours
#181C1A #FFFFFF
Error correction
Module style
Quiet zone 4 mod
Bar width 2x
Height 100px
Show value

Low contrast can stop a code from scanning. Keep the foreground much darker than the background.

Scan it with your phone to test before you print or share.

QR codes and six barcode types Vector SVG and high-resolution PNG Runs in your browser, nothing uploaded Free, no sign-up, no watermark
Quick answer

What is a scan code?

A scan code is any printed pattern a camera or scanner can read and turn back into data. There are two broad kinds. One-dimensional barcodes, like the EAN and UPC codes on retail products, store a short number in a row of black bars of different widths. Two-dimensional codes, like QR codes, store much more in a grid of squares that reads in two directions. This generator makes both, so you can create a QR code for a link or a barcode for a product, label, or ticket, all from one place.

Code types

The scan codes you can make

Each type suits a different job. Use the table to match a code to what you need, then pick it in the generator above.

Scan code types supported by this generator, what they hold, and where they are used.
TypeKindHoldsCommon use
QR Code2DText, URLs, Wi-Fi, contactsLinks, posters, menus, payments
Code 1281DFull ASCII, letters and numbersShipping, logistics, labels
EAN-131D13 digitsRetail products worldwide
UPC-A1D12 digitsRetail products in North America
EAN-81D8 digitsSmall retail packaging
Code 391DDigits, A to Z, a few symbolsIndustry, ID badges, inventory
ITF-141D14 digitsCartons and shipping cases
Two families

1D barcodes versus 2D codes

The big difference is direction. A 1D barcode is read across a single line, so it holds a small amount of data. A 2D code is read across a grid, so it holds far more in the same space.

A 1D barcode reads across one line, a 2D code reads across a grid The barcode stores data in bar widths along one direction, while the QR style code stores data in a two-directional grid of squares. 1D barcode one direction 2D code two directions
How 1D barcodes and 2D codes compare at a glance.
Feature1D barcode2D code
Reads inOne directionTwo directions
Data amountSmallLarge
Holds lettersSome typesYes
Error recoveryLimitedBuilt in
Phone camera reads itSometimesEasily
How much fits

QR code data capacity

A QR code holds far more than a 1D barcode. These are the maximums for the largest QR code at the lowest error correction, from the QR Code standard (ISO/IEC 18004). Barcodes hold only a short value, which is why they suit product numbers rather than text.

QR code maximum capacity by data type A QR code holds up to 7,089 numeric, 4,296 alphanumeric, or 2,953 byte characters. 0 3,500 7,000 7,0894,2962,953 NumericAlphanumericByte
Fixed data length of each barcode type this generator supports.
TypeCharacters
EAN-1313 digits
UPC-A12 digits
EAN-88 digits
ITF-1414 digits
Code 39Variable
Code 128Variable, full ASCII
Anatomy

Parts of a barcode

A barcode is more than its bars. The quiet zones and start and stop patterns tell a scanner where the code begins and ends, and a check digit guards against misreads.

The parts of a 1D barcode From left to right, a quiet zone, a start pattern, the data bars, a check digit, a stop pattern, and a final quiet zone. quiet zone start data bars check digit stop quiet zone 5 9 0 1 2 3 4 1 2 3 4 5 7
Built-in safety

How a check digit works

Retail barcodes like EAN-13 end in a check digit, a single number calculated from the others. A scanner recomputes it and rejects the read if it does not match, which catches most mistakes. Here is the calculation for EAN-13.

EAN-13 check digit calculation Each of the first twelve digits is multiplied by one or three, the results are summed, and the check digit is the amount needed to reach the next multiple of ten. Digits 590123412345 weights x1 x3 alternating 5×1 + 9×3 + 0×1 + 1×3 + 2×1 + 3×3+ 4×1 + 1×3 + 2×1 + 3×3 + 4×1 + 5×3 sum = 93 next ten = 100 check digit = 100 − 93 = 7

Why it matters

The check digit is what lets a scanner beep with confidence. A smudge or a misaligned scan that changes one bar usually breaks the check, so the scanner asks for another pass instead of recording the wrong number.

You do not calculate it

This generator adds the check digit for you. For EAN-13 you can enter 12 digits and the 13th is filled in. For UPC-A, enter 11 and the 12th is added.

Real product numbers

To sell a product in shops, the number itself must be issued by GS1, the body that manages retail barcodes. This tool draws the code, but it cannot assign you an official product number.

Step by step

How to make a scan code

Choose a code type

Pick a QR code or a barcode such as Code 128 or EAN-13 from the menu in the generator.

Enter your content

Type a link or text for a QR code, or the value for a barcode. The helper note shows what each type expects.

Customise it

Set the colours, and for QR codes the error correction and style. Keep strong contrast so it scans.

Test the scan

Point your phone camera at the preview to confirm it reads what you expect.

Download

Save an SVG for print or a high-resolution PNG for screens, then place it where people can scan it.

Make it scannable

Best practices for codes that scan

Keep the quiet zone

Leave clear space around a code. Barcodes and QR codes both need an empty margin to read reliably.

Use strong contrast

Dark bars on a light background scan best. Avoid pale colours or reversing the two.

Do not shrink too far

Tiny codes fail. Print at a size the scanner and your audience's distance can handle.

Test before you print

Scan with more than one phone or scanner, and proof a printed sample at final size.

Use SVG for print

Vector files stay sharp at any size, so use SVG for packaging, labels, and posters.

Match code to job

Use a QR code for links and rich data, and a 1D barcode for short product or tracking numbers.

Glossary

Scan code terms, defined

Barcode
A 1D scan code that stores a value in the widths of parallel bars and spaces.
QR code
A 2D scan code that stores data in a grid of squares and reads in two directions.
Symbology
The standard a barcode follows, such as Code 128 or EAN-13, which sets how data is encoded.
Quiet zone
The clear margin around a code that lets a scanner tell where it starts and ends.
Check digit
An extra digit calculated from the others that helps a scanner catch misreads.
GS1
The organisation that issues the official product numbers used in EAN and UPC retail barcodes.
Questions

Frequently asked questions

Is this scan code generator free?
Yes. It is free with no sign-up, no watermark, and no limit on how many codes you make. Everything runs in your browser, so your content is never uploaded.
Which codes can I create?
You can make a QR code, or a barcode in Code 128, EAN-13, UPC-A, EAN-8, Code 39, or ITF-14. Pick the type from the menu and the generator handles the encoding.
What is the difference between a QR code and a barcode?
A barcode is one-dimensional and stores a short value in a row of bars, used mainly for product and tracking numbers. A QR code is two-dimensional and stores much more, such as links, Wi-Fi details, or contact cards.
Do I need to add the check digit myself?
No. For EAN-13 and UPC-A the generator calculates and adds the check digit. Enter 12 digits for EAN-13 or 11 for UPC-A and the final digit is filled in automatically.
Can I use this barcode to sell a product in stores?
The generator draws a valid barcode from any number you enter, but a real retail product number must be issued by GS1. Use a number you have been assigned, then generate its barcode here.
Should I download SVG or PNG?
Use SVG for print, such as packaging, labels, and posters, because it stays sharp at any size. Use a high-resolution PNG for screens and documents. This generator exports both.
Can I change the colours?
Yes. You can set the foreground and background colours for any code. Keep the foreground much darker than the background, since low contrast is the most common reason a code will not scan.
Why will my barcode not generate?
Most barcode types only accept certain characters or lengths. For example, EAN-13 needs digits only. The helper note under the content box shows what each type expects, and an invalid value will not render until it is corrected.