Three common types
Code 128 for any text, and EAN-13 and UPC-A for retail product numbers.
Make Code 128, EAN-13 and UPC-A barcodes as SVG or PNG, with the retail check digit worked out or tested for you. Drawn in your browser as you type.
Code 128 takes letters, digits, spaces and punctuation. For EAN-13 type 12 digits, or all 13 to have the last one checked.
Choose Code 128 for any text or EAN-13 or UPC-A for a product number
Type the text or the digits
Download the barcode as SVG or PNG
A barcode is a number or a piece of text written as bars and spaces of different widths, so a scanner can read it in a fraction of a second. This page makes the three kinds you are most likely to need, and draws them as you type.
Code 128 writes any printable ASCII text: letters, digits, spaces and punctuation. It suits stock codes, asset tags, order numbers and tickets. Every symbol is eleven modules wide, and a check symbol worked out from the others is added before the stop, so a scanner can tell a damaged read from a good one. You do not see the check symbol; it is part of the bars.
Code 128 has three code sets. Set B holds the printable characters, one per symbol, and set C holds two digits per symbol, so a long run of digits takes half the width. Switching costs a symbol, so this page uses set C only where it makes the code shorter overall: for four or more digits at the start or end, six or more in the middle, or a code that is all digits. Set A, for control characters, is not used, and neither are the GS1 function codes that a GS1-128 label needs.
EAN-13 is the 13 digit number on most retail products, and UPC-A the 12 digit one common in North America. Each ends in a check digit worked out from the others, as GS1 describes. Type the number without its last digit and the check digit is added. Type all of it and the check digit is tested: if it is wrong, the page says what it should be, which is how a mistyped digit is caught before a label is printed.
Shop scanners look these numbers up in the seller’s product list, and GS1 issues them to companies. A number you invent will still scan, but a shop or marketplace may not accept it.
Download SVG for print. It is drawn in whole modules and stays sharp at any size. PNG is drawn at the bar width you pick; for print, choose 4 or 6 pixels a module. Leave the white margin either side of the bars, the quiet zone, in place: a scanner needs it to find where the code starts.
Everything runs in your browser. For a code a phone camera reads, use the QR code generator.
Code 128 for any text, and EAN-13 and UPC-A for retail product numbers.
Left off, the retail check digit is added; typed in, it is tested and a wrong one is named.
SVG stays sharp at any print size; PNG drops into a document or a label app.
Nothing uploaded: open the Network panel while it runs and check.
No daily limits or watermarks: free batches take up to 20 images.
Works offline: once the page has loaded, on any current browser.
Code 128 for anything of your own: stock codes, asset tags, order numbers, tickets. EAN-13 or UPC-A only for a product number you have been given, because shop scanners look those numbers up.
A made-up number scans, but shops and marketplaces expect the number to be registered to your company. GS1, which runs the system, issues those numbers. This page draws a number you already have.
The last digit of an EAN-13 or UPC-A, worked out from the others with weights of 3 and 1 as GS1 describes. Type the number without it to have it added, or with it to have it tested, which catches a mistyped digit.
No. The bars are worked out in your browser as you type, and nothing you enter leaves the page.