Privvert - private browser-based file toolsPrivvert
PrivacyAsset ManagementBarcodeData Security

A Barcode Generator Should Not Broadcast Your Inventory to the World

Learn how to generate reliable barcodes locally. We cover symbology selection for retail and logistics without exposing sensitive product data to server-side tools.

By the Privvert team··6 min read

A barcode is only useful if a scanner reads it quickly in its intended environment. It sounds basic, but this is where most labeling projects fail. While any online barcode generator can render a valid image, choosing the wrong symbology or sending sensitive inventory data to a third-party server creates risks that only appear when it is too late—at the warehouse dock, the retail counter, or during a security audit.

For internal labels, the goal is clarity: encode the correct value and maintain enough white space for the scanner to register the bars. For regulated supply chains, the stakes are higher. A barcode might be public, but the data behind it can reveal unreleased products, case counts, or internal serial numbers. There is no technical reason this information should pass through an unknown server just to generate a PNG or SVG. We believe online converters are not free if they monetize your data footprints.

How Barcode Generation Works

A barcode generator translates alphanumeric strings into machine-readable patterns. Linear (1D) barcodes like UPC-A, EAN-13, Code 39, and Code 128 use varying bar widths across a single axis. Two-dimensional (2D) barcodes, such as Data Matrix and QR codes, encode data both horizontally and vertically, allowing for much higher density and built-in error correction.

Each symbology follows strict rules. For example, a UPC-A code requires 11 digits plus a check digit for validation. However, generating the image does not make the identifier legitimate. If you are selling through major marketplaces, you must use identifiers assigned via GS1. A tool can handle the encoding, but it cannot fix a broken inventory system or grant legal ownership of a number.

Choosing the Right Symbology

The best format is determined by your scanner hardware and the physical constraints of your label, not by aesthetics. You should decide on the format before you extract text from images or spreadsheets to populate your codes.

Retail Standards: UPC-A and EAN-13

UPC-A is the standard for consumer goods in the US and Canada. EAN-13 is its international counterpart. These are designed for point-of-sale systems. They are not intended for URLs or long internal SKU strings. If a retail system rejects your label, it is usually because the identifier isn't registered or the physical dimensions fail to meet GS1 specifications.

Logistics and Assets: Code 128 and Code 39

Code 128 is the professional choice for asset tags and work orders. It supports the full ASCII character set and is highly dense, meaning you can fit a complex ID on a small label. Code 39 is a legacy alternative; use it only if you are working with older scanners that require it. For most modern workflows, Code 128 is superior.

Industrial Precision: Data Matrix and QR

Data Matrix is the standard for electronics and medical device labeling because it remains readable even if partially damaged. QR codes are optimized for consumer cameras and URLs. While a QR code is a barcode, it is not a drop-in replacement for a retail UPC. If you need to include both a product ID and a website link, use both rather than trying to force one format to do both jobs.

Physical Requirements for Scannable Labels

The image file is only the first step. The interaction between light, material, and the scanner determines success. High contrast is mandatory; use dark bars on a light, non-reflective background. Avoid reversing colors (light bars on dark backgrounds) as many industrial scanners will fail to read them. If your label contains sensitive images, you might need to resize images locally to fit your layout without losing the integrity of the barcode pattern.

Every code requires a "quiet zone"—a margin of empty space around the symbol. Without this, the scanner may confuse nearby text or borders with the barcode data. Furthermore, avoid over-compressing your labels. Reducing a barcode too much changes the "X-dimension" (the width of the narrowest bar). If this dimension is smaller than your printer's resolution or your scanner's focal capabilities, the code becomes useless. For best results, use SVG exports to maintain sharp edges during printing.

The Privacy Cost of "Free" Generators

Many people treat barcode generation as harmless because the output is "just an image." This ignores the input data. A batch of barcodes can expose upcoming product launches, customer IDs, or internal shipment routes. Uploading this to a server-side generator creates a copy you cannot control. As we note in our guide on what AI and online tools retain, a privacy policy is a promise, not a technical safeguard.

Privvert tools process your data locally in the browser. Your inventory strings never leave your device. This structural hostility to data collection ensures your internal operations stay internal. If you are preparing documents for sharing, you should also strip PDF metadata to ensure no hidden author or timestamp data is leaked alongside your labels.

Validation and Testing

Never print a high-volume run without testing a physical sample. A phone camera might read a QR code in a brightly lit office, but that does not guarantee a handheld laser scanner will read a Code 128 label in a dimly lit warehouse. Check the actual decoded value to ensure your system isn't stripping leading zeros or adding hidden characters. The goal is a barcode that accelerates your workflow without creating a new vector for data leaks.

About this article

Written by a human editor on the Privvert team, working from a research brief and our internal notes on privacy, in-browser tooling, and current product behavior. Every technical claim is checked against primary specifications before publishing. Read our full editorial guidelines.

Privvert builds in-browser tools that never upload your files. Browse the toolkit or read more on the blog.