Linear barcodes are machine-readable patterns of bars and spaces that encode characters or digits according to a symbology standard. Unlike two-dimensional codes such as QR or Data Matrix, classic barcodes spread information along a single axis, which keeps them inexpensive to print with impact, thermal, and laser printers and easy to read with handheld wand scanners, flatbed imagers, and smartphone cameras using decoding software. Retailers rely on EAN-13 and UPC family symbols on packaging; warehouses use Code 128 on cartons because it squeezes more characters per inch; libraries and blood banks historically favored Codabar for its simple start and stop structure; logistics chains reference ITF-14 on corrugated cases when GTIN case packaging is standardized; and pharmaceutical track-and-trace contexts still encounter Pharmacode on inner folding cartons even as 2D adoption grows.
Businesses need dependable barcode generation whenever SKUs change, seasonal labels refresh, prototypes ship without enterprise label servers, or a founder packs the first hundred units from a garage. Cloud ERP suites and desktop label designers solve heavy workflows, yet a lightweight browser utility closes the gap for one-off assets, pitch decks, training screenshots, and developer fixtures. SynthQuery Photo Barcode Gen renders entirely in your tab with the MIT-licensed JsBarcode engine: pick a symbology, type validated data, tune module width and bar height, choose background and ink colors, decide whether human-readable text prints beneath the bars, watch the SVG preview update as you type, then download SVG for infinite scaling or raster PNG and JPEG with a DPI-based scale factor so exported pixels align with common print resolution assumptions. No barcode payload is transmitted to SynthQuery for encoding described on this page. When your pipeline also needs AI-assisted copy review, continue to the AI Detector and Humanizer; browse the free-tools hub for adjacent utilities; and explore the full directory at https://synthquery.com/tools.
Why keep barcodes in your creative toolkit
Photographers and designers rarely live inside WMS consoles, yet they still produce sell sheets, trade-show badges, prop packaging, and tutorial slides where a believable barcode sells the story. Developers seed databases with synthetic GTIN-like values. Educators illustrate check-digit math. A fast, standards-aware generator avoids hand-drawing rectangles in vector tools that scanners will never parse.
Privacy posture for this specific workflow
Encoding executes locally with JsBarcode after the script chunk downloads. SynthQuery does not need your strings to draw the SVG preview or the files you save. Clear the tab or use a private window when codes represent unreleased catalog numbers.
What this tool does
The interface follows SynthQuery Image Utilities conventions: compact hero bar with category badge, keyboard-focusable controls, and an About & FAQ anchor that scrolls to structured help. The symbology selector lists ten formats with plain-language hints—Code 128 for dense alphanumeric logistics strings, Code 39 when legacy systems cap character sets, EAN-13 and EAN-8 for consumer retail GTIN contexts, UPC-A and UPC-E for North American packaging variants, ITF-14 for fourteen-digit case codes with modulo-ten validation, Codabar when you need librarian or healthcare-style delimiters, MSI for purely numeric internal tickets, and Pharmacode for the narrow integer range Laetus documentation describes.
Input validation runs before render: digit-only formats strip accidental spaces, GTIN-family check digits are compared against the same weighting JsBarcode applies, Pharmacode bounds are enforced, and Code 39 character sets are screened so you see an immediate error instead of a silent failure. The preview panel hosts a live SVG element that repaints on a short debounce while you type, with status text announcing loading, success, or blocking validation. Customization sliders adjust module width in pixel units understood by the renderer, overall bar height, optional caption font size when text is visible, and a switch that hides human-readable output for purely graphic compositions. Color pickers pair with HEX fields validated to hash RGB syntax using design tokens, not hardcoded hex in layout CSS.
Export offers three codecs. SVG serializes the current DOM subtree—ideal for Inkscape cleanup, Illustrator placement, or responsive web embedding. PNG preserves sharp edges with transparency-capable backgrounds when you choose colors without alpha. JPEG fills a white matte under the bars when lossy compression is required for strict upload limits. Raster downloads multiply the SVG’s intrinsic pixel box by DPI divided by ninety-six so a three-hundred-DPI choice approximates print-oriented pixel density relative to the CSS pixel baseline rather than inventing physical inches without a declared label width. Download buttons disable while validation fails or the engine chunk is still loading, and toast feedback confirms each save.
Symbology breadth versus specialty encoders
Enterprise printers add RFID, GS1 DataBar, and proprietary stacked formats. This tool focuses on ubiquitous linear types small businesses and creatives touch weekly, keeping bundle size reasonable through dynamic import of JsBarcode only when the page loads.
Accessibility and keyboard use
Sliders expose aria labels, the preview SVG exposes a descriptive img role, validation errors use role alert, and status updates polite-live so screen-reader users hear render progress without noisy chatter.
Technical details
Linear symbologies encode data by varying bar and space widths according to digit or character lookup tables. Code 128 compresses ASCII using three code sets and shift rules, which is why it carries more payload than Code 39 for the same inch width. EAN-13 interleaves left-hand and right-hand guard patterns around six-plus-six digits with a leading system digit that selects parity encodings for the left half; the thirteenth digit is a modulo-ten checksum weighted alternately across the preceding twelve digits. UPC-A is structurally similar with eleven data digits plus check; UPC-E compresses zero-stuffed GTINs when manufacturer item rules allow. ITF-14 is an Interleaved 2 of 5 variant padded to fourteen digits with a checksum derived from the first thirteen. Codabar wraps content between start and stop symbols A–D; JsBarcode can prepend and append default guards when you supply only the body. MSI represents each decimal digit in four-bit patterns with optional modulo variants in other software; here the base MSI encoder is exposed. Pharmacode is a one-track binary ladder where only integers between three and one hundred thirty-one thousand seventy validate.
Raster export multiplies the SVG layout box by DPI over ninety-six, approximating how many device pixels correspond to a chosen print resolution when designers think in CSS pixels first. Scanners care about quiet zones, contrast, and physical module width more than abstract DPI metadata, so always leave white margin around bars and avoid compressing JPEG so aggressively that edges soften. SVG bypasses pixel grids entirely, making it the archival format when downstream tools scale for large-format signage.
Check digits you can sanity-check by hand
For EAN-13, multiply alternating digits by one and three from the left through the twelfth position, sum, subtract from the next multiple of ten, and compare with digit thirteen. UPC-A uses a different odd-even weighting on eleven body digits—your instructor may ask you to derive both to see why libraries implement separate functions.
Why preview and print might differ
Raster scaling uses the renderer’s computed SVG width and height; extreme module widths or long Code 128 strings widen the graphic. If a printer driver applies additional scaling, measure the printed module width with a loupe and adjust bar width sliders until the pitch matches your scanner datasheet.
Use cases
Product labeling teams export SVG barcodes into InDesign when a single pallet run needs a temporary GTIN before SAP master data catches up. Inventory managers testing a new WMS integration paste Code 128 location codes into Confluence diagrams so engineers see real encodings rather than gray rectangles. Retail pricing experiments print EAN-13 symbols on shelf talkers for A/B tests of scanner speed under LED lighting. Shipping coordinators mock ITF-14 case labels for photography before flexographic plates arrive. Library volunteers rejuvenate Codabar asset tags for makerspace tool cages. Event operations print MSI-encoded ticket numbers on thermal rolls when the registration vendor exposes only CSV dumps. Asset-tracking startups embed UPC-E on miniature hang tags where packaging height is constrained.
Photographers building portfolio props layer transparent PNG barcodes over bottle labels in Photoshop, matching ink color to plate separations. SaaS onboarding teams drop PNG examples into docs so API consumers recognize valid payload lengths. QA automation engineers snapshot Pharmacode edge values to regression-test decoders. Educators export JPEG slides that show both bars and digits for classroom discussion of modulo checksums. Cross-functional pods link from this page to Random Photo Gen for mock product shots, Solid Color Generator for flat studio backdrops, Copyright Notice Generator for rights lines beside packaging art, and Text Watermark before sharing comps publicly.
From creative mock to production handoff
Treat browser-generated symbols as proofs until prepress confirms dimensions, quiet zones, and substrate contrast. Export SVG when your vendor prefers vector sources; export three-hundred-DPI-scaled PNG when a vendor specifies pixel counts per inch without supplying a template.
Pairing with SynthQuery image utilities
After generating a code, you might rename batches of exports with Image Name Changer, organize campaign folders with Batch Renamer, or embed imagery in documentation with JPEG-to-SVG base64 embed workflows. Each tool documents its own privacy story.
How SynthQuery compares
Paid suites such as BarTender, NiceLabel, or CODESOFT integrate databases, RFID, regulated validation, and hardware drivers—essential when a plant floor prints millions of compliant labels a day. Adobe Illustrator plugins and online generators that upload your data to their cloud may be convenient yet introduce custody questions for confidential SKUs. SynthQuery targets the middle moment: you need a correct linear symbol, multiple symbologies in one place, vector SVG for design tools, and quick raster exports with a print-oriented scale factor—without subscription gates for this utility path. It is not a GS1 membership substitute, not a batch RIP controller, and not a substitute for verifier hardware that grades ISO/IEC print quality.
Aspect
SynthQuery
Typical alternatives
Deployment friction
Open the page, choose format, type data, download—no installer, no sign-in for this encoder path.
Enterprise label apps require licensing, printer drivers, and template repositories before the first label.
Symbology mix
Ten linear types in one panel, helpful for cross-training and creative prototypes.
Some free sites expose only Code 128 or only retail GTIN formats.
Vector output
SVG download preserves crisp edges for DTP pipelines.
Many browser toys emit only low-resolution PNG.
Print-minded raster scaling
DPI presets scale exports relative to the ninety-six CSS pixel baseline.
Generic converters may ignore DPI or mislabel pixel dimensions.
Depth versus compliance suites
No automated GS1 Digital Link, no RFID, no regulated audit trail.
Compliance platforms bundle issuance history, approvals, and verifier integrations.
How to use this tool effectively
Follow this sequence whenever you need a scannable linear barcode without opening a heavyweight label server.
Step 1: Choose the symbology
Use the dropdown to match your downstream scanner or standard operating procedure. Retail packaging typically expects EAN-13 outside North America and UPC-A within it; shortened UPC-E appears on small formats. Logistics teams favor Code 128 when alphanumeric container IDs matter. Case cartons may specify ITF-14. Internal numeric-only tickets might use MSI. Pharmacode is intentionally niche—select it only when your brief references Laetus-style encoding.
Step 2: Enter validated data
Type the payload in the data field. Digit formats ignore spaces you paste accidentally. If validation complains about a check digit, recompute or paste the full verified string from your PIM. For Code 39, stay within the allowed character set. For Pharmacode, stay inside three through one hundred thirty-one thousand seventy.
Step 3: Tune appearance
Increase module width when printers spread ink or when cameras decode from a distance; decrease it when a label is crowded. Raise bar height for handheld scanning comfort; lower it for slim jewelry tags. Set background and bar colors that preserve high contrast—avoid yellow on white or red on pink. Toggle human-readable text when the design already prints digits separately; shrink or grow caption font size when text collides with guard bars.
Step 4: Watch the live preview
The SVG preview updates shortly after you pause typing. If the panel empties, read the inline error: it is cheaper to fix validation now than to discover a bad symbol at the packing line.
Step 5: Pick export format and DPI
Choose SVG when a designer will place the art in vector software. Choose PNG when you need transparency-friendly pixels. Choose JPEG only when a destination mandates lossy files—remember JPEG can feather edges if quality is too low. For PNG or JPEG, pick a DPI preset that matches how you think about print—three hundred for quality proofs, ninety-six for screen-first slides.
Step 6: Download and integrate
Hit the download button for your codec. Import into Figma, Affinity, or the Adobe suite; embed in slide decks; or attach to tickets. When campaigns also need AI copy checks, send prose through /detect and /humanizer. Explore /free-tools for companion utilities and keep https://synthquery.com/tools bookmarked for the full catalog.
Limitations and best practices
This generator does not register GTINs with GS1, does not issue company prefixes, and does not replace verifier hardware or ISO/IEC grading reports. Always confirm symbology and payload rules with trading partners before mass production. Batch generation across thousands of rows is intentionally out of scope here—export spreadsheets from your ERP and drive a dedicated label server instead. When you need two-dimensional QR codes for URLs or vCard payloads, use a QR-specific tool; mixing symbologies on the same asset without design intent confuses users. Keep minimum quiet zones (white margin) around symbols; cropping tightly for aesthetics is a leading cause of no-reads. Store masters as SVG when possible, then derive PNG or JPEG per channel to avoid generational loss.
Browse every lightweight utility; the directory at https://synthquery.com/tools lists the complete SynthQuery catalog.
Frequently asked questions
Use EAN-13 where twelve data digits plus a check digit fit the packaging common outside North America; the first digit often encodes the GS1 prefix family. 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—your merchandising spec should state which family to render. Always allocate a quiet zone left and right of the symbol so laser scanners can lock onto the guards. This tool validates check digits before drawing so you catch typos early, yet it does not prove GS1 has issued your company prefix—that remains a business registration step upstream.
Code 128 switches between code sets to encode full ASCII efficiently, yielding shorter bars for the same payload—helpful on shipping labels and warehouse totes where length matters. Code 39 is older, self-checking per character, and restricted to uppercase letters, digits, and a handful of symbols; legacy systems sometimes mandate it because firmware never upgraded. If integrators specify 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.
Scanners decode based on contrast, focus, module width, and quiet zones—not on marketing DPI labels alone. SVG exports scale cleanly, but if you shrink them onto a tag smaller than your scanner’s minimum module spec, reads will fail. Raster exports multiply the SVG’s layout box by your chosen DPI factor relative to ninety-six CSS pixels; that is a practical proxy for print workflows, yet the final reliability still depends on printer mechanics, substrate gloss, and ink spread. Always pilot-scan a proof label before committing to a ten-thousand-piece run.
Consult the datasheet for each device: imager-based guns tolerate skew and distance better than legacy wands, but every engine publishes minimum element width and recommended field of view. As a rule, keep bar height tall enough for tilted reads—short bars look chic on mockups yet frustrate operators. Increase module width when cardboard fibers scatter light or when shrink-wrap adds glare. If you cannot find documentation, print a ladder of sizes and perform empirical tests rather than guessing.
The encoding software is MIT-licensed JsBarcode, and SynthQuery grants you the files you generate for lawful business use subject to our site terms. Commercial viability of the encoded data is separate: GTINs must come from authorized numbering organizations, internal SKUs must not collide with partner catalogs, and regulated industries may require additional human-readable elements. You are responsible for compliance with contracts, labeling laws, and industry guides. When in doubt, ask your retailer or 3PL for a written specification before printing.
No. GS1 compliance spans identifier issuance, data attributes, application identifiers in some contexts, placement on packaging, and often verification with graded samples. This page helps you visualize and export linear symbols with syntactically valid payloads for the supported symbologies, but it does not audit your enterprise data model, does not register prefixes, and does not produce Digital Link URIs. Treat output as engineering and creative assistance, not certified regulatory deliverables.
Photo Barcode Gen is optimized for interactive, single-symbol workflows with immediate preview. For high-volume or database-driven printing, export CSV or SQL from your system of record and feed a label application that supports merge fields, printer-native commands, and rollback auditing. If you only need a handful of sequential codes, manual repetition here may still be faster than provisioning an enterprise template—choose based on cardinality and compliance requirements.
Pharmacode is a specialized one-track binary encoding historically tied to pharmaceutical packaging lines; JsBarcode enforces three through one hundred thirty-one thousand seventy because values outside that interval have no defined pattern in the reference algorithm. If your stakeholder asks for “any number,” they may actually need Code 128 or another symbology—clarify the scanner firmware and the governing standard before locking the format.
QR codes encode URLs, Wi-Fi joins, or vCards in a square grid; linear barcodes encode SKUs and short identifiers along a line. Photographers sharing galleries often want QR for smartphone navigation, while linear codes appear on product packaging mockups. SynthQuery offers separate utilities for campaign links and QR-style exports elsewhere—use the right graphic for the story you are telling. When text authenticity matters alongside imagery, route copy through the AI Detector and Humanizer from the core tools menu.
SVG is the best master when you may resize or recolor later because it stores geometry, not a fixed pixel grid. PNG preserves sharp edges and supports solid backgrounds you choose; pick PNG when uploading to CMS fields that reject SVG. JPEG is smallest on photographic scenes but introduces loss around high-contrast edges—acceptable for slides, risky for tiny modules. Keep an SVG plus one lossless PNG in version control when stakeholders disagree on downstream tools.
Photo Barcode Gen - Free Online Image Utilities Tool