Barcode Generator

Create a barcode for Code 128, EAN-13, UPC-A, Code 39, ITF-14 and more. Check digits are calculated and validated for you. Download PNG or SVG, make a whole list as a ZIP, or print a sheet of labels. Everything is drawn in your browser and nothing is uploaded.

Barcode

Barcode type

Look

3 px
90 px
16 px
10 px

Your barcode

Preview of the barcode
Download PNG Download SVG
Format
—
Encoded
—
Check digit
—
Image size
—

Test before you print. Scan the screen or a printout with the scanner you will really use, and check that the number it reads matches.

The barcode is drawn in your browser. Nothing you type is uploaded or saved.

Many barcodes and label sheets

One value per line, up to 500. The type, size and colours above apply to every line. Fix lines marked in red or they are skipped.
    Image format in the ZIP

    Printable label sheet (PDF)

    Adjust the grid

    How to make a barcode online

    This free barcode generator draws Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14, ITF, Codabar and GS1-128 in your browser, so the numbers you type are never uploaded. The preview updates as you type.

    1. Pick the barcode type. If you are not sure, Code 128 handles any text and is the safe choice for inventory, orders and shipping.
    2. Type the value. For EAN, UPC and ITF-14 leave off the last digit and the tool adds it; the status line shows the check digit it used.
    3. Set the bar width, height and colours. A bar width of 3 px or more gives a sharp PNG.
    4. Download a PNG for documents and screens or an SVG for print, or open the batch section below to make many at once.

    Dark bars on a white background scan best. The tool warns you when the contrast is low or the colours are inverted.

    Which barcode type should I use?

    TypeWhat it holdsTypical use
    Code 128Any ASCII text, compact for digitsInventory, order numbers, shipping labels
    EAN-1313 digitsRetail products outside North America, books (ISBN)
    UPC-A12 digitsRetail products in the US and Canada
    EAN-88 digitsVery small packs
    ITF-1414 digitsCartons and cases
    Code 39A to Z, 0 to 9 and a few symbolsID badges, parts, older systems
    CodabarDigits and a few symbolsLibraries, labs, parcel services
    GS1-128Code 128 with data fields such as expiry date and batchPallet and logistics labels

    For anything you only use inside your own business, Code 128 is the better pick. It is shorter than Code 39 for the same data and every scanner reads it. Choose an EAN or UPC only when the product goes through a shop's checkout.

    How is the check digit calculated?

    EAN-13, EAN-8, UPC-A and ITF-14 all end in a check digit that lets a scanner catch a misread. Starting from the right, multiply the digits by 3, 1, 3, 1 and so on, add them up, and the check digit is whatever brings the total up to a multiple of 10.

    590123412345 → 5×3 + 4×1 + 3×3 + 2×1 + 1×3 + 4×1 + 3×3 + 2×1 + 1×3 + 0×1 + 9×3 + 5×1 = 83 → check digit 7

    So the full number is 5901234123457. If you type 13 digits and the last one is wrong, the tool shows the correct digit and a button to swap it in. Code 128 has its own check symbol (modulo 103) that is added inside the bars and never shown as text. Code 39 only uses a check character if you switch the option on.

    One Code 39 quirk: the symbols $ / + % can combine with the next letter into a "full ASCII" character on scanners that have that mode switched on, so a value like A+B may be read as Ab. Keep those four symbols out of Code 39 values, or use Code 128.

    Can I use an EAN or UPC I generated myself?

    The barcode will scan, but the number must be yours to use. Shops and marketplaces check EAN and UPC numbers against the GS1 database, and a number you invented may already belong to another product. If you sell through retailers, get your numbers from GS1 in your country.

    For stock you track yourself, two options avoid the problem. Use Code 128 with your own SKU. Or, if you want an EAN-13 look, the prefixes 20 to 29 are reserved for in-store use and never collide with real products. Printing a retail EAN with your own made-up digits is the one thing to avoid.

    How big should a printed barcode be?

    An EAN-13 at 100% magnification is about 37 × 26 mm including its blank margins, and the standard allows anything from 80% to 200%. The narrowest bar at 100% is 0.33 mm, so the smallest allowed is about 0.26 mm.

    Bar width in the toolPrinted at 300 dpiPrinted at 600 dpi
    2 px0.17 mm (too thin)0.08 mm (too thin)
    3 px0.25 mm (borderline)0.13 mm (too thin)
    4 px0.34 mm (good)0.17 mm (too thin)
    8 px0.68 mm (large)0.34 mm (good)

    To stay in range when you print a PNG, use the SVG or the label sheet PDF, where size is set in millimetres. The sheet preview shows the real width of the narrowest bar and warns when it falls under 0.25 mm.

    How do I make many barcodes or a sheet of labels?

    Paste one value per line in the batch box. Every line uses the type and style chosen above, and lines with a problem are listed in red with the reason. From there you can:

    Print the PDF at 100% (turn off "fit to page") or the labels will drift out of alignment. Try a sheet on plain paper and hold it against a label sheet before you use the real stock. Printers vary by a millimetre or two, and the margin fields let you correct that.

    Why won't my barcode scan?

    To check a code you have made, scan it with the QR and barcode scanner on this site, which also reads images you upload.

    Frequently asked questions

    How do I generate an EAN-13 barcode?

    Choose EAN-13, type the first 12 digits and the thirteenth (check) digit is added for you. For 590123412345 the result is 5901234123457. Download it as PNG or SVG. If you type all 13 digits and the last one is wrong, the tool tells you the right digit.

    How is the barcode check digit calculated?

    For EAN and UPC, work from the right: multiply every digit by 3, 1, 3, 1 and so on, add the results, and take the amount needed to reach the next multiple of 10. For 590123412345 the sum is 83, so the check digit is 7. Code 128 uses a different method (modulo 103) and the tool shows it.

    Is this barcode generator free, and do I need to sign up?

    Yes, it is free with no account, watermark or limit on downloads. The barcodes are drawn in your browser, so the numbers you type never leave your device.

    Can I sell products with an EAN or UPC I made here?

    The symbol will scan, but the number has to be one you own. Retailers and marketplaces such as Amazon expect numbers issued through GS1, and a made-up number can clash with someone else's product. For stock you only track inside your own business, use Code 128, or the EAN prefixes 20 to 29, which are reserved for in-store use.

    Which barcode type should I use?

    Use EAN-13 or UPC-A for retail packaging, Code 128 for inventory, shipping and order numbers, ITF-14 for cartons, and GS1-128 when you need expiry dates or batch numbers on a label. Code 39 and Codabar are mostly for older systems, badges and libraries.

    How big should a printed barcode be?

    An EAN-13 at 100% is about 37 × 26 mm including its margins, and the standard allows 80% to 200%. Keep the bars at least 0.26 mm wide for EAN and UPC. The label sheet tool shows the narrowest bar in millimetres and warns when it gets too thin.

    How do I print a sheet of barcode labels?

    Enter your values one per line, pick a sheet layout such as A4 3 × 8 or US Letter 3 × 10, and download the PDF. Print it at 100% scale (not 'fit to page') on label paper, and test one sheet on plain paper first.

    Why won't my barcode scan?

    Check contrast first: dark bars on a light background work best, and inverted colours often fail. Then check the margins on both sides, the printed size, and that the scanner has the type switched on. A glossy surface or a curved bottle can also cause reflections.