Free Barcode Generator — Code 128, EAN-13, UPC-A
Type a value and draw a linear barcode label in your browser. Live SVG preview with PNG and SVG download. The symbol is drawn locally, and this number is not assigned by GS1.
Developer notes
Drawing uses JsBarcode 3.11.0 with frozen black bars (#000000) and white background (#ffffff). Font and per-side margins are not exposed. EAN-13 and UPC-A accept digits only; spaces are not stripped. A missing check digit is calculated with GS1 mod-10 before draw; a wrong check digit is rejected. PNG export rasterizes the same SVG in a canvas, with no second server encode. For checksum-valid dummy GTIN strings (test data), use <a href="/en/test-gtin-generator">Test GTIN Generator</a>, not this page.
Options
Symbology
Switches the linear format and input rules. Code 128 takes free text, EAN-13 takes 12 or 13 digits, and UPC-A takes 11 or 12 digits, with GS1 check digit validation.
Show text under bars
Controls human-readable text (HRI) under the bars in the SVG and raster exports.
Bar height
Sets bar height in pixels (short 50, normal 80, tall 120). Taller bars can improve scan reliability on printouts.
Module width
Sets the width of one bar module in pixels (narrow 1, normal 2, wide 3), changing symbol density and overall width.
Related tools
GTIN test strings (not label images): Test GTIN Generator. More utilities on All tools.
When this is the right tool
You need a scannable linear barcode image for a mock SKU, internal ID, or demo label, not a GS1 registry lookup. You want Code 128 for arbitrary text or EAN-13 / UPC-A for retail-style numeric labels. You need PNG or SVG files with no account, no upload, and no paywall.
Barcode Generator FAQ
Browser-local linear barcodes
Is this a GS1 GTIN lookup or brand registry?
No. The page only draws the symbol you type. It does not verify ownership or assign a licensed GTIN.
Does it generate QR codes?
No. This page is limited to Code 128, EAN-13, and UPC-A linear symbologies.
Is my value sent to a server?
No. Validation, drawing, and file download run entirely in your browser.
What happens if my EAN-13 is one digit short?
The GS1 mod-10 check digit is calculated locally, shown in the preview, and included in downloads.
Barcode labels
Draw Code 128, EAN-13 and UPC-A labels and static QR codes in your browser, then download PNG or SVG. This is not a GS1 lookup.
Explore other tool categories
- Minify
Minify JavaScript, CSS, HTML, JSON, XML, SVG and other formats to cut the bytes you ship, before gzip or a CDN.
- Unminify
Make minified code readable again to debug or review it. Unminify JavaScript, CSS, TypeScript, SCSS, LESS, SQL, YAML and other formats.
- Conversion
Convert data between JSON, YAML, XML, CSV, TOML and other formats locally, with no upload to a server.
- Encoding
Encode or decode Base64, URLs, HTML entities and JWTs, and generate hashes and HMACs in your browser.
- Serialization
Serialize and deserialize PHP data structures beside JSON workflows.
- JSON Tools
Validate, format, repair, compare and explore JSON in your browser, alongside the JSON minifier and converters.
- SVG Tools
Preview, optimize with SVGO, export as a data URI, resize, beautify, convert to JSX and validate SVG in your browser.
- Beautify
Make code readable with consistent indentation. Beautify JavaScript, CSS, TypeScript, SCSS, LESS, Markdown, GraphQL, SQL, YAML and more in your browser.
- CSS preprocessors
Compile SCSS or LESS to standard CSS in your browser. Pair it with beautify or minify to handle a whole stylesheet.
- Color & CSS Tools
Check WCAG contrast, convert CSS colors and units, and generate shades, border-radius and box-shadow code in your browser.
- DevOps & Infra
Terraform HCL format/validate/minify, Dockerfile format & lint, Docker Compose and .env validation.
- CI/CD
Format GitHub Actions and GitLab CI YAML and check the structure of workflows and jobs in your browser.
- Logs & observability
Format, filter and validate JSON and NDJSON logs, and turn Nginx or Apache access logs into CSV or TSV.
- Kubernetes
Multi-doc manifests, structural validate, Ingress/Deployment starters, and Helm values formatting.
- Networking / IP
Subnet calculator, IP converter, range to CIDR, CIDR summarize and IP-in-subnet checks for IPv4 and IPv6, in your browser.
- Security & tokens
Inspect JWKS, verify JWTs, decode X.509 certificates, convert PEM and JWK, scan text for secrets and hash with bcrypt in your browser.
- API & schemas
Format, validate, lint and convert OpenAPI, JSON Schema and GraphQL SDL in your browser.
- HTTP Tools
Paste cURL commands, HTTP messages, URLs, HAR files and Cookie or Set-Cookie headers to format and inspect them. Nothing is sent.
- SEO / Web Tools
Generate meta tags, Open Graph, Twitter Card, robots.txt, sitemap.xml and JSON-LD in your browser. Previews come from your input, and your site is never fetched.
- Developer utilities
Timestamps, UUID, ULID, Nanoid, cron, passwords, regex, slugs, number bases, letter case, text diff, chmod and Lorem Ipsum, all in your browser.
- Text & Markdown
Count words, build Markdown tables of contents, turn CSV into Markdown tables and sort or deduplicate lines in your browser.
- AI & LLM
Count tokens, estimate API costs, check context-window fit, convert JSON to TOON and analyze prompts, all in your browser.
- Test Data
Dummy names, emails, phone numbers, addresses, dates, IBANs, card numbers and JSON, CSV or SQL rows for fixtures and database seeds. Everything is generated in your browser.