Online Barcode Generator: Code128, EAN, UPC, ITF-14, PDF417, Data Matrix
Generate downloadable 1D and 2D barcodes locally in the browser for retail products, logistics cartons, asset labels, tickets, ISBN publishing, and manufacturing traceability. Adjust symbology, scale, quiet zone, text, colors, and background, then export PNG, SVG, or JPG.
- Supports Code128, Code39, EAN-13, EAN-8, UPC-A, UPC-E, ITF-14, Interleaved 2 of 5, PDF417, Data Matrix, and QR
- Built-in input checks for EAN/UPC/ITF-14 with check-digit guidance
- Adjust export clarity, spacing, colors, text display, and zoom preview
- Runs fully in-browser with no server upload
Barcode Generator
Generate Code128, Code39, EAN, UPC, ITF-14, PDF417, Data Matrix, and other 1D/2D barcodes with preview, validation hints, and PNG/SVG/JPG export.
General-purpose 1D barcode for IDs and internal numbers.
Presets quickly adjust scale, height, padding, and text display.
Controls exported clarity and dimensions.
Keep enough quiet zone around bars for scanners.
Higher values increase distance between bars and text.
Background color affects export output.
Preview is for visual check; final quality depends on export settings.
What this tool can do
A practical workflow built around valid input, readable output, and export-ready files so generated codes are less likely to fail in print or scanner tests.
-
Multi-format generation
Covers common retail, logistics, warehouse, and asset-management barcode standards.
-
Input validation
Includes EAN/UPC/ITF-14 length and check-digit guidance to reduce invalid output.
-
Export tuning
Adjust scale, spacing, height, and text before downloading PNG/SVG/JPG.
-
Local processing
Everything runs in-browser, suitable for privacy-sensitive workflows.
-
Zoomed preview checks
Open enlarged preview to inspect module edges, quiet zone spacing, and text readability before export.
-
Preset-driven consistency
Quick presets help teams generate labels with repeatable, standardized output settings.
How to use
Use a linear flow from data input to export validation so output is both visually correct and scanner-ready.
- 1
Enter the code value and decide whether your use case is retail, logistics, internal ID, or high-capacity payload.
- 2
Choose the symbology that matches the business rule (EAN/UPC for retail, ITF-14 for cartons, Code128 for internal IDs, 2D formats for dense data).
- 3
Resolve validation hints first, especially length and check-digit errors in EAN/UPC/ITF-14 formats.
- 4
Tune export settings (scale, height, padding, text, colors, background) according to your real output medium.
- 5
Open zoom preview for final inspection, then export PNG/SVG/JPG and verify with actual scanner devices.
Key features
This is more than drawing bars from text: the workflow is shaped around scan reliability, print handoff, and repeatable team output.
- Format-specific constraints reduce invalid barcodes before export
- Check-digit guidance helps fix EAN/UPC/ITF-14 errors quickly
- One page supports both 1D and 2D formats for cross-workflow use
- Quick presets accelerate label and print setup for recurring tasks
- Preview and export stay together so errors, output size, and download actions are visible while tuning settings
- Fine control over bar/text colors, alignment, spacing, and background
- Zoom preview helps catch readability issues before production
- Fully local processing keeps sensitive payloads in-browser
Common use cases
Applicable when barcodes must be generated, printed, scanned, and accepted by downstream systems.
-
Retail products
Generate EAN/UPC for shelf and distribution workflows.
-
Logistics cartons
Use ITF-14 and I2of5 for carton-level handling and routing.
-
Asset tags
Use Code128/Code39 for equipment and inventory IDs.
-
Documents and tickets
Use PDF417/Data Matrix for denser encoded payloads.
-
Book publishing
Use ISBN-compatible EAN-13 values for cataloging and POS compatibility.
-
Manufacturing traceability
Use Data Matrix for part-level lot tracking and production handoff steps.
-
Warehouse pick labels
Generate consistent labels with stable spacing for long-term scanner reliability.
-
Integration testing
Create multi-format sample codes quickly to validate scanner and backend compatibility.
Practical guidelines
Treat these as a pre-release checklist for scanner reliability and print stability.
- Prefer SVG for print workflows
- Use dark bars on light background
- Keep enough quiet zone
- Validate with multiple scanners before release
- Use standards-compliant input length for retail symbologies to avoid check-digit errors
- Keep scale/height/padding consistent for each label batch
- For long content, prefer 2D formats to avoid dense 1D bars
- Use non-transparent backgrounds on complex print surfaces when contrast is uncertain
For longer URLs, contact details, Wi-Fi payloads, or general scannable text, use the QR Code Generator tool. If the content contains query parameters, callback URLs, or non-ASCII link text, clean it first with the URL Encode & Decode tool. For text that needs to move between API fields, embeds, or encoded payloads, pair this workflow with Base64 Encode & Decode .
Limitations and notes
Knowing these limits helps avoid “generated but not operationally usable” output.
- Scanner implementations vary across devices and systems
- Manual code edits may break check digits
- Very long data may be better suited for 2D formats
- Even valid symbology can fail with low contrast or reflective material
- PNG may degrade in very small print sizes; prefer SVG for precision output
- Optimal settings differ between 1D and 2D symbologies; tune separately
- A barcode being syntactically valid does not guarantee compliance with downstream business rules
- Barcode itself is not encryption; avoid embedding sensitive raw values directly
Frequently asked questions
Answers to common questions about usage, data handling, result checks, and practical limits.
01 Why does my barcode fail to scan?
Why does my barcode fail to scan?
Typical causes include wrong format, invalid check digit, low contrast, or insufficient quiet zone.
02 PNG or SVG for export?
PNG or SVG for export?
Use PNG for simple digital use and SVG for print/design workflows.
03 Is data uploaded?
Is data uploaded?
No. Barcode generation runs locally in your browser.
04 Why does numeric EAN/UPC input still fail?
Why does numeric EAN/UPC input still fail?
Those formats require both valid length and valid check digit, not just numeric content.
05 Why must Interleaved 2 of 5 use even digits?
Why must Interleaved 2 of 5 use even digits?
It encodes numeric pairs, so odd-length input cannot be represented correctly.
06 Does transparent background hurt scan reliability?
Does transparent background hurt scan reliability?
Not directly, but the final surface behind the code must provide enough contrast.
07 Should I display human-readable text under bars?
Should I display human-readable text under bars?
Enable it for manual verification or fallback entry; disable when space is constrained.
08 Preview looks fine, but printed labels fail. Why?
Preview looks fine, but printed labels fail. Why?
Check printer resolution, scale distortion, reflective substrates, and quiet-zone width.
09 How can teams keep output consistent?
How can teams keep output consistent?
Standardize format + scale + height + padding and reuse the same presets across workflows.
10 How should I choose between Code128 and Code39?
How should I choose between Code128 and Code39?
Use Code128 for most modern systems (better density and flexibility). Use Code39 for legacy compatibility workflows.
11 Why should I test with multiple scanner types?
Why should I test with multiple scanner types?
Different scanners behave differently under glare, low contrast, angle, and distance. One passing device is not enough for production confidence.
12 How do QR, PDF417, and Data Matrix differ?
How do QR, PDF417, and Data Matrix differ?
All are 2D, but they differ in density, ecosystem usage, and scanner support patterns. Choose based on payload size, label size, and system compatibility.
13 Can I use generated barcodes directly in production?
Can I use generated barcodes directly in production?
Run a pilot print batch first and validate the full chain (printing, substrate, scanner hardware, and backend acceptance) before mass rollout.
Continue with more encoding tools
Barcodes work well for identifiers, products, cartons, and labels. For links, long text, URL parameters, or embedded encoded content, related encoding tools may fit better.