📚 Educational Guide

Barcode Generator: Complete Guide to Create Barcodes

Published: November 7, 2026
Author: admin
Editorial: Verified Educational Content
✓ Peer Reviewed
barcode-generator

Barcodes are everywhere: on product packs in shops, on shipping cartons, on warehouse shelves, and on library books. If you sell products, manage stock, or print labels, you will sooner or later need to create one. In this guide you will learn what a barcode is, which barcode format to choose, and how to create and download a barcode image in seconds with the free UtiliVox Barcode Generator.

What Is a Barcode?

A barcode is a pattern of vertical bars and spaces that stores data (numbers or text) in a form a scanner can read quickly. When a scanner reads the pattern, it converts the bars back into the original value and sends it to a computer, a point-of-sale system, or an inventory app. This makes checkout, stock counting, and parcel tracking faster and far less error-prone than typing values by hand.

Each barcode format (also called a symbology) has its own rules about which characters it can hold, how long the value can be, and where it is used. Choosing the right format is the most important step.

About the UtiliVox Barcode Generator

The UtiliVox Barcode Generator is a free, browser-based tool that creates barcode images for retail products, business labels, shipping, and inventory. You type your value, pick a format, adjust the look, and download the result. The image is generated directly in your browser, and you do not need an API subscription.

Key features

  • 8 barcode formats: Code 128, EAN-13, UPC-A, EAN-8, Code 39, ITF-14, Codabar, and MSI.
  • Adjustable bar width: Small, Medium (default), Large, or Extra Large.
  • Adjustable height: 40, 60, 80 (default), 100, or 120 px.
  • Custom colors: pick your own line color and background color.
  • Show text below barcode: turn the human-readable number on or off.
  • PNG and SVG download: use PNG for web and quick sharing, SVG for sharp printing at any size.
  • Copy Value button: copy the data you entered with one click.
  • Live preview: see the barcode after you click “Generate Barcode”.

How to Create a Barcode (Step by Step)

  1. Open the tool using the button above.
  2. Enter your text or numbers in the value field.
  3. Choose a barcode format that matches your use (see the table below).
  4. Set the bar width and height. Larger bars and taller codes are easier to scan.
  5. Pick colors. Dark bars on a light background work best.
  6. Tick “Show text below barcode” if you want the number printed under the bars.
  7. Click “Generate Barcode” to see the preview.
  8. Download as PNG or SVG and use it in your design, label, or document.
Tip: before you print hundreds of labels, print one test label and scan it with the actual scanner or phone app you will use.

Barcode Formats Supported by the Tool

FormatWhat it acceptsBest used for
Code 128Letters, numbers, and many special charactersGeneral purpose: internal labels, inventory, tracking codes, asset tags. The best choice if you are unsure.
EAN-1313 digitsRetail products sold internationally.
UPC-A12 digitsRetail products in the US and Canada.
EAN-88 digitsSmall products where a full EAN-13 would not fit.
Code 39Uppercase letters and numbersSimple labels, ID badges, and industrial or government use.
ITF-1414 digitsShipping cartons and outer packaging.
CodabarNumbers and selected symbolsOlder systems such as libraries, blood banks, and parcel labels.
MSINumbersInventory and warehouse shelf labeling.

QR codes are not part of this tool. The site has a separate QR Code Generator for that.

Which Barcode Format Should You Choose?

Your situationRecommended format
Internal stock codes, SKUs with letters, asset tagsCode 128
Selling products in shops or online marketplaces worldwideEAN-13
Selling products mainly in the US or CanadaUPC-A
Very small packaging (cosmetics, candy, small items)EAN-8
Cartons, boxes, and pallets going to distributorsITF-14
Simple uppercase codes for badges or documentsCode 39
Matching an older system that already uses itCodabar or MSI

UPC-A vs EAN-13: What Is the Difference?

FeatureUPC-AEAN-13
Number of digits1213
Common regionUnited States and CanadaInternational
Used forRetail productsRetail products
Last digitCheck digitCheck digit

Most modern scanners can read both. If you sell in several countries, EAN-13 is usually the safer choice.

Understanding the Check Digit

EAN, UPC, and ITF-14 codes end with a check digit. It is calculated from the other digits and lets scanners catch typing mistakes. For EAN-13, the calculation works like this:

  1. Take the first 12 digits.
  2. Multiply them alternately by 1 and 3, starting with 1.
  3. Add all the results together.
  4. The check digit is the number that brings the total up to the next multiple of 10.

Worked example (EAN-13)

Digit position123456789101112
Digit590123412345
Weight131313131313
Result52703294329415

The total is 83. The next multiple of 10 is 90, so the check digit is 7, and the full code is 5901234123457.

Example numbers you can try

FormatExample valueLength
EAN-13590123412345713 digits
UPC-A03600029145212 digits
EAN-8963850748 digits
ITF-141001234567890214 digits
Code 128UTILIVOX-2026Any text
Code 39PRODUCT123Uppercase and numbers

These are only sample numbers for testing. Do not use them on real products.

Customization Options Explained

