Barcode Generator
Choose a type of barcode, type the text or digits, and the barcode is drawn at once. Code 128 holds letters, digits and symbols, while EAN-13, UPC-A and EAN-8 hold product numbers and get their check digit added or verified. Adjust the size and download an SVG for print or a PNG for screens. Everything runs in your browser.
Letters, digits and symbols, up to 80 characters.
495 x 145 px, 145 modules wide plus white space on both sides
This draws the bars for a number you already have. It does not give you the right to use a product number: shops usually need a GTIN issued through GS1, the organization that manages them. Print the SVG for the sharpest result, keep the white space around the bars, use dark bars on a light background, and scan a test print before you print many. Everything runs in your browser.
Related Tools
[6 suggestions]QR Code Generator
Make a QR code for a link, text, Wi-Fi login, email, phone number or contact card, and download it as SVG or PNG.
Writing & ContentCheck Digit Calculator: EAN-13, UPC-A, ISBN and GTIN
Calculate the check digit of an EAN-13, UPC-A, EAN-8, GTIN-14, SSCC-18, ISBN-10 or ISBN-13, validate a full code and convert between ISBN-10 and ISBN-13.
Developer & WebLuhn Algorithm Validator and Check Digit Generator
Check whether a card, IMEI or ID number passes the Luhn check, see every step, or add the correct check digit to a number.
Developer & WebSVG to PNG Converter
Convert SVG code or a file to a PNG, JPEG or WebP at 1x to 4x or a custom width, with a transparent or colored background.
Format ConversionRandom String Generator: Letters, Digits, Symbols or Your Own
Make random strings from letters, digits, symbols or your own characters, with look-alikes left out, no repeats if you want, and the bits of randomness shown.
Developer & WebUUID Generator
Generate cryptographically random UUID v4 identifiers instantly, one or in bulk.
Developer & WebAbout the Barcode Generator
A linear barcode stores characters as bars and spaces of different widths. Pick the type your scanner or retailer expects. Code 128 is common for shipping labels, asset tags and internal codes. It has three character sets, and this tool chooses between them to make the shortest symbol; long runs of digits are packed two to a symbol, so numbers take less room than letters. It adds the check symbol that scanners use to reject misreads. EAN-13 is the 13 digit product barcode used in shops around the world, UPC-A is the 12 digit form common in North America, and EAN-8 is a short form for small packs. Their last digit is a check digit: add the digits with weights of 3 and 1 alternating from the right, then take what is needed to reach the next multiple of ten. Type one digit less and the tool adds it, or type all of them and it checks the last one. Making an image of a barcode is not the same as owning a product number. Shops and online marketplaces usually require numbers issued through GS1, so get your number first and then draw it here. For printing, use the SVG, which stays sharp at any size, keep the blank margin on both sides, use black bars on white, avoid shrinking the symbol too far, and scan a printed sample with the equipment that will read it. For a link or a longer text, a QR code holds far more. Everything runs in your browser and nothing you type is uploaded.
Which barcode type should I use?▾
For your own labels, stock or shipping references, Code 128 is the usual choice. For products sold in shops, use the number you were issued: EAN-13 in most countries, UPC-A in North America, EAN-8 for very small packs.
Do I need to buy a barcode number?▾
For retail sale, usually yes: retailers expect a number issued through GS1. This tool draws the bars for a number, it does not issue or register one. For internal use you can choose your own codes.
How is the check digit calculated?▾
Going from the rightmost data digit to the left, multiply the digits by 3, 1, 3, 1 and so on, add the results, and take the amount needed to reach a multiple of 10. For 590123412345 the check digit is 7.
SVG or PNG, which should I download?▾
SVG for printing and design work, because it scales without blurring. PNG for documents or systems that only take pictures; set the bar width high enough before you download it.
Why will my barcode not scan?▾
Common causes are bars that are too thin for the printer, no white margin, low contrast, colored backgrounds, resizing a PNG, or a scanner not set to read that type. Print larger and test again.
Is what I type uploaded?▾
No. The barcode is drawn in your browser, and what you type is not sent anywhere or stored.