TapCub is live — analytics, insights and live chat, free on one platform

Free tool · Files Barcode generator for EAN-13, UPC-A, Code 128 and more

Type a product number or label text, pick the barcode type and download the barcode as SVG or PNG. GS1 check digits are added or checked for you. The tool only draws the bars: product numbers for shops must come from GS1.

  • Check digit worked out
  • SVG and PNG download
  • Runs on your device

Make a barcode

The barcode updates as you type. Numbers for EAN and UPC can be entered with or without the last (check) digit.

Generator

Content

Check digit 7 added: 5901234123457

Selling in shops? EAN, UPC and ITF-14 numbers for retail products must be licensed from GS1 (in China, the Article Numbering Center of China). This tool does not issue numbers; it only draws the bars for a number you already have. For your own labels, use Code 128.

Appearance

Width of the thinnest bar, 1–6.

Blank space around the bars.

Preview

5901234123457

248 × 165 px · 95 modules wide

SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="248" height="165" viewBox="0 0 248 165"><rect width="100%" height="100%" fill="#ffffff"/><g fill="#000000" shape-rendering="crispEdges"><rect x="38" y="20" width="2" height="111"/><rect x="42" y="20" width="2" height="111"/><rect x="50" y="20" width="2" height="100"/><rect x="54" y="20" width="4" height="100"/><rect x="60" y="20" width="2" height="100"/><rect x="66" y="20" width="6" height="100"/><rect x="74" y="20" width="4" height="100"/><rect x="82" y="20" width="4" height="100"/><rect x="90" y="20" width="2" height="100"/><rect x="96" y="20" width="4" height="100"/><rect x="102" y="20" width="8" height="100"/><rect x="112" y="20" width="2" height="100"/><rect x="118" y="20" width="6" height="100"/><rect x="126" y="20" width="2" height="100"/><rect x="130" y="20" width="2" height="111"/><rect x="134" y="20" width="2" height="111"/><rect x="138" y="20" width="4" height="100"/><rect x="146" y="20" width="4" height="100"/><rect x="152" y="20" width="4" height="100"/><rect x="158" y="20" width="4" height="100"/><rect x="166" y="20" width="2" height="100"/><rect x="176" y="20" width="2" height="100"/><rect x="180" y="20" width="2" height="100"/><rect x="184" y="20" width="6" height="100"/><rect x="194" y="20" width="2" height="100"/><rect x="200" y="20" width="6" height="100"/><rect x="208" y="20" width="2" height="100"/><rect x="216" y="20" width="2" height="100"/><rect x="222" y="20" width="2" height="111"/><rect x="226" y="20" width="2" height="111"/></g><g fill="#000000" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="20"><text x="28" y="140" text-anchor="middle">5</text><text x="51" y="140" text-anchor="middle">9</text><text x="65" y="140" text-anchor="middle">0</text><text x="79" y="140" text-anchor="middle">1</text><text x="93" y="140" text-anchor="middle">2</text><text x="107" y="140" text-anchor="middle">3</text><text x="121" y="140" text-anchor="middle">4</text><text x="145" y="140" text-anchor="middle">1</text><text x="159" y="140" text-anchor="middle">2</text><text x="173" y="140" text-anchor="middle">3</text><text x="187" y="140" text-anchor="middle">4</text><text x="201" y="140" text-anchor="middle">5</text><text x="215" y="140" text-anchor="middle">7</text></g></svg>

Share these inputs: the values go after the # in the link, so they never reach a server.

The barcode is drawn by your browser from what you type. Nothing is sent to TapCub or anyone else; the share link keeps the settings after the # sign, which browsers do not send to servers.

Version v1.0Updated Update history

Read the result

What the barcode contains

A barcode stores exactly the number or text you typed, nothing else: no price, no product name, no link.

The check digit

The last digit of EAN, UPC and ITF-14 is calculated from the others, so a scanner can tell when it misread a bar. Enter one digit fewer and the tool adds it; enter the full number and it is checked.

The digits under the bars

EAN-13 prints its first digit outside the bars and the rest in two groups of six; UPC-A prints the first and last digits outside. That layout is part of the standard, so leave it on for retail codes.

Size

At the default 2 px per bar the EAN-13 is 248 × 165 px. On paper the GS1 reference size is 37.29 mm wide with 0.33 mm for the thinnest bar; anything from 80% to 200% of that is allowed.

Checks

Warnings flag bars lighter than the background, low contrast, and margins narrower than the standard. They do not stop you downloading.

Always test-print one label and scan it with the scanner or phone app that will be used for real before printing a whole run.

How to use it

Make a barcode in four steps

