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; this number is not assigned by GS1.

Loading…
Free Barcode Generator
Draw Code 128, EAN-13, and UPC-A label images locally. Download PNG or SVG; the symbol is drawn in your browser and the number is not a GS1 assignment.

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 — no second server encode. • For checksum-valid dummy GTIN strings (fixtures), use <a href="/en/test-gtin-generator">Test GTIN Generator</a> — not this page.

Options

  • Symbology

    Switches the linear format and input rules: free text for Code 128; 12- or 13-digit EAN-13; 11- or 12-digit UPC-A 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

Fixture GTIN 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 without an account, upload, or SVG 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 label images in the browser — PNG and SVG download, not a GS1 lookup.

Explore other tool categories

Minify

Shrink code and assets for production — minify JavaScript, CSS, HTML, JSON and XML before gzip or CDN deploy.

Unminify

Expand minified or compressed code — unminify JavaScript, CSS, TypeScript, SCSS, LESS, SQL, YAML and other formats when debugging or reviewing.

Conversion

Transform data between JSON, YAML, XML and CSV locally — no server uploads.

Encoding

Encode or decode Base64, URL components and HTML entities — client-side only.

Serialization

Serialize and deserialize PHP data structures beside JSON workflows.

JSON Tools

Validate, format, diff and explore JSON payloads — complementary to minifiers and converters.

SVG Tools

Preview, optimize with SVGO, export Data URI, resize, beautify, convert to JSX and validate SVG — all 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 the browser — pair with beautify or minify for a full stylesheet workflow.

Color & CSS Tools

Paste-local WCAG contrast checking with modern CSS color syntax — pair and matrix views, never uploaded.

DevOps & Infra

Terraform HCL format/validate/minify, Dockerfile format & lint, Docker Compose and .env validation.

CI/CD

GitHub Actions and GitLab CI — format YAML and check workflow/job structure in your browser.

Logs & observability

Line-oriented JSON/NDJSON and Nginx/Apache access logs — format, filter, validate, and CSV/TSV.

Kubernetes

Multi-doc manifests, structural validate, Ingress/Deployment starters, and Helm values formatting.

Networking / IP

CIDR, subnets, and IPv4/IPv6 helpers — in your browser.

Security & tokens

JWKS, X.509 certificates, and secrets scan — browser-local.

API & schemas

OpenAPI tools to format, validate, and lint your specs.

HTTP Tools

Paste-local cURL, HTTP messages, URLs, HAR files, and Cookie / Set-Cookie headers — format and inspect in your browser, never sent.

SEO / Web Tools

Generate meta tags, Open Graph, and Twitter Card output locally — previews simulated from your inputs, never fetched from your live site.

Developer utilities

Timestamps, UUID, ULID, Nanoid, cron, passwords, regex, slugify, number bases, case, text diff, and chmod — all client-side.

Text & Markdown

Count words, build Markdown TOCs, and clean line lists — all in your browser.

AI & LLM

Token counting, pricing estimates, and context-window fit — 100% browser-local.

Test Data

Synthetic field values for fixtures and DB seed — reserved-range phone numbers first.