A linear barcode is a one-dimensional pattern of bars and spaces that encodes numbers or text so scanners, imagers, and camera apps can read it quickly and cheaply. Unlike two-dimensional symbols such as QR codes, classic barcodes spread information along a single axis, which makes them ideal for product labels, shelf tags, shipping cartons, library stickers, asset tags, and point-of-sale workflows where hardware has decades of tuning for black bars on a light background.
SynthQuery’s Barcode Generator is a free, browser-based maker for the nine most common retail and logistics symbologies you will encounter in small business and mid-market operations: Code 128 for dense alphanumeric strings, Code 39 for legacy uppercase systems, EAN-13 and EAN-8 for consumer GTIN contexts, UPC-A and UPC-E for North American packaging variants, ITF-14 for case-level fourteen-digit codes, Codabar for institutional numbering with simple start and stop patterns, and MSI for purely numeric internal tickets. You type or paste data, pick a format, and the page validates lengths and check digits before drawing anything, so you catch data entry mistakes before they reach a printer.
Customization covers the practical print variables teams argue about in prepress: module width, bar height, bar and background colors, optional human-readable text under the symbol, and caption font size when digits should remain legible at small sizes. A live SVG preview updates as you adjust settings, which helps you judge quiet zones and contrast without exporting blind. When you are ready, download PNG or JPG raster files with DPI-oriented scaling relative to the common ninety-six CSS pixel baseline, or grab SVG for lossless placement in Illustrator, Affinity, Figma, or InDesign.
Batch mode accepts a list of values—one per line, up to one hundred rows per session—so you can paste a column from a spreadsheet or a simple text export, review per-row validation, preview any row, download individual files, or bundle every valid row into a single ZIP archive in your choice of PNG, JPG, or SVG. Encoding runs locally with the MIT-licensed JsBarcode library after it loads; SynthQuery servers do not receive your barcode payloads for the workflow described here. When you also need AI-assisted writing checks, continue to the core AI Detector and Humanizer; when you need square QR codes for marketing links, use the QR tool linked below; when you need Pharmacode specifically, use Photo Barcode Gen on SynthQuery, which extends this symbology set with that niche encoder.
Who this page is built for
Operators who need trustworthy symbols without standing up an enterprise label server, designers mocking packaging before SAP data catches up, developers seeding fixtures with syntactically valid GTIN-like values, educators demonstrating modulo check digits, and ecommerce founders printing their first carton labels from a kitchen table all benefit from a fast, standards-aware encoder. The tool favors clarity over obscure options: you see immediate validation feedback instead of silent failures.
Privacy and local processing
After the JsBarcode script chunk downloads, every render, preview, single download, and ZIP build happens inside your tab. Clear the page or use a private window when codes represent unreleased catalog numbers. Raster export uses an in-memory canvas derived from the SVG subtree; nothing is uploaded for conversion.
What this tool does
The interface is organized into Single and Batch tabs so you can either craft one perfect symbol or work through a short list without repeating clicks. The symbology selector lists nine formats with concise hints about character sets and digit lengths. Retail GTIN family inputs strip accidental spaces, compare your check digit against the same weighting the encoder applies, and surface plain-language errors when parity fails. Code 39 screens for disallowed characters; MSI insists on numeric-only payloads; Codabar tolerates optional guard letters while explaining how start and stop symbols behave.
The preview panel renders a live SVG with an accessible description and polite status announcements for assistive technology users. Sliders adjust bar module width between one and six pixels in renderer units, bar height between twenty-four and one hundred sixty pixels, and caption font size between eight and twenty-eight pixels whenever human-readable text is visible. A switch hides caption text entirely when your layout prints digits separately or when the graphic must stay minimal. Color pickers pair with validated hexadecimal fields so you cannot accidentally lock the UI into an unparseable token; high contrast remains the default because low-contrast barcodes fail in warehouses and under supermarket LEDs.
Single-mode downloads expose PNG, JPG, and SVG. Raster exports multiply the SVG layout box by your chosen DPI preset divided by ninety-six, approximating how designers reason about print resolution after working in screen pixels. JPEG export composites a white matte under the bars to avoid dark compression artifacts around edges. Batch mode adds a scrollable table with row numbers, truncated values for scanning, validation status, and per-row PNG, JPG, and SVG buttons. A ZIP builder walks only validated rows, names files with zero-padded indices to preserve order, and respects the same styling options as the preview so bulk output matches your single-symbol tuning. Invalid rows are skipped automatically with an on-screen count so you know how many symbols the archive contains.
Why nine symbologies instead of thirty
Specialized encoders cover GS1 DataBar, stacked symbologies, RFID pairing, and proprietary warehouse formats. This tool keeps bundle size reasonable and documentation honest by focusing on linear types small businesses touch every week. If a partner spec mandates something outside the list, use their certified software; if you are prototyping or training, start here.
Accessibility and keyboard affordances
Controls use visible labels, aria attributes on sliders and switches, and alert roles for blocking validation. The batch table uses buttons for row selection and downloads so keyboard users are not trapped in mouse-only flows. Preview status updates use polite live regions to avoid interrupting screen reader navigation.
Technical details
Code 128 encodes full ASCII by switching among code sets, producing shorter bars than Code 39 for the same payload. Code 39 restricts characters but remains common in legacy industrial readers. EAN-13 carries twelve data digits plus a modulo-ten check digit computed with alternating one-and-three weights from the left; the leading digit influences parity patterns on the left half. EAN-8 applies a similar checksum across seven body digits. UPC-A uses eleven data digits plus check with a different odd-even weighting than EAN-13; UPC-E compresses certain zero patterns when manufacturer rules allow. ITF-14 is an Interleaved 2 of 5 derivative padded to fourteen digits with a checksum over the first thirteen. Codabar wraps content between start and stop symbols; many workflows let the encoder add default guards when you supply only the body. MSI represents decimal digits in binary-like bar patterns; some ecosystems add secondary check digits in other software, but this page exposes the base encoder mirrored in JsBarcode.
Raster scaling multiplies the SVG bounding box by DPI over ninety-six, giving a practical proxy for print workflows without pretending to know your physical label width. Scanners ultimately care about module width in millimeters, contrast, focus, and quiet zones. SVG avoids pixel grids and remains the archival format when downstream tools resize. JPEG compression can soften edges if quality is too low; prefer PNG or SVG when modules are tiny.
Check digits in plain language
When validation complains, recompute the final digit from the body digits your PIM exported, or paste the complete verified string from your ERP. Matching the algorithm here does not prove GS1 issued your prefix—it only proves internal consistency before you print.
Scanner compatibility
Most modern imagers read these linear types if print quality is adequate. Very old wands may lack Code 128 firmware. Always pilot-scan a proof label on the same hardware your floor will use.
Use cases
Product teams export SVG barcodes into packaging mockups while waiting for official GTIN assignment from GS1, swapping placeholder digits that still satisfy checksum rules so scanners respond realistically in usability tests. Inventory coordinators paste location codes from a WMS CSV into batch mode, ZIP the PNG set, and attach the archive to an internal wiki page illustrating rack labeling standards. Retail merchandisers print EAN-13 symbols on temporary shelf talkers for seasonal promotions, tuning bar height until handheld imagers read reliably under new LED retrofits.
Shipping desks generate ITF-14 case codes for photography before corrugated plates arrive from the flexographic vendor, keeping marketing shots aligned with logistics documentation. Library volunteers rebuild Codabar asset tags for tool lending programs. Event producers turn registration dumps into MSI-encoded thermal tickets when the vendor exports only plain text. Asset-tracking startups embed UPC-E on jewelry hang tags where vertical space is scarce.
SaaS documentation teams drop PNG examples next to API tables so integrators recognize valid payload lengths. QA engineers regression-test decoders with edge-case values generated here. Educators export JPEG slides that show both bars and digits when teaching weighted checksum algorithms. After generating artwork, teams often pair this utility with SynthQuery’s QR Code for Photographers for omnichannel campaigns, Product Schema Generator when structured data must reference GTIN fields, and COGS Calculator spreadsheets when inventory discussions follow labeling projects.
From proof to production
Treat browser-generated symbols as engineering proofs until prepress confirms quiet zones, ink trap, and substrate contrast. Export SVG when your vendor prefers vector masters; export three-hundred-DPI-scaled PNG when a partner specifies pixel dimensions without supplying a die line.
Batch etiquette
Keep lists short and intentional. One hundred lines per pass prevents accidental thousand-row paste jobs that could freeze weaker devices. For regulated high-volume printing, export from your system of record into a dedicated label server with audit trails.
How SynthQuery compares
Paid suites such as BarTender, NiceLabel, or CODESOFT integrate databases, regulated audit trails, printer command languages, and hardware drivers—essential when a facility prints millions of compliant labels per day. Lightweight mobile apps sometimes upload your data to their cloud, which is convenient yet risky for confidential SKUs. Free sites that emit only low-resolution PNG or omit validation waste time when symbols fail at the scanner.
SynthQuery targets the middle path: correct linear encoding for nine common symbologies, immediate validation, vector SVG, thoughtful raster scaling, batch ZIP export, and no account wall for this encoder path. It is not a GS1 registration service, not a verifier that grades ISO/IEC print quality, and not a replacement for ERP-driven merge printing when cardinality or compliance demands it.
Aspect
SynthQuery
Typical alternatives
Time to first symbol
Open the page, choose a format, enter data, see preview, download—no installer.
Enterprise suites need licensing, templates, and printer setup before the first label.
Validation
GTIN-family check digits and character-set rules surface errors before export.
Some free generators draw invalid symbols silently.
Batch export
Paste up to one hundred lines, download a ZIP of valid rows in PNG, JPG, or SVG.
Many browser tools handle only one code at a time.
Vector output
SVG download preserves sharp edges for DTP pipelines.
Raster-only exporters limit large-format reuse.
Depth versus compliance platforms
No automated Digital Link issuance, RFID encoding, or graded verification reports.
Compliance stacks bundle governance, approvals, and hardware integrations.
How to use this tool effectively
Use this sequence whenever you need scannable linear barcodes without opening a full label MIS.
Step 1: Choose Single or Batch
Single mode is best for one-off labels, hero mockups, and classroom demos. Batch mode fits short lists exported from spreadsheets—one value per non-empty line, maximum one hundred lines per paste.
Step 2: Select the symbology
Match your trading partner specification. Consumer retail outside North America often expects EAN-13; UPC-A remains common in the United States and Canada; UPC-E helps tiny packaging. Warehouses frequently specify Code 128 for alphanumeric container IDs. Case-level logistics may reference ITF-14. Internal numeric tickets might use MSI. Libraries and blood-bank adjacent workflows still encounter Codabar.
Step 3: Enter and validate data
Type or paste the payload. Digit formats ignore stray spaces. If validation rejects a check digit, reconcile against your product master before retrying. In batch mode, scan the table for rows marked invalid; only valid rows enter the ZIP archive.
Step 4: Tune appearance
Increase module width when ink spreads or when cameras read from a distance; decrease it for narrow labels. Raise bar height for tilt tolerance. Keep strong contrast between bar and background colors. Toggle human-readable text when your design already prints digits elsewhere.
Step 5: Preview
Watch the SVG panel update. In batch mode, choose a preview row from the dropdown or tap a value to inspect that line. Fix validation errors until the preview reflects the symbol you expect.
Step 6: Export
Pick PNG or JPG with a DPI preset for raster workflows, or SVG for vector-first tools. In batch mode, download individual rows from the table or bundle all valid rows via ZIP. Archive SVG masters when you anticipate resizing later.
Limitations and best practices
This generator does not register GTINs with GS1, does not issue company prefixes, and does not replace ISO/IEC verifier hardware. Confirm symbology rules with retailers and 3PL partners before mass production. Batch mode caps at one hundred non-empty lines to protect lower-powered devices; merge millions of labels from your ERP instead. Pharmacode is intentionally omitted here—use Photo Barcode Gen when that symbology is required. Maintain adequate quiet zones around symbols; tight cropping is a common cause of no-reads. Store SVG when possible and derive PNG or JPEG per channel to avoid generational loss.
Browse every lightweight SynthQuery utility; the full directory also lives at https://synthquery.com/tools.
Frequently asked questions
EAN-13 is the common choice for consumer trade items outside North America when you have twelve data digits plus a check digit. In the United States and Canada, UPC-A with eleven data digits plus check remains typical on shelf-ready goods. UPC-E compresses certain zero patterns when physical space is extremely tight, but not every GTIN can be expressed that way—follow your retailer’s written specification. Always leave quiet zones on both sides of the symbol so laser and imager scanners can lock onto guard patterns. This tool validates check digits before drawing, yet it cannot prove GS1 issued your company prefix; that remains an upstream registration task.
Code 128 switches code sets to encode ASCII compactly, so you get shorter bars for the same characters—helpful on shipping labels where width matters. Code 39 is older, uses a wider character set restriction, and appears in legacy industrial hardware that never upgraded firmware. If an integrator names either symbology, follow their document literally. If you are prototyping freely, Code 128 is usually denser. Remember density interacts with printer DPI and label width: a symbol that fits on screen might still print too wide for a two-inch thermal gap.
Switch to the Batch tab, paste one value per line, and the page parses up to one hundred non-empty lines. Each row is validated independently against the symbology you selected; the summary shows how many lines are valid versus needing fixes. You can preview any row, download PNG, JPG, or SVG for an individual line, or bundle every valid line into a ZIP file. Invalid rows are skipped from the ZIP so you do not accidentally ship unscannable files. Extremely large jobs belong in ERP-driven label software with auditing; this batch path targets short operational lists.
Scanners decode based on contrast, focus, module width in the real world, and quiet zones—not on marketing DPI labels alone. SVG scales cleanly, but shrinking below your device’s minimum element width causes failures. Raster downloads multiply the SVG layout box by your DPI choice relative to ninety-six CSS pixels, which is a practical proxy for print workflows. Pilot-scan a proof label on the intended hardware before committing to a long print run.
SVG is the best master when you may resize or recolor later because it stores geometry instead of a fixed grid. PNG preserves sharp edges and respects the background color you choose. JPEG is smaller on photographic scenes but can soften high-contrast edges; the exporter composites white under bars to reduce halos, yet aggressive compression still risks blur. Use JPEG only when a destination mandates lossy files; prefer PNG or SVG for tiny modules.
The Barcode Generator loads JsBarcode into your browser and renders locally. Preview, single downloads, and ZIP creation happen on your device as described on this page. Use a private browsing window when values are confidential, and clear downloads folders on shared machines if needed.
No. GS1 compliance spans identifier issuance, data attributes, placement, sometimes application identifiers, and often graded print verification. This tool helps you visualize linear symbols with syntactically valid payloads for supported types, but it does not audit enterprise master data, register prefixes, or issue Digital Link URIs. Treat output as engineering assistance, not certified regulatory deliverables.
This page intentionally focuses on the nine most common retail and logistics linear symbologies. Pharmacode addresses a narrow integer range used in specific pharmaceutical packaging contexts. SynthQuery’s Photo Barcode Gen includes Pharmacode alongside overlapping formats when your brief requires it.
JsBarcode is MIT licensed, and you may use files you generate for lawful business purposes subject to SynthQuery’s site terms. Commercial viability of the encoded data is separate: GTINs must come from authorized numbering authorities, internal SKUs must avoid collisions with partner catalogs, and regulated industries may require additional human-readable elements. You remain responsible for contracts, labeling laws, and industry guides.
Use QR Code for Photographers when campaigns need square codes for smartphone journeys. Product Schema Generator helps publish structured product data that references the same identifiers. Coupon Code Generator produces promo strings when random codes matter more than bars. Invoice Generator and COGS Calculator support operational paperwork around inventory. Browse the free tools hub and https://synthquery.com/tools for the complete catalog.