Simple, widely supported code for labels and ID cards. Free, unlimited and instant — with every professional option included.
Free for personal and commercial use. No watermark, no sign-up.
For razor-sharp printing, download the SVG — it scales to any size.
Code 39 is one of the oldest and simplest barcodes, still widely used for ID cards, membership badges, library labels and government and automotive applications. Each character is drawn from a set of 43: capital letters, numbers and a few symbols.
Code 39 arrived in 1974 from Intermec, and it was the first barcode that could carry letters as well as numbers — a breakthrough that took barcodes out of the grocery store and into factories, hospitals, the military and government. The US Department of Defense adopted it for marking supplies (the famous LOGMARS standard), car makers built it into their parts systems, and health services used it on patient records. Its 43-character set and simple structure made it printable on the crude printers of the era, and that installed base is why Code 39 refuses to retire: decades of labels, scanners and software still speak it fluently.
The name describes the drawing: each character is five bars and four spaces — nine elements — of which three are wide; hence “3 of 9”. The character set is capital letters A–Z, digits 0–9 and the symbols - . $ / + % and space. Every symbol begins and ends with an asterisk, the start/stop character, which the encoder adds for you (it is not part of your data, even though many label designs print it). Code 39 has no mandatory check digit, though a modulo-43 check character exists for applications that want one. Because each character needs nine elements plus a gap, Code 39 symbols grow wide quickly — the price of its simplicity.
Plan Code 39 labels generously: the narrow bar should be at least 0.19 mm, and the total width grows by roughly 16 narrow-bar widths per character, plus start, stop and quiet zones. A ten-character code at a comfortable density is already 45–55 mm wide. Height of 15 mm or more keeps handheld scanning forgiving. Quiet zones of at least ten narrow-bar widths on both sides are essential — old specifications literally print the rule on military labels. On this generator, raise the margin slider if your label stock is tight, and prefer the SVG download so a label printer renders the bars exactly.
You will still meet Code 39 on library and membership cards, employee and student ID badges, government forms, automotive parts, hospital wristbands in older systems, and equipment labels in factories that standardised decades ago. It is also a favourite for in-house jobs — a school labelling textbooks, a club printing member cards — because every scanner ever made reads it and the rules are forgiving. If you are labelling for your own organisation and no customer standard applies, it works; if you are starting fresh with dense data, its modern rivals below deserve a look.
The honest limitation is space. Code 39 cannot encode small letters at all (its Extended sibling can, at double length), and a long serial number becomes a very wide label. It also lacks a built-in error check in normal use, so a damaged label can occasionally misread instead of failing cleanly. None of this matters for short codes on cards and shelves — it matters a lot on small parts and dense packaging, which is why those industries moved on.
Every option above the preview exists because a real labelling job needed it. Bar width sets the thickness of the narrowest bar — raise it for labels that travel far or are scanned at a distance, lower it only when space genuinely runs out. Barcode height does not change the data, but taller bars are dramatically easier to scan, especially handheld. The quiet zone slider controls the blank margin the scanner needs to find the symbol; the default suits most labels, and crowded artwork is the only reason to touch it. The text settings control the human-readable line under the bars — keep it on for anything people also read, and pick OCR-B for the classic machine-printed look. Colours should stay dark-on-light; the transparent background option is for placing the code over your own light artwork in a design program. Finally, the download size matters: SVG is a vector that stays perfect at any scale and is always the professional choice, while the 3x and 4x PNG options exist for software that cannot take vectors. Set the options once, watch the preview, and only then download.
Code 39 versus Code 128: 128 is smaller, carries small letters and symbols natively, and always includes a check digit — for new systems it is the default recommendation. Code 39 versus Code 39 Extended: Extended trades length for the full ASCII set on the same old scanners. Code 39 versus Code 93: 93 is its compact, check-protected descendant, used where Code 39’s size hurts but its ecosystem is required.
When a freshly printed Code 39 refuses to scan, the cause is almost never the data — it is the physics of the print. Work through the usual suspects in order. Contrast: scanners see in shades of red light, so black bars on white are the gold standard; red, orange and metallic bars can be nearly invisible, and a dark background with light bars defeats most readers entirely. Quiet zone: the blank margin around the symbol is part of the code — if text, borders or the edge of the label crowd it, the scanner cannot find where the code starts. Size: a symbol shrunk below its sensible minimum merges its fine bars into grey mush; print bigger or simplify the data. Print quality: inkjet bleed, a worn thermal head and low-resolution images all fatten or break bars — print from the SVG, at 100% size, on the best printer setting. Damage and gloss: creases, lamination glare and curved surfaces each steal a slice of the symbol; matte labels placed flat scan best. The professional habit that prevents all of it: print one label, scan it with the actual device that will be used, in the actual lighting, before printing the batch.
Five terms explain nearly everything about working with Code 39. The symbology is the language itself — the set of rules that turns data into bars and back; Code 39 is one symbology among the twenty-one on this site. The X-dimension is the width of the narrowest bar or space, and every other measurement — total size, quiet zone, print tolerance — is expressed as a multiple of it. The quiet zone is the blank margin at both ends of the symbol; scanners use it to recognise where the code begins, and stealing it is the most common cause of failure. A check digit is a final character calculated from all the others, letting the scanner prove the read is correct instead of merely plausible. And the human-readable line is the printed text beneath the bars — there for people, ignored by scanners, and worth keeping accurate because when a scan fails, a human types exactly what it says. Keep these five straight and the rest of this page — and any barcode specification you are handed — becomes easy reading.
Professionals grade printed barcodes from A (excellent) to F (fail) with a device called a verifier, which measures contrast, bar accuracy and defects against the standard for the symbology. You do not need a verifier for everyday work, but the grades explain what “good” means: a Grade A symbol has crisp edges, bars within a hair of their intended widths, and strong contrast. Home and office printing usually lands at B or C — perfectly serviceable for internal labels, shelf edges and documents. Retail packaging and supply-chain labels are held to higher bars because they must scan first time, every time, on equipment you do not control. The practical translation: generate from a proper encoder (as this page does), print from vector artwork, keep contrast absolute, respect the quiet zone, and test-scan. Follow those five rules and your Code 39 labels will behave like professionally produced ones, because the difference was never the price of the software — it is the discipline of the print.
The asterisk is the start and stop character of Code 39 — scanners need it to know where the code begins and ends. It is part of the symbology, not part of your data.
Because of its construction: every character is drawn from nine elements — five bars and four spaces — and exactly three of those nine elements are wide. The name is a literal description of the pattern.
Yes — completely free and unlimited. Create as many barcodes as you like and download them as PNG, SVG or JPG with no watermark and no sign-up. Everything is generated in your browser; nothing is uploaded.
Download the SVG for perfectly sharp printing at any size, or a PNG at Print quality (3x) or higher. Keep the quiet zone (the empty margin) around the code, print a test copy, and scan it with a phone or scanner before a big print run.
Yes — the Serial Numbers tab on this page generates a running series, and the Bulk List tab turns a pasted list (one value per line) into barcodes you can download together as a ZIP file or print as a sheet.