Free tool · Trade and codes

Barcode and QR code generator

Product barcodes at GS1 print sizes, labels and QR codes, as SVG or PNG.

  • Works for any country
  • No sign-up
  • Runs in your browser
  • Facts verified
Make a

Type 12 digits and the check digit is added, or all 13 to check it.

X is the narrow bar. GS1 allows 80% to 200% for scanning at the till.

EAN-13 and UPC-A print sizes
SizeXWidth with quiet zonesBar height
80%0.26429.83 mm18.28 mm
100%0.33037.29 mm22.85 mm
150%0.49555.94 mm34.28 mm
200%0.66074.58 mm45.70 mm

EAN-13 barcode

8907654321012

Check digit
2
Size with clear space
37.29 mm × 25.82 mm
Narrow bar (X)
0.330 mm · 100%

    You need GTINs from your national GS1 office to sell through shops. This tool draws the barcode for a number you already have; it does not issue numbers.

    An estimate to help you plan. Nothing you type is uploaded.

    In short

    An EAN-13 barcode carries a 13-digit GTIN whose last digit is a GS1 check digit: multiply the first 12 digits by 1 and 3 in turn, add them up, and the check digit brings the sum to the next multiple of 10. For 890765432101 the products add up to 98, so the check digit is 2 and the barcode reads 8907654321012. GS1 allows 80% to 200% of nominal size, where an EAN-13 is 37.29 mm wide with its margins. This tool draws EAN-13, UPC-A, Code 128 and QR codes.

    Also called: Barcode generator, QR code generator, EAN-13 barcode generator, UPC barcode generator, UPI QR code generator, Code 128 barcode generator.

    How it works

    Pick the kind of code and type what it should hold.

    • EAN-13 and UPC-A: type the number without its last digit and the GS1 check digit is added, or type the whole number to check it. Pick a size from 80% to 200%; the barcode keeps GS1’s quiet zones (11 and 7 narrow bars wide for EAN-13, 9 each side for UPC-A).
    • Code 128: any letters, digits and common symbols, for your own labels. Long runs of digits are packed two to a pattern, so long numbers stay short. It keeps 10 narrow bars of clear space each side.
    • QR code: a web address or text, a contact card, a Wi-Fi network, a UPI payment request (India, rupees) or a SEPA credit transfer (euro). It uses error correction level M and a margin of four modules.
    • What the UPI code holds: one upi://pay link with your UPI ID (pa), the payee name (pn), the amount if you type one (am, two decimals), the currency INR (cu) and your note if you add one (tn), for example upi://pay?pa=kaveri@examplebank&pn=Kaveri%20Agencies&am=1250.00&cu=INR&tn=Bill%20482. It adds no merchant code or signature.

    The check digit, both ways: to make one, weight the digits 1, 3, 1, 3 … from the left, add up, and take the difference to the next multiple of 10. To check a full number, weight all 13 digits 1, 3, … 1 and the sum must end in 0.

    The common mistake: scaling a barcode in a page-layout program after download, which changes the bar widths and the quiet zones, or printing it below 80%. Choose the size here and keep the SVG at the size it carries. The other is cropping the clear margins, which stops scanners finding the code.

    Download the SVG for print: it carries its size in millimetres. The PNG is drawn at about 600 dpi for that size.

    Worked example

    Kaveri Agencies, Vijayawada, has the 12-digit number 890765432101 for a 500 g pack of filter coffee (made up for this example). GS1’s method: multiply the digits by 1 and 3 in turn, add them up, and take the difference to the next multiple of 10.

    Digit 8 9 0 7 6 5 4 3 2 1 0 1
    × weight 1 3 1 3 1 3 1 3 1 3 1 3
    = 8 27 0 21 6 15 4 9 2 3 0 3

    The products add up to 98. The next multiple of 10 is 100, so the check digit is 2 and the full EAN-13 is 8907654321012. At 100% the barcode is 37.29 mm wide including its quiet zones, with bars 22.85 mm high.

    Size Narrow bar (X) Width with quiet zones Bar height
    80% 0.264 mm 29.83 mm 18.28 mm
    100% 0.330 mm 37.29 mm 22.85 mm
    150% 0.495 mm 55.94 mm 34.28 mm
    200% 0.660 mm 74.58 mm 45.70 mm

    Source: GS1 Australia EAN-13 fact sheet, Aug 2026, scaled from the 100% figures.

    Notes

    • Payments: the UPI and SEPA codes only build the payment request. They do not check that the UPI ID or the account exists. Scan the code with your own app before you print it.
    • SEPA codes follow EPC069-12: at most 331 bytes, a name of up to 70 characters and an amount from €0.01 to €999,999,999.99. An RF creditor reference is sent in its own field.
    • What this does not do: it does not issue GTINs, make GS1-128 labels with Application Identifiers, or make GS1 Digital Link codes.

    In MyRecords

    Items in MyRecords carry a barcode, and the till in Point of sale adds an item by scanning it, by code or by name, with the batch or serial asked for when an item needs one. Sales prints barcode labels, Inventory prints QR labels for warehouses, racks and batches, and in India an exact-amount UPI QR from your own UPI ID prints on bills and unpaid invoices.

    Official sources

    Checked

    1. How to calculate a check digit manually, GTIN-8 to GTIN-14 and SSCC (GS1 US)
    2. EAN-13 barcode fact sheet, sizes 80% to 200% and quiet zones (GS1 Australia, Aug 2026)at 100%, X = 0.33 mm, 31.35 mm wide plus 3.63 mm and 2.31 mm quiet zones, bars 22.85 mm high
    3. UPC-A barcode fact sheet (GS1 Australia, Aug 2026)quiet zones 2.97 mm each side at 100%
    4. GS1-128 barcode fact sheet, quiet zones of 10X (GS1 Australia, Oct 2026)
    5. QR code margin of four modules (Denso Wave, the inventor of the QR code)
    6. QR code error correction, level M restores 15% (Denso Wave)
    7. EPC069-12 v3.1, QR code guidelines for a SEPA credit transfer (European Payments Council, 19 Mar 2024)error correction M, at most version 13 and 331 bytes, version 002 makes the BIC optional within the EEA
    8. UPI linking specification, in NPCI Circular 18 of 2017 on bank compliances for the UPI merchant ecosystem (NPCI)NPCI's own copy on npci.org.in; your bank or UPI app has the final word on the format
    9. The upi://pay parameters pa, pn, mc, tr, tn, am and cu (Google Pay for India developer guide)Read 4 Nov 2026; it points to NPCI's circular for the full specification
    10. RFC 2426, vCard 3.0 (IETF)
    11. The wifi URI scheme, registered by the Wi-Fi Alliance (IANA)

    Who uses it, and for what

    • Product makersDraw an EAN-13 or UPC-A barcode from their GS1 number, with the check digit added.
    • Shop ownersMake a UPI payment QR code from their UPI ID, with a fixed amount if they want one.
    • WarehousesPrint Code 128 labels for bins and stock codes used only inside the business.
    • Cafes and officesMake QR codes for a website link, a contact card or the guest Wi-Fi.
    • Businesses in EuropeMake a SEPA credit transfer QR code in euros from the payee name, IBAN and amount.

    Questions

    Questions people ask

    Something else on your mind?

    Ask us anything about modules, a quote or moving across. A person from our team replies.

    Ask a question
    01How do I make an EAN-13 barcode for my product?

    Type the 12 digits your GS1 office gave you (or all 13 to check one), pick a size from 80% to 200%, and download the SVG for print or the PNG for screens. The tool adds the GS1 check digit and keeps the clear margins. For products sold through shops the number itself must be licensed from GS1; a made-up number can clash with someone else's product.

    02How is the EAN-13 check digit calculated?

    Multiply the 12 digits alternately by 1 and 3 starting from the left, add the products, and subtract the total from the next multiple of 10 (GS1's method). For 890765432101 the sum is 98, so the check digit is 2. If the sum already ends in 0 the check digit is 0. UPC-A uses the same method on 11 digits, starting with weight 3.

    03How do I create a UPI QR code for my shop?

    Pick UPI payment, type your UPI ID (for example yourshop@examplebank) and your name, and an amount if you want a fixed one. The tool builds a upi://pay link with those fields and draws it as a QR code. Scan it with your own UPI app first to check the payee name and the amount; a merchant code or signed code comes from your bank or payment provider.

    04Can I make up my own EAN-13 or UPC-A numbers?

    Not for products sold through shops. Retailers expect GTINs licensed from your national GS1 office, and a made-up number can clash with someone else's product. For labels used only inside your business, such as bins or stock codes, use Code 128 or a QR code.

    05EAN-13 or UPC-A?

    UPC-A carries a 12-digit GTIN-12 and EAN-13 a 13-digit GTIN-13. Use the one that matches the numbers your GS1 office gave you. Both use the same bar sizes and the same check digit method.

    06What size should I print?

    GS1 allows 80% to 200% for scanning at the till. At 100% the narrow bar is 0.330 mm, an EAN-13 is 37.29 mm wide with its quiet zones and the bars are 22.85 mm high. Keep the clear margins on both sides, and download the SVG so the size stays exact.

    07What is the difference between a barcode and a QR code?

    A barcode such as EAN-13 or Code 128 holds a short number or text in one dimension and is read by a line scanner at a till. A QR code holds up to a few hundred characters in a square grid, with error correction so it still reads when partly damaged, and any phone camera reads it. Use barcodes for products and labels, QR codes for links, contacts, Wi-Fi and payments.

    08Is the payment QR code safe to print?

    The tool only builds the text inside the code; nothing is sent anywhere. Before you print it, scan it with your own banking or UPI app and check the payee name, the IBAN or UPI ID and the amount. Merchant UPI codes with a merchant code or signature come from your bank or payment provider.

    09Which phones read the contact card and Wi-Fi codes?

    The contact card is a vCard 3.0 and the Wi-Fi code uses the WIFI format registered by the Wi-Fi Alliance; most phone cameras read both. Test with the phones your customers or guests use.

    10Is anything uploaded?

    No. The codes are drawn in your browser, and the downloads are made there too.

    Any business, anywhere

    One system for any business, anywhere.

    Accounting, sales, stock, HR and payroll, CRM, support and an AI Assistant in one place. It works in any country and currency, and we customise it to the way your business runs.

    See every appWorks worldwide

    Free, no obligation

    Request a quote

    • For the apps and modules you pick
    • At our best price, in writing
    • Your questions, answered by our team