Our free barcode generator turns a product number, a SKU, or a short piece of text into a crisp, scannable barcode that you can download and print in seconds, right inside your browser. Pick the symbology you need, such as UPC-A for retail, EAN-13 for international products, or Code 128 for shipping and inventory, type your data, and save the result as a sharp PNG or a vector SVG. There is no account to create, no fee, and no watermark, and the numbers you encode never leave your device.
Barcodes are the quiet workhorses of retail and logistics. A pattern of black bars and white spaces printed on a label lets a scanner read a number in a fraction of a second, which is how checkout lanes, warehouse shelves, and shipping cartons keep track of millions of items without anyone typing. This page explains what a barcode generator does, how the common barcode types differ, how to pick the right one, and how to make a code on ToolFiddle that scans the first time. It also covers sizing, quiet zones, and printing, which is where most homemade barcodes go wrong.
What a barcode is and how it works
A linear barcode, also called a 1D barcode, is a row of parallel bars and spaces of varying widths. Those widths are a code. A scanner shines a light across the pattern, measures how the reflection changes as it crosses each bar and space, and translates the widths back into the digits or characters they represent. Because the reading happens optically and almost instantly, a barcode is far faster and far more accurate than reading a number aloud or typing it by hand.
Each barcode also carries structure beyond the raw data. Most symbologies have a start pattern and a stop pattern that tell the scanner where the code begins and ends, and many include a check digit, which is a number calculated from the others so the scanner can confirm it read the rest correctly. The blank margins on the left and right, called quiet zones, give the scanner a clean run-up so it can lock onto the start pattern. Get those parts right and a barcode reads reliably from many angles and distances, which is the whole point of using one.
The word symbology simply means the rules for how a particular barcode type encodes data. UPC-A, EAN-13, Code 128, Code 39, and ITF are all different symbologies, each with its own alphabet of allowed characters, its own way of drawing the bars, and its own strengths. Choosing among them is the first real decision, so most of this guide is about matching the type to the job.
Linear barcodes versus QR codes
It helps to be clear about what this tool is and is not. This is a linear, or 1D, barcode generator. It draws the classic row of vertical bars you see on grocery packaging and shipping labels. That kind of code holds a short piece of data, usually a number that points to a record in a database, such as a product in a store system.
A QR code is a different animal. It is a square, two dimensional grid of small cells, and it can hold far more, including a full web address, Wi-Fi login, or contact card. If you want a code that a phone camera opens as a link or that stores a paragraph of text, that is a QR code, and we have a separate QR code generator for exactly that. If you want a code that a retail or warehouse scanner reads as a product or inventory number, you want a linear barcode, which is what this page covers. The two are cousins, not competitors, and most businesses use both for different tasks.
The common barcode types and when to use each
The barcode generator supports the linear symbologies that cover almost every real need. Here is what each one is for.
UPC-A is the retail barcode of the United States and Canada. It encodes twelve numeric digits, eleven of data plus one check digit, and it is the code you see on almost every packaged product in an American store. If you are putting a product on shelves in North America, UPC-A is the standard, and the number behind it comes from GS1, the organization that issues company prefixes.
EAN-13 is the international version, used across Europe and much of the world. It holds thirteen numeric digits and is a superset of UPC, so a modern scanner reads both. Choose EAN-13 when your product sells internationally or outside North America. There is also EAN-8 for very small packages where a full thirteen digit code will not fit.
Code 128 is the flexible one, and for internal use it is often the best pick. It can encode all of the standard keyboard characters, letters, numbers, and symbols, and it packs them tightly, so it is compact even with a long value. Shipping labels, warehouse locations, and SKUs that mix letters and numbers usually use Code 128. If the data is your own and you just need a reliable, dense code, this is the safe default.
Code 39 is older and simpler. It encodes uppercase letters, digits, and a few symbols, and it does not require a check digit, which made it popular for asset tags, ID badges, and industrial or government uses. It is less dense than Code 128, so the same data makes a wider barcode, but it is rugged and widely supported. Reach for it when a system you are feeding specifically expects Code 39.
ITF, short for Interleaved 2 of 5, encodes pairs of numeric digits and is common on shipping cartons and cases. The best known form is ITF-14, which carries the fourteen digit code used to mark a case of products for the supply chain. ITF tolerates the rougher printing found on corrugated cardboard, which is why it survives on shipping boxes where a fine retail code might smear.
How to choose the right barcode type
If the choice still feels abstract, a few plain rules settle most cases. Are you selling a product through retail stores in North America? Use UPC-A with a number you own through GS1. Selling internationally? Use EAN-13. Labeling your own stock, shelves, bins, or shipments for a system you control? Use Code 128, which handles both letters and numbers and stays compact. Feeding an older system or printing simple asset tags? Code 39 is the traditional answer. Marking cases and cartons for the supply chain? ITF-14 is built for that.
The single most common mistake is picking a retail symbology like UPC for internal codes that include letters, which UPC cannot hold, or inventing a UPC number for products you intend to sell in stores. For anything internal, a code you make up yourself in Code 128 is perfect. For retail, the number has to be a real, registered one. Keep that split clear and the rest is easy.
How to create a barcode with ToolFiddle
We built the tool to be quick and hard to get wrong, so the whole flow takes under a minute.
- Choose the barcode type. Select the symbology that matches your use, such as UPC-A, EAN-13, Code 128, Code 39, or ITF. The tool shows what each type expects, for example twelve digits for UPC-A, so you know the format up front.
- Enter your data. Type or paste the number or code. For numeric types the tool accepts digits, and for Code 128 or Code 39 you can include letters and symbols as the type allows. The barcode preview updates live as you type, so you see the pattern take shape immediately.
- Let the tool handle the check digit. For UPC-A and EAN-13 the check digit is calculated automatically from the digits you enter, so you do not have to work it out. If you type an invalid length, the tool tells you rather than drawing a code that will not scan.
- Set the size and options if you want to. Adjust how wide the bars are, how tall the code stands, and how much quiet zone sits on each side. You can usually leave the sensible defaults in place, since they are chosen to scan well.
- Download. Save a PNG for screens and quick prints, or an SVG for printing at any size or on a sheet of labels. The file is yours right away, with no watermark and no wait, because the whole barcode was built on your device.
A worked example, start to finish
Say you run a small shop and want to label a house-blend coffee bag with an internal code so your point of sale system can ring it up and track stock. This product is not going into other retailers, so you do not need a GS1 number. You choose Code 128 because it is dense and accepts letters, and you type your own SKU, for example COFFEE-HOUSE-250. The preview draws a compact barcode with the human readable text underneath.
You bump the height up a little so it is easy to scan at the counter, and you check that a clear white margin sits on both sides. You export an SVG so you can print the same code on small bag stickers and on a larger shelf label without any blur. Before committing to a full print run, you open your phone, scan the on-screen preview with a barcode app, and confirm it reads back COFFEE-HOUSE-250. It does, so you print a sheet and start labeling. That test scan before printing is the habit that saves wasted label stock.
Now compare a retail case. You have a new product going into stores, and you have already registered a GTIN through GS1. You select UPC-A, type the twelve digit number, and the tool confirms the check digit. You export at the standard size, keep the quiet zones intact, and send the artwork to your packaging printer. The difference between the two examples is not the tool, it is where the number came from, made up for internal use, or registered for retail.
Sizing, quiet zones, and printing
More barcodes fail from bad printing than from bad data, so this part is worth care. The single most important measurement is the width of the narrowest bar, sometimes called the X dimension. Everything scales from that. If you shrink a code so far that the narrow bars blur together, no scanner will read it, no matter how correct the data is. When in doubt, print larger.
Quiet zones are the second thing people forget. A scanner needs blank space on each side of the bars to find the start and stop patterns. A good rule of thumb is a quiet zone about ten times the width of the narrowest bar. Do not let text, a border, a fold, or a neighboring label intrude on that margin. The barcode generator includes a quiet zone by default, so the main risk is cropping it away later in a design program.
Contrast matters too. Scanners read dark bars on a light background, so plain black on white is ideal. Avoid light-colored bars, busy patterns behind the code, or printing on a dark or reflective surface. Matte labels beat glossy ones because glare can hide bars from the scanner.
Finally, choose the export format with printing in mind. A PNG is a fixed grid of pixels, which is fine at the size you generate it, but stretch it larger and the edges soften. An SVG is drawn from math, so it stays perfectly sharp at any size, which is why it is the right pick for a sheet of labels, a large carton mark, or anything you will resize. Export the SVG once and you can print it small on a jar and big on a box from the same file.
Real-world use cases
Products and retail are the classic case. A barcode on packaging lets a checkout scanner ring up the item and update stock in one beep. If you sell through stores, the number behind the barcode is a registered GTIN, and the barcode generator draws it as a clean, scannable UPC-A or EAN-13 for your packaging artwork.
Inventory and stock control are where small businesses gain the most. Label shelves, bins, tools, and products with your own Code 128 codes, and a handheld or phone scanner turns a slow manual count into a quick, accurate scan. Because you own the numbering, you can encode whatever scheme fits your warehouse, such as an aisle and shelf, a SKU, or a batch.
Shipping and fulfillment lean on barcodes to track parcels and cases. Code 128 appears on carrier and internal shipping labels, and ITF-14 marks cases of goods moving through the supply chain. A scan at each handoff records where a shipment is without anyone copying a number.
Asset tracking covers laptops, tools, equipment, and library-style items. A durable Code 39 or Code 128 tag on each asset lets you scan it in and out, run audits, and know what you own and where it lives. Schools, offices, and workshops use this constantly.
Events and membership use barcodes on tickets, wristbands, and cards, where a scan at the door checks someone in. Smaller operations also print barcodes for internal labeling of files, samples, and lab items, anywhere a quick, reliable lookup beats typing.
Tips and common mistakes to avoid
A handful of habits separate barcodes that always scan from ones that frustrate everyone at the counter.
- Test before you print a batch. Generate the code, scan the on-screen preview or a single printed sample with a phone barcode app, and confirm it reads back the value you expect. This one step catches almost every problem before it multiplies across a label roll.
- Do not crop the quiet zone. When you place the barcode into a label or packaging design, keep the clear margins on both sides. Butting text or a border right against the bars is a leading cause of failed scans.
- Match the digit count to the type. UPC-A needs twelve digits and EAN-13 needs thirteen, including the check digit the tool adds. Feeding the wrong length is a common error, and the barcode generator flags it rather than drawing a code that cannot scan.
- Do not invent retail numbers. A made-up UPC might scan fine on your own scanner, but if it collides with a real product or is not registered to you, retailers will reject it. Use your own scheme in Code 128 for internal work, and a GS1 number for the shelf.
- Print big enough and in solid black on white. Resist the urge to shrink a code to fit a tight design. If space is tight, an EAN-8 or a shorter internal code in a compact symbology beats squeezing a full code until the bars merge.
Check digits and encoding, explained simply
A check digit deserves a moment because it is quietly clever. In UPC-A and EAN-13, the last digit is not data you choose, it is calculated from the others using a fixed formula that weights alternating digits and takes a modulo of the sum. When a scanner reads the code, it runs the same calculation on the digits it saw and checks that the final digit matches. If a single digit was misread, the math will not line up, and the scanner rejects the read instead of returning a wrong number. That is why retail codes are so dependable.
You do not need to do any of this arithmetic. The barcode generator computes the check digit for you, so you enter only the meaningful digits and the tool completes and validates the full code. Code 128 and Code 39 handle integrity differently, with Code 128 using a hidden checksum built into the symbology and Code 39 often used without a check digit at all for simple cases. The practical upshot is the same, you type your value and get a correct, standards-compliant barcode without hand calculation.
PNG or SVG, and which to keep
The two download formats answer two different needs, and it is worth keeping both in mind. A PNG is a raster image, a fixed grid of pixels. It is the friendly, drop-anywhere format, ideal for a screen, a slide, a quick document, or a print at roughly the size you generated it. What a PNG does not love is being scaled up a lot, since enlarging pixels softens the crisp edges a scanner relies on.
An SVG is a vector, meaning the bars are described as shapes and math rather than pixels. That makes it resolution independent, so it prints perfectly sharp whether it is a tiny jar label or a large box mark, and it is the format professional printers prefer. If you expect to resize the barcode, print a sheet of labels, or hand artwork to a print shop, export the SVG. For everyday on-screen and fixed-size use, the PNG is simpler. Many people keep the SVG as the master and export PNGs from it as needed.
Your data stays on your device
The numbers behind your barcodes are not trivial. A SKU can reveal how you organize stock, a product number ties to pricing and sales, and an internal scheme is part of how your business runs. That is why we built this barcode generator to do all of its work on your own device. When you type a value and the code appears, that drawing happened in your browser, using code the page already loaded. The data is not sent anywhere.
Nothing you enter is uploaded, stored, or logged on a server, and we keep no record of the codes you make. You could switch off your connection right after the page loads and keep generating barcodes all day, which is the clearest proof that the work is local. Plenty of free barcode sites process your input on their servers and pair that with tracking. Ours does not, so your product and inventory data stays yours.
Genuinely free, with no catches
This barcode generator is free in the way people wish more tools were. There is no account to create, no email to hand over, and no payment at any step. Every barcode type is available, both download formats are open, and there is no watermark stamped across your image. You will not generate a code only to find the clean version is behind a paywall.
We point this out because limits are common in this category. Some barcode sites cap how many codes you can make per day, water down the free image with a logo, or reserve the useful symbologies and bulk features for paying subscribers. We keep the whole tool open. Make one barcode or a hundred, use any type, and export as often as you like, without ever hitting a wall that asks for a card.
Instant and unlimited by design
Because the barcode is built on your device, it appears the instant you finish typing, with no spinner while a request travels to a server and back. There is no queue when the site is busy, no per-day quota counting down, and no drag from the heavy advertising scripts that bog down so many free tools. The page is deliberately light, so it loads fast even on an old phone in a stockroom with a weak signal.
That speed is exactly what labeling work needs. When you are tagging stock or preparing packaging, you want to generate, check, and print in a smooth rhythm, not wait on a page between every code. The tool does one job well, responds immediately, and stays out of your way.
Works on every device, even offline
The barcode generator behaves the same on a phone in your hand, a tablet on a warehouse cart, or a laptop at a desk. The layout adapts so the controls and preview stay usable on a small screen or a large one. Most importantly, once the page has loaded, the tool no longer needs the internet, because the encoding runs entirely on your device. That means you can keep making and printing labels in a back room, a warehouse aisle, or a market stall where the connection is patchy or absent. Nothing depends on a particular browser brand, only a modern one, so it works across the devices a small business actually uses.
Related tools on ToolFiddle
A barcode rarely travels alone, so a few neighboring tools pair well with it. The QR code generator covers the 2D side, for links, Wi-Fi, and contact cards that a phone camera reads. The invoice generator helps on the paperwork side of selling and shipping the products you are labeling. The image compressor shrinks a barcode or label image for email or a lightweight document without visible loss, and the resize image tool sets exact label dimensions when you are laying out a print sheet. Each one keeps your data on your device just as this tool does.
A quick recap
A barcode generator turns a number or short code into a scannable pattern of bars and spaces, and choosing the right symbology is the key decision. Use UPC-A and EAN-13 for retail products with registered numbers, Code 128 for internal inventory and shipping because it holds letters and numbers compactly, Code 39 for simple asset tags, and ITF-14 for shipping cases. Keep the quiet zones clear, print large enough in solid black on white, export SVG when you need to resize, and always test a scan before a full print run. The ToolFiddle barcode generator does all of this instantly, privately, and free on any device, so you can label products, stock, and shipments with codes that scan the first time.