Barcode Generator
Create a scannable Code 128, EAN-13 or UPC-A barcode for products, labels, inventory or tickets, with the check digit worked out for you.
- Free
- No upload
- No watermark
- No sign-up
How to use the barcode Generator
- 1
Pick the barcode type: Code 128, EAN-13 or UPC-A.
- 2
Type the text or digits; the check digit is calculated and shown.
- 3
Set the bar width, height, colors and whether to show the number.
- 4
Download as SVG for print or PNG for the web.
Which barcode to use
- Code 128: letters, digits and symbols, compact and dense. Used for shipping labels, inventory, asset tags, tickets and anything internal. It includes its own check symbol.
- EAN-13: the 13-digit retail barcode used on products in most of the world, including India. The first digits are a country/company prefix assigned by GS1.
- UPC-A: the 12-digit retail barcode used in the US and Canada. It's the same as an EAN-13 that starts with 0.
Check digits, done for you
EAN-13 and UPC-A end with a check digit that scanners use to catch misreads. For EAN-13 it's found by weighting the first 12 digits alternately by 1 and 3, adding them, and taking what's needed to reach the next multiple of 10. Type 12 digits and the 13th is added; type all 13 and the tool checks that the last one is right and tells you the correct digit if not.
Code 128 has a check symbol too: a weighted sum of every symbol, modulo 103, placed before the stop pattern. The generator also switches to Code 128's compact number mode for runs of digits, so long numbers make shorter barcodes.
Printing barcodes that scan
- Use SVG for print: it stays perfectly sharp at any size.
- Keep the white margin (quiet zone) on both sides; it's built into the image.
- Dark bars on a light background. Colored barcodes scan only with strong contrast; red bars often fail.
- Retail EAN or UPC numbers must be licensed from GS1 to be used on products sold in stores; this tool draws the barcode for a number you already have.
Questions, answered.
Is the check digit calculated automatically?
Yes. For EAN-13 and UPC-A, type the number without its check digit and it's added. If you type the full number, the check digit is verified.
Can I use these barcodes on products in shops?
The barcode image is standard and scannable, but retail stores require a number registered with GS1 (GS1 India in India). Use the number GS1 gives you.
What can Code 128 encode?
Letters, digits, spaces and standard keyboard symbols (printable ASCII). Accented letters and other scripts can't be encoded in Code 128.
SVG or PNG?
SVG for printing and design tools, since it never blurs. PNG for websites, documents and spreadsheets.
Is there a watermark or limit?
No watermark, no sign-up and no limit; barcodes are drawn in your browser.
More free creator tools
- Create ZIPBundle photos, videos, documents or a whole folder into one ZIP to send or upload, without installing anything and without uploading your files.
- Unzip FilesOpen a ZIP on any device, see what's inside and save just the files you need, without installing an app or uploading the archive.
- Screenshot BeautifierPaste a screenshot and turn it into a clean image for a tweet, a LinkedIn post, a slide or your docs, in a few clicks.
- LinkedIn Carousel MakerWrite your post as short blocks of text and get a designed, swipeable PDF carousel for LinkedIn in seconds.
- Screen recorderRecord your screen, a window or a browser tab with your microphone and an optional webcam bubble, right in your browser.
- Webcam recorderRecord yourself with your webcam and microphone in the browser, then download the video.