OptionChoicesAdvice
Bar WidthSmall, Medium (default), Large, Extra LargeUse a larger width for small printers, long values, or when scanning from a distance.
Barcode Height40, 60, 80 (default), 100, 120 pxTaller bars are easier to scan, especially when the scanner is held at an angle.
Line ColorAny colorChoose a dark color such as black or dark blue.
Background ColorAny colorChoose white or another very light color for strong contrast.
Show text below barcodeOn / OffKeep it on for retail labels so people can read the number if scanning fails.

PNG or SVG: Which Download Should You Use?

FeaturePNGSVG
TypePixel imageVector image
Quality when enlargedCan become blurryStays sharp at any size
Best forWebsites, social posts, documents, quick sharingProfessional printing, packaging, and design software
EditingLimitedCan be edited in vector tools

As a rule, download SVG if the barcode will be printed or resized, and PNG if you just need to place it on a screen.

Where Are Barcodes Used?

Use caseHow barcodes help
Retail and online storesFast checkout and accurate product identification.
Inventory and warehousesQuick stock counts and fewer picking mistakes.
Shipping and logisticsTracking cartons and parcels from sender to receiver.
Events and ID cardsQuick check-in and attendance records.
Libraries and officesManaging books, files, and equipment.
Small businesses and home sellersLabeling products and tracking stock without expensive software.

Tips for a Barcode That Scans Every Time

  • Keep strong contrast: dark bars on a light background. Avoid light colors on white and avoid reversed (white on black) barcodes.
  • Leave a quiet zone: keep blank space on the left and right of the bars so the scanner can find where the code starts and ends.
  • Do not stretch or squash the image: resize it proportionally.
  • Use enough size: if a barcode is too small or the print is blurry, scanners may fail.
  • Print clearly: a low-quality printer or a smudged label causes read errors.
  • Test before bulk printing: scan one printed copy with your real scanner or phone.
  • Match the format to the data: a 12-digit code will not work as EAN-13, and lowercase letters will not work in Code 39.

Common Problems and Quick Fixes

ProblemLikely causeFix
Barcode will not generateWrong number of digits for the chosen formatCheck the length: UPC-A 12, EAN-13 13, EAN-8 8, ITF-14 14.
Scanner does not read itLow contrast, too small, or poor printUse dark bars on white, increase bar width and height, reprint.
Scanner reads a different numberWrong format selectedConfirm the format matches what your system expects.
Image looks blurry when printedPNG enlarged too muchDownload the SVG version instead.
Letters not acceptedFormat only supports numbersSwitch to Code 128, which supports letters and symbols.

Important: Official Product Numbers Come From GS1

The UtiliVox Barcode Generator encodes whatever value you enter. It does not assign official product numbers and does not check whether a number is registered. If you want to sell products through major retailers or marketplaces that require official UPC or EAN codes, you need to obtain your identifiers through GS1 or an authorized organization. For internal use such as stock labels, asset tags, and tracking codes, you can use Code 128 with your own values.

Frequently Asked Questions (FAQs)

Is the barcode generator free to use?

Yes. You can enter your data, choose a format, click Generate Barcode, and download the image for free.

Which barcode formats does the tool support?

It supports Code 128, EAN-13, UPC-A, EAN-8, Code 39, ITF-14, Codabar, and MSI.

Which barcode format is best for general use?

Code 128 is the best general-purpose choice because it supports letters, numbers, and many special characters.

How do I make a UPC barcode for a US product?

Select UPC-A and enter a valid 12-digit value. Remember that official product codes for retail sale are issued through GS1.

What is the difference between UPC and EAN?

UPC-A has 12 digits and is common in the US and Canada. EAN-13 has 13 digits and is used internationally.

Can I download the barcode as PNG or SVG?

Yes. PNG and SVG downloads are available. SVG is scalable, which makes it better for printing.

Does this tool create QR codes?

No. This tool is for barcodes. UtiliVox has a separate QR Code Generator for QR codes.

Does the generator give me an official product number?

No. It only encodes the number you provide. Official product numbers (UPC and EAN) come from GS1 or an authorized organization.

Can I use the barcodes for commercial purposes?

Yes, as long as you have the rights to the data you encode and the identifier is valid for its purpose.

Can I change the barcode color and size?

Yes. You can choose the bar width, the height (40 to 120 px), the line color, and the background color. Keep strong contrast so the barcode scans properly.

Are my barcodes created in the browser?

Yes. The barcode image is generated directly in your browser.

How do I check that my barcode works?

Print a test copy and scan it with the scanner or phone app you plan to use. Also check contrast, size, and the blank space around the bars.

Final Thoughts

Creating a barcode no longer needs expensive software. With the right format, a clean high-contrast design, and a quick test scan, you can produce professional labels for products, shipping boxes, and inventory in minutes. Open the generator, enter your value, and download your barcode as PNG or SVG.

Disclaimer: This article is for general information. Barcode requirements differ between retailers, marketplaces, and countries, so always confirm the rules of the platform or business you are selling through. Official retail product numbers must be obtained from GS1 or an authorized organization.
UtiliVox Editorial Transparency

This guide was written and reviewed by the UtiliVox Technical & Mathematics Team. We strictly verify formulas, algorithms, and real-world examples to provide actionable knowledge you can rely on.

ADVERTISEMENT
🚀

Ready to Get Started?

Explore 100+ free online tools and make your work easier today.

Browse All Tools →
đŸ’ģ