Online Barcode Generator: CODE128, EAN-13, UPC & More (2026)
This guide compares CODE128, EAN-13, EAN-8, UPC-A, CODE39, and ITF-14; explains how to choose a symbology, what GS1 and GTIN requirements mean for retail use, how 1D barcodes differ from QR codes, and when PNG or SVG may be appropriate.

Table of Contents
What is a barcode, and how does it work?
A barcode is a machine-readable way to represent data. A 1D linear barcode, such as those on many retail products, encodes a number or short text value as bars and spaces of varying widths. A laser scanner or image sensor reads the pattern and decodes it according to the barcode symbology.
Many 1D symbologies represent data through the sequence and relative widths of bars and spaces. Scan reliability also depends on factors such as the symbol's dimensions, quiet zones, contrast, print quality, and reader compatibility. Scaling an SVG avoids raster pixelation, but it does not make a barcode scannable at every size; follow the applicable specifications and test the output.
The first barcode concepts date to the late 1940s. The first retail scan of a UPC barcode took place in 1974, and the EAN system was introduced later in the 1970s. These systems developed into GS1 standards used to identify trade items across many industries.
Beyond retail, barcodes are used on airline boarding passes, library books, pharmaceutical packaging, hospital wristbands, warehouse shelving, postal parcels, and manufacturing lines. The appropriate format depends on the data being encoded, the scanning environment, and the requirements of the relevant industry or trading partner.
Six common 1D barcode formats and when to use them
Barcode formats differ in the characters they can encode, how much space they need, and which systems recognize them. The table compares the six formats listed for the omnikitbolt Barcode Generator:
| Format | Data encoded | Primary use | Notes |
|---|---|---|---|
| CODE128 | ASCII characters; Code Set C encodes digit pairs | General-purpose labels, logistics, shipping, and inventory | Can be compact for some values; width depends on the data and encoding. |
| EAN-13 | 13-digit GTIN, including check digit | Retail product identification in many markets | Use a GTIN that meets applicable GS1 and retailer requirements. |
| EAN-8 | 8-digit GTIN, including check digit | Retail packaging where space is limited | Allocation and acceptance requirements vary; confirm the applicable rules. |
| UPC-A | 12-digit GTIN, including check digit | Retail product identification, commonly in the United States and Canada | Can be represented as a leading-zero GTIN-13; check the format required by your retailer. |
| CODE39 | A-Z, 0-9, space, and selected symbols | Internal asset labels and some industrial applications | Basic set uses uppercase letters; an optional Mod 43 check digit is available. |
| ITF-14 | 14-digit GTIN, including indicator and check digit | Shipping cases and other outer trade-item packaging | GS1-128 can carry additional logistics data when needed. |
If you are unsure which format to use, start with the requirements of your label, scanning system, or trading partner. CODE128 is flexible for many internal labels and custom alphanumeric references when the reader supports it. For retail products, use the symbol and valid GTIN required by the retailer or partner; EAN-13 and UPC-A are common choices, but requirements vary by market and channel.
1D barcodes vs. QR codes: which do you need?
These formats work differently. The right choice depends on what you need to encode and which scanners or devices will read it.
A 1D barcode such as CODE128, EAN-13, UPC-A, or CODE39 encodes data in a linear pattern of bars and spaces. It is often used for short identifiers such as a product number, SKU, or serial number. The allowed characters and resulting width depend on the symbology and value. A scanner must support the format and be able to read the printed symbol at its intended size.
A QR code encodes data in a two-dimensional grid and can hold more information than many common 1D formats. Its capacity depends on the code version, error-correction level, and data type. Phone cameras and compatible 2D scanners can read QR codes, subject to the device, display or print quality, and scanning software.
| Feature | 1D Barcode (CODE128, EAN, UPC) | QR Code |
|---|---|---|
| Data capacity | Usually suited to short identifiers; capacity varies by symbology. | Can store more data; capacity varies by version and error-correction level. |
| Scanner hardware | Laser or image-based scanner compatible with the format | Phone camera or 2D imager with QR support |
| Scan angle | Must be presented in an orientation the scanner can read. | Often readable from different orientations; scanner and image quality matter. |
| Best for | Retail identification, inventory, logistics, and short labels | URLs, text, and other information shared with mobile devices |
| Common roles | Product identification, point of sale, inventory, and logistics; requirements vary. | Links and data sharing where the reader supports QR codes |
Use a QR code to share a website link, Wi-Fi details, or other information with a compatible phone or scanner. For a product label, warehouse inventory, or internal asset, choose the 1D format required by the scanning system. A code's appearance alone does not guarantee that a retailer or software system will accept it; check the relevant requirements.
Create a barcode in the format you need
Choose from CODE128, EAN-13, EAN-8, UPC-A, CODE39, and ITF-14. Select PNG or SVG for your intended use, then check the output against your printer or scanning-system requirements.
EAN-13 and UPC-A for retail: understanding GS1 and GTINs
A barcode generator can create an image from a number, but creating the image does not assign a product identifier or guarantee that a retailer will accept it. For commercial products, the number encoded in an EAN-13 or UPC-A barcode matters as much as the symbol itself.
GS1 maintains standards for identifiers used in trade. A GS1 Company Prefix may form part of a GTIN, but its length varies. A GTIN also includes an item reference and a check digit, with the allocation depending on the GTIN format and prefix length. A prefix is associated with a licensed GS1 member; it does not by itself identify where a product was made.
If you choose an arbitrary 13-digit number, its check digit may be valid even though the number has not been assigned to your product, or it may conflict with an existing identifier. A scanner reads the encoded number; the retailer's or trading partner's system determines what that number identifies. For commercial use, choose a GTIN that meets the requirements of the relevant retailer, marketplace, or supply-chain partner, and confirm the current rules before printing or listing a product.
When you may not need a retail GTIN: internal inventory systems, asset tagging, prototypes, and test labels may use an internal identifier when you control the database and scanners. CODE128 can be a flexible choice for internal codes. Mark test barcodes clearly and do not use an unassigned number as a commercial product identifier.
When you may need a GS1 GTIN: a retailer, marketplace, or supply-chain partner may require a GTIN or a GS1 identifier for product listings and inventory systems. Requirements and exemptions vary, so check the current rules for each channel rather than assuming one policy applies everywhere.
PNG vs. SVG: which format should you download?
For barcodes, the choice between PNG and SVG affects how the image scales and fits into a design or printing workflow. Neither format alone guarantees a successful scan; the final dimensions, quiet zones, contrast, and print quality matter too.
- SVG for flexible sizing. SVG is a vector format, so the artwork can be resized without raster pixelation. It can be useful for label and packaging designs, but the final barcode still needs to meet the required dimensions, quiet zones, contrast, and printer specifications. Some workflows require a different format, such as PDF or EPS, so check with the print provider.
- PNG for fixed-size use. PNG is a raster format with fixed pixel dimensions. It can work for websites, email templates, digital inventory systems, or on-screen documents when its resolution is suitable for the display size. Avoid resizing the image in ways that blur or distort the bars.
- Be careful when enlarging a PNG. Enlarging a small raster image can blur its edges and make it harder to scan. If you need a different size, export a new image at an appropriate resolution or use a vector version, then test the final output.
Before printing, check the required dimensions, quiet zones, contrast, resolution, and accepted file formats. SVG can help when resizing artwork, but no image format can guarantee that a barcode will scan; test a printed sample with the intended scanner.
How to generate a barcode online
- Open omnikitbolt.com/tools/barcode-generator in a browser and review the tool page for current instructions and requirements.
- Choose your barcode format. Select CODE128, EAN-13, EAN-8, UPC-A, CODE39, or ITF-14 if it is available. Use the format table above and check which symbologies your scanner or software supports.
- Enter your value. Type or paste a value compatible with the selected format. For EAN-13 or UPC-A, follow the tool's instructions on whether to include the check digit or have it calculated. Verify the number before using it commercially.
- Review the preview. Check that the displayed value is correct and that the barcode looks clear. If you have a compatible scanner, test the preview or a sample print to confirm it decodes to the expected value.
- Download PNG or SVG. Choose an available output format and a size suited to the intended use. Before a production run, check the printer or retailer specifications and test a printed sample with the intended scanner.
Where possible, scan a printed sample with the equipment that will be used in practice. Testing the final label can catch issues with size, contrast, quiet zones, or printing before you produce a larger batch.
Preview and export your barcode
Select an available PNG or SVG option, then check the value, dimensions, and scan result against your intended use.
Common barcode use cases: inventory, retail, shipping, and libraries
Barcodes are used for many tasks beyond retail checkout. Choose a format that is supported by the scanner, software, and organization that will use the label:
- Warehouse and inventory management. CODE128 can suit custom alphanumeric SKUs, such as PROD-A1234-BLK-L, when the inventory system and scanners support it. Choose a label size and output format that meet the printing requirements, then test a sample.
- Retail product labeling. EAN-13 and UPC-A are common formats for retail product identification. Use a GTIN that meets the retailer and marketplace requirements, and check their current specifications before adding the barcode image to a label design.
- Library book tracking. Libraries use barcode systems to connect physical items with catalog records. The appropriate symbology and identifier depend on the library management system; CODE39 or CODE128 may be options if the system supports them.
- Office and IT asset tagging. A CODE128 or CODE39 label can link equipment such as desktops, monitors, or projectors to an internal asset record when the scanning system supports that format. Use a unique identifier that matches the organization's inventory process.
- Shipping and logistics. ITF-14 is used for some outer cases and trade-item packaging. GS1-128 can encode additional logistics data, while parcel carriers may specify their own formats and label requirements. Follow the instructions for the shipment or partner.
- Event tickets and boarding passes. Ticketing and travel systems use different symbologies, including PDF417, Aztec, and QR codes, depending on the issuer. CODE128 may work for a custom ticket only when the ticketing system and scanners support it; follow the issuer's format requirements.
Related tools for barcode and label workflows
- Barcode Generator: create CODE128, EAN-13, EAN-8, UPC-A, CODE39, or ITF-14 barcodes and choose PNG or SVG output.
- QR Code Generator: generate static QR codes for URLs, text, Wi-Fi, email, and vCard. Download PNG or SVG. See QR code guide.
- Barcode Reader: decode a barcode from an image or screenshot. Check the tool page for its supported barcode types and instructions.
- SVG to PNG: convert an SVG file to a rasterized PNG at a specific resolution. Useful when you need a PNG version of an SVG barcode at a particular pixel size.
- Add Text to Image: add product names, prices, or other text to an image while preparing a label mockup.
Barcode and label tools
Create or inspect barcodes, generate QR codes, convert SVG files, and prepare image assets. Check each tool page for its supported formats, data-handling details, and usage terms.
FAQ
What is the difference between CODE128 and EAN-13?
CODE128 is a 1D symbology that can encode the full ASCII character set using its code sets, making it suitable for many shipping, logistics, and internal labels. EAN-13 encodes a 13-digit GTIN, including a check digit, and is used for retail product identification in many markets. The two are not interchangeable: use the format and identifier required by your scanner, retailer, or trading partner. A barcode generator creates the symbol; it does not assign a GS1 GTIN.
Can I use a generated barcode for retail products sold in stores?
Generating an EAN-13 or UPC-A image does not make the number a valid, unique retail identifier. For commercial product listings, use a GTIN that meets the requirements of the retailer, marketplace, or supply-chain partner. GS1-issued identifiers are commonly used, but policies and exemptions vary, so confirm current requirements before printing. For prototypes, use a clearly marked test value and do not put it into retail circulation.
What is the difference between a 1D barcode and a QR code?
A 1D barcode, such as CODE128 or EAN-13, encodes data in a linear pattern of bars and spaces and is often used for short identifiers. A QR code encodes data in a two-dimensional grid and can hold more information, depending on its version and error-correction level. A 1D code needs a reader compatible with its symbology; QR codes are often read by phone cameras or 2D imagers. Choose based on the data, reader, and use case.
When should I download PNG versus SVG?
PNG is a raster image with fixed pixel dimensions and can suit web or other fixed-size uses when its resolution is adequate. SVG is a vector format that can be resized without pixel interpolation, which can help in design and print workflows. Neither format by itself guarantees a successful scan: preserve the required quiet zones, dimensions, and contrast, follow printer specifications, and test the printed result with the intended scanner.
What is ITF-14 used for?
ITF-14 is a linear Interleaved 2 of 5 symbology used to encode a 14-digit GTIN on cases and other outer trade-item packaging. Follow the relevant GS1 and trading-partner specifications for its use and printed dimensions. GS1-128 can be used when a label needs to carry additional logistics data.
Does a barcode generator need to upload my data to a server?
Not necessarily. A generator may create a barcode in the browser, send entered values to a server, or use a combination of both. Whether a particular tool transmits data depends on how it is built. Check its current privacy information and, if needed, verify network activity before entering sensitive SKUs or internal identifiers.
What does the EAN-13 check digit do?
The 13th digit is a check digit calculated from the first 12 digits using a modulo-10 algorithm with alternating weights of 1 and 3. It helps detect many scanning or entry errors, but it does not confirm that a GTIN is assigned to a product. Some generators calculate the check digit when given 12 digits; others expect all 13 or validate the final digit. Check the tool's input instructions before use.
Can I use CODE39 barcodes for non-retail applications like asset tags?
Yes, for internal asset IDs where the scanner and inventory software support it. Basic CODE39 represents uppercase A-Z, digits 0-9, a space, and seven punctuation symbols; lowercase letters or other characters require an extended encoding or a different symbology. CODE39 does not require a check digit, though a Mod 43 check digit can be added. It often produces a wider symbol than CODE128 for the same content, so check the available label space and test the result.