Create Code 128, EAN-13, UPC-A, Code 39, ITF-14 and other barcodes with automatic check digits, and download them as PNG or vector SVG.
Initializing in your browser…
Make QR codes for links, Wi-Fi, contacts, events and payments as you type, check that each one scans, and download it as PNG or SVG.
Generate colour palettes from one base colour, with tints and shades, contrast and colour-blindness checks, and CSS, Tailwind or JSON export.
Hash text or files with MD5, SHA-1, SHA-256 or SHA-512 as you type, create HMAC signatures, and check a download against its published digest.
A new product needs an EAN-13 barcode, and you have the 12-digit number from your GS1 allocation but not the final check digit.
EAN-13, first 12 digits
590123412345
Result
Encoding 5901234123457 (check digit 7 added) Checked: the bars match the ISO/IEC 15420 pattern for 5901234123457 exactly Narrowest bar 2 pixels Quiet zone 23.0 modules left and 7.0 right (11 and 7 required by GS1)
The check digit comes from the GS1 rule: counting from the right of the 12 digits, every other digit is multiplied by 3 and the rest by 1, giving a total of 83, and 7 is the digit that brings it to the next multiple of ten, 90. The barcode is drawn with 2 pixels per module, and the margins are set in modules so they meet the GS1 minimum of 11 on the left and 7 on the right; the left side shows more because the first digit, 5, is printed in that margin. The tool then reads the bars back from the image and confirms they are exactly the pattern the standard gives for 5901234123457. For the printed packaging, download the SVG.
Create barcodes in more than 20 formats, including Code 128, EAN-13, UPC-A, Code 39 and ITF-14, and download them as PNG or vector SVG. Check digits are calculated for you, the blank margin each standard requires is added automatically, and retail barcodes are read back from the image to confirm the bars are right.
A linear barcode stores a short value as a row of dark bars and light spaces whose widths are multiples of one narrow unit, called a module. Pick a format, type the value, and the barcode appears at once. Code 128 is the usual choice for internal labels because it takes any letters, numbers and symbols and stays compact. Code 39 is older and only takes capitals, digits and a few symbols, but almost every scanner reads it. EAN-13 and UPC-A are the retail product codes printed on packaging, EAN-8 and UPC-E are their short forms for small packs, ITF-14 marks shipping cartons, and Codabar, MSI and Pharmacode still turn up in libraries, warehouses and pharmacies.
Retail codes end in a check digit that scanners use to catch misreads. Type the first 12 digits of an EAN-13 (or 11 of a UPC-A, 7 of an EAN-8, 13 of an ITF-14) and the tool calculates and appends the check digit with the GS1 modulo 10 rule, and it shows the full value a scanner will report. If you type the check digit yourself and it is wrong, the tool tells you the correct one instead of printing a code that will be rejected at the till.
Scanners also need a blank margin, the quiet zone, on each side of the bars to find where the code starts. The standards specify it in modules, not pixels: GS1 requires 11 modules on the left of an EAN-13 and 7 on the right, and Code 128 needs 10 on each side. The tool sizes the margin from the bar width so it stays correct at any size. For EAN-13, EAN-8 and UPC-A it then reads a row of pixels from the finished image and compares the bars with the pattern ISO/IEC 15420 defines for that number; the green check under the barcode confirms they match exactly and reports the measured quiet zone and bar width.
For printing, a bar width of at least 2 pixels per module keeps bars crisp, and the SVG download is drawn with vector rectangles, so it scales to any size in design software without blurring. Under Size and colours you can set the bar width, height and text size, hide the human-readable digits, and change colours. Keep dark bars on a light background: scanners use red light, so red or pale bars, low contrast and light-on-dark barcodes often fail, and the tool warns about these.
Batch mode turns a list of values, one per line, into a ZIP of PNG files, which is handy for shelf labels or an inventory. Each line uses the selected format, or a line can start with a format and a comma, such as EAN13, to choose its own. Lines that cannot be encoded are listed with the reason. Everything runs in your browser.
Enter the 12 digits of your EAN-13 from your GS1 allocation, let the tool add the check digit, and download an SVG for the packaging designer.
Turn a list of item numbers into Code 128 labels in Batch mode and print them on sticker sheets.
Create ITF-14 codes for outer cases from the product's GTIN, with the check digit calculated.
Generate Codabar or Code 39 codes for systems that expect them, and test them with your scanner before printing a batch.
For products sold in shops, EAN-13 (or UPC-A in North America) with a number from GS1. For your own labels, Code 128, which encodes any text compactly. For shipping cartons, ITF-14. Use another format only when a system specifically requires it.
No. For EAN-13, EAN-8, UPC-A and ITF-14 you can type the number without its last digit and the tool calculates it. If you include a check digit that is wrong, it shows the correct one.
You can generate the barcode for any number, but codes for products sold in shops must come from GS1, which issues company prefixes. A made-up number may clash with another product.
The usual causes are too little blank space around it, bars printed too small or blurred, low contrast, or light bars on a dark background. Keep the quiet zone clear, use at least 2 pixels per module, print dark bars on white, and check the warnings under the preview.
SVG for print and design work, because it is vector and stays sharp at any size. PNG for screens, documents and label software that needs an image.
The blank margin on each side of the bars. Scanners need it to find where the code begins and ends. Its width is set by each standard in modules, which is why the tool adjusts it when you change the bar width.
Conversions run on your device in JavaScript. The values you enter are never sent over the network.