Barcode Generator
Create EAN-13, UPC-A and EAN-8 barcodes with the check digit worked out for you. Download a sharp PNG at 300 DPI or a scalable SVG. Free and private.
Format and number
Size and colors
100% is the standard size. Keep it between 80% and 200% for reliable scanning.
Preview
Scan Trust Score Waiting
- Enter digits to see your score and tips.
Checks the check digit, size, bar height, contrast and the number's prefix. It cannot scan the print, so test the final barcode with a real scanner before you use it.
⭐ Saved Barcodes (0)
A barcode is only useful if a scanner can read it the first time. The Barcode Generator above builds EAN-13, UPC-A and EAN-8 codes, works out the check digit for you, and scores the design for size, bar height and contrast. Download a sharp PNG at 300 DPI or a scalable SVG for print.
What Is a Barcode Generator?
A barcode generator turns a number into a pattern of dark bars and light spaces that a scanner can read. Retail products usually carry an EAN-13 or UPC-A code, while small packs often use EAN-8. Each code ends with a check digit, a number calculated from the others, so a scanner can spot a misread digit straight away.
Key Features of This Tool
- Three formats: EAN-13, UPC-A and EAN-8, with the right digit count for each.
- Automatic check digit: Enter the base digits and the final digit is added for you. A typed check digit is verified.
- Random internal number: Creates a number that starts with 20, the range reserved for internal store use.
- Size control: Set the size from 80% to 200% of the standard width.
- Bar height and colors: Adjust the bar height and choose bar and background colors.
- Digits under the bars: Optional, so people can still type the code if scanning fails.
- PNG at 300 DPI and SVG: PNG for print and web, SVG for scalable designs.
- Scan Trust Score: A 0 to 100 score with tips on size, height, contrast and the number itself.
- Favorites, Random Style and Share: Save a barcode, change the theme, or share the tool.
- Private and free: Everything is made in your browser. No upload and no sign-up.
How to Make a Barcode (Step by Step)
- Choose the format that matches your product or pack.
- Type the base digits, or tap Random number for an internal code.
- Check the status line. The check digit is added automatically.
- Set the size to 100% unless you have a specific reason to change it, and keep the bars at 15 mm or taller.
- Use dark bars on a light background, then review the Scan Trust Score tips.
- Download the PNG at 300 DPI or the SVG, print a test, and scan it with a real device before you use it.
How the Check Digit Works
For EAN-13 and UPC-A, the digits are weighted alternately by 1 and 3 (or 3 and 1 for UPC-A) and added together. The check digit is the amount needed to bring that total up to the next multiple of ten. EAN-8 uses the same idea with a shorter number. This tool does the sum for you and tells you if a typed check digit is wrong.
Example Scan Trust Score badge
| Score | Meaning |
|---|---|
| 85 - 98 | Scan-ready: valid check digit, good size, bar height and contrast |
| 70 - 84 | Good: a small change such as a taller bar or darker color |
| 50 - 69 | Review: size, contrast or height needs attention |
| 5 - 49 | Check design, or invalid: the check digit is wrong or the print will be hard to scan |
Honest note: The tool cannot scan a printed barcode, so the score is based on design rules only. Printing, paper, lighting and scanner quality all affect results. Test the final print with the scanner you will use, and check that the number is registered to you if the product will be sold.
Sizes and Printing Tips
| Format | Width at 100% | Why it matters |
|---|---|---|
| EAN-13 and UPC-A | About 37 mm, including quiet zones | The standard retail size. Smaller prints are harder to scan |
| EAN-8 | About 27 mm, including quiet zones | Made for small packs where space is limited |
| Size range | 80% to 200% | Below 80% often fails. Above 200% may not fit a scanner's view |
| Bar height | 15 mm or more | Taller bars can be scanned from an angle |
| Contrast | Dark bars on light background | Light bars on dark, or pale colors, scan poorly |
Practical Uses
- Small shops and stalls: Label stock with internal codes for a point-of-sale system.
- Warehouses and inventory: Tag shelves, bins and boxes with clear, scannable codes.
- Product packaging: Create a test print of a code you have registered with GS1.
- Events and tickets: Print simple codes for check-in, with the digits shown below.
- Library and asset tags: Label equipment or books with a unique number.
- Learning: See how a check digit is calculated and what makes a code scannable.
Benefits
- Fewer scan errors: The check digit is calculated for you, so a typo is caught.
- Sharp output: A 300 DPI PNG or a vector SVG for print.
- Clear guidance: The score points out size, height and contrast problems before printing.
- Private and free: No upload, no sign-up, and no limit on how many codes you make.
- Easy reuse: Save a barcode and reload it for the next label run.
Pro Tips for Scannable Barcodes
- Keep the quiet zone clear. Leave the white space at both ends of the code empty.
- Print at 100% or larger on a good printer, and check the printed width with a ruler.
- Use black bars on white paper for the highest contrast.
- Print a test first. Scan it with the device you will use before printing a full run.
- Show the digits under the bars so a cashier can type the number if scanning fails.
- Use an internal range for in-store codes. Numbers starting 20 to 29 are reserved for this purpose.
- Use one number per product, and keep a record of which product each number belongs to.
Common Mistakes
| Mistake | Better habit |
|---|---|
| Printing a barcode smaller than 80% | Print at 100% or larger and check the width |
| Light bars on a dark background | Dark bars on a light background |
| Cutting off the quiet zone | Leave the white space at both ends |
| Using a random number for a product sold to the public | Use a number from your own GS1 registration |
| Never scanning the print | Test every new print with a real scanner |
Frequently Asked Questions
Is the Barcode Generator free?
Yes. It is free, with no sign-up and no limit on how many barcodes you make.
Can I use these barcodes on products sold in shops?
Only with a number from your own GS1 registration. Retailers check that codes belong to the product's owner. Random internal numbers (starting 20 to 29) are for use inside your own business.
Why does the check digit change when I change a digit?
The check digit depends on every other digit in the number. A change to any one digit gives a different check digit, which is how scanners catch errors.
What is the difference between EAN-13 and UPC-A?
UPC-A has 12 digits and is mainly used in North America. EAN-13 has 13 digits and is used worldwide. A UPC-A code is the same as an EAN-13 code with a leading zero.
Does the tool check whether my barcode scans?
No. It checks the design rules and the check digit. Only a real scanner can confirm that the printed barcode reads correctly, so test every print.
Can I make Code 128 or QR codes here?
This version makes EAN-13, UPC-A and EAN-8 only. For QR codes, use the QR Code tools on this site.
Is my number saved anywhere?
No. Barcodes are made in your browser. Only the barcodes you save as favorites are kept, in your own browser storage.
Final Thoughts
A good barcode is one that scans the first time. Use this generator to get the check digit right, keep the size and contrast in range, and download a sharp file for print. Then test the final print with a real scanner before it goes on a product or shelf. That is a practical, reader-first way to make codes that work.