The defaults (2 px bars, 100 px high, black on white) work for most labels.

  1. 1

    Pick the type

    EAN-13 or UPC-A for products sold in shops, ITF-14 for cartons, Code 128 for your own labels.

  2. 2

    Enter the number or text

    For EAN and UPC you can leave out the last digit and the tool calculates it.

  3. 3

    Adjust the look

    Make the bars wider for low-resolution printers, taller for easier scanning; keep the margins.

  4. 4

    Download

    SVG for print and design files, since it scales without blur; PNG at 2× or 4× for documents and web pages.

How it works

The GS1 check digit

EAN-13, EAN-8, UPC-A and ITF-14 all use the same mod-10 check digit from the GS1 General Specifications.

  • Starting from the digit next to the check digit and moving left, multiply the digits by 3, 1, 3, 1…
  • Add up the products
  • Check digit = 10 minus the last digit of the sum; if that gives 10, the check digit is 0
  • Code 128 has its own check character (sum of position × value, modulo 103); it is encoded in the bars but not printed under them
  • Code 39 here has no check character, which is how it is usually used
Barcode types in this tool
TypeContentTypical use
EAN-1312 digits + check digitRetail products worldwide
UPC-A11 digits + check digitRetail products in the US and Canada
EAN-87 digits + check digitVery small packs
ITF-1413 digits + check digitCartons and outer cases
Code 128ASCII text, up to 80 charactersSKUs, asset tags, shipping labels
Code 39A–Z, 0–9 and 7 symbolsOlder industrial and ID systems
Worked example

The check digit of 400638133393

Twelve digits of an EAN-13; the thirteenth is calculated.

GS1 mod-10 check digit
StepCalculationResult
1. WeightsDigits 4 0 0 6 3 8 1 3 3 3 9 3 × weights 1 3 1 3 1 3 1 3 1 3 1 34, 0, 0, 18, 3, 24, 1, 9, 3, 9, 9, 9
2. Sum4 + 0 + 0 + 18 + 3 + 24 + 1 + 9 + 3 + 9 + 9 + 989
3. Check digit10 − 9 (the last digit of 89)1
4. Full number400638133393 followed by 14006381333931

Type 400638133393 into the tool with EAN-13 selected and it shows the same result. A wrong last digit, such as 4006381333932, is flagged.

Common mistakes

Where barcodes go wrong

Most rejected barcodes have a valid pattern but the wrong number, size or colours.

Making up a retail number

A random EAN-13 can belong to someone else's product, and marketplaces check numbers against the GS1 registry. Get your numbers from GS1.

Shrinking too far

Below about 80% of the reference size, bars blur together on ordinary printers. Keep EAN-13 at least about 30 mm wide.

Red bars or dark backgrounds

Scanners use red light, so red bars look like background. Use black or dark blue bars on white.

Cutting off the margins

The blank space at each side tells the scanner where the code starts. Do not let text or a border touch the bars.

FAQ

Barcode generator questions

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

Is this barcode generator free?

Yes, with no sign-up and no watermark. Download as many SVG and PNG files as you need.

Can I use a barcode from this tool on a product I sell in shops?

Only with a number licensed to you by GS1 (in China, the Article Numbering Center of China). The barcode pattern is correct either way, but shops and marketplaces check that the number belongs to your company.

How do I get an EAN or UPC number?

Join your country's GS1 organisation and get a company prefix, or buy single GTINs where GS1 offers them. You then number your products yourself and draw the barcodes here.

Which barcode type should I use for my own labels?

Code 128: it takes letters, digits and symbols and is compact. Use EAN or UPC only for numbers that came from GS1. Numbers starting with 200–299 are reserved for in-store use if you need EAN-13 internally.

What is a check digit and do I need to enter it?

It is the last digit of EAN, UPC and ITF-14, calculated from the others so scanners can detect misreads. Leave it out and the tool adds it; type it and the tool checks it.

Should I download SVG or PNG?

SVG for anything printed or placed in design software, because it stays sharp at any size. PNG at 2× or 4× for Word documents, slides and web pages.

Can a barcode hold Chinese or other non-English text?

No. Code 128 and Code 39 only take ASCII letters, digits and a few symbols. For other scripts or longer content, use a QR code.

Why won't my barcode scan?

Usually low contrast, light bars on a dark background, margins too narrow, or a print that is too small. The checks under the preview point out the first three.

Changelog

Update history

New features, fixes and data refreshes for this tool, newest first.

  1. · v1.0

    LaunchedFirst release.

Missing something or found an error? Tell us — requests that come up often go into the next update. All tool updates

Next step

Analytics that keep personal data out

TapCub counts visits without cookies and never stores IP addresses, with a compliance centre for stricter regions.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics