Link Code Generator Logo
Link Code Generator

Free Online Barcode Generator — CODE128, EAN-13, UPC & More

Generate, preview, and download 1D barcodes in your browser. Supports Code128, EAN-13, EAN-8, UPC-A, UPC-E, and more. No signup needed.

Visual Settings

2px
100px

Barcode Preview

Privacy-First Barcode Generation

Most online barcode generators send your product data, inventory SKUs, or business-sensitive information to a remote server to process the image. This tool generates barcodes entirely inside your browser using the open-source JsBarcode library — no data is ever transmitted to our servers. Your product catalog and inventory numbers stay private.

Which Barcode Format Should You Use?

  • CODE128: The most versatile 1D barcode. Encodes letters, numbers, and special characters with high density. Use this as your default if you are not bound by a specific retail or logistics standard.
  • UPC-A (Universal Product Code): The North American retail standard. Requires exactly 12 numeric digits (the generator can auto-calculate the check digit from 11 digits). Required by most major US retailers for shelf products.
  • EAN-13: The global equivalent of UPC, widely used in Europe, Asia, and Latin America. Requires 13 numeric digits. Used for products sold internationally.
  • EAN-8: A smaller version of EAN-13 for products where space is limited on the packaging. Requires 8 numeric digits.
  • CODE39: An older but widely supported format used in automotive, government, and military applications. Letters, numbers, and a limited set of characters.
  • ITF-14: Used on outer packaging and cartons to encode the quantity of units inside (case packs). Encodes a 14-digit GTIN and features the distinctive bearer bars.

SVG vs. PNG: Which Format to Download?

Download as SVG for print-quality barcodes that can be scaled to any size without pixelation — ideal for packaging artwork files, label templates, and design documents.

Download as PNG for web use, inventory systems, email, or anywhere that requires a standard raster image format. PNG barcodes are easy to embed and compatible with all label printing software.

Frequently Asked Questions

Why does the UPC barcode show "invalid data" error?

UPC-A requires exactly 11 or 12 numeric digits — no letters or special characters. Enter your 11-digit product number (without the check digit) and the encoder will calculate and append the check digit automatically. EAN-13 similarly requires exactly 13 numeric digits.

Can I use these barcodes commercially?

The barcodes themselves are free to generate and use commercially. However, if you plan to sell products in retail stores, you will need a GS1-registered barcode number to ensure global uniqueness. GS1 is the international standards body that assigns company prefixes. Visit gs1.org to register your company prefix before creating UPC or EAN numbers for retail use.

What resolution should I use for printing barcodes?

For print, always use the SVG file — it is vector-based and prints at any resolution without quality loss. If you must use PNG, export at the largest size possible. For barcode scanners to read printed barcodes reliably, the barcode should be at least 1 inch wide in print, with uniform quiet zones (blank space) on each side.

Developer tools delivered free

Deep link guides, Open Graph tips, and new dev tools — straight to your inbox.

All Tools Directory

Every free tool, in one place. Perfect for anyone who needs to create QR codes, build UTM-tagged links, generate contact links, or manage campaign URLs. No account required.

Amazon Affiliate Link Builder

Clean up messy Amazon URLs and generate perfect Associate links using your affiliate tag.

Link Expirator & Countdown Snippet

Generate a Javascript snippet to automatically expire a link and redirect traffic after a specific date and time.

Link Cloaker & Redirect

Generate HTML, PHP, and .htaccess redirect codes to hide ugly affiliate links.

Link Rotator

Generate a JavaScript snippet to randomly rotate traffic across multiple destination URLs based on percentage weights.

A/B Split Tester

Generate a Javascript snippet to split landing page traffic between two URLs for A/B testing.

URL Shortener

Instantly shorten long URLs to display clean links on social media.

UTM Link Builder

Easily add UTM parameters to URLs so you can track Custom Campaigns in Google Analytics.

SMS Link Generator

Create clickable sms: links that open the native text message app with a phone number and pre-filled message. Generates the URL and HTML code.

Mailto Link

Create advanced email links with pre-filled subjects, CC, BCC, and body text. Generates standard URLs and HTML code.

Direct Review Link

Generate direct 5-star review links for Google My Business, Yelp, Facebook, and Trustpilot to send to your customers.

Social Share Link

Create 1-click sharing links for Twitter, Facebook, LinkedIn, Reddit, and more. Generate custom URLs and HTML buttons.

Telegram Link

Create direct Telegram links using a username or phone number. Generates t.me URLs and HTML code.

WhatsApp Link

Create click-to-chat WhatsApp links with pre-filled messages. Generates wa.me URLs and HTML code.

Barcode (1D)

Generate, preview, and download 1D barcodes (Code128, EAN-13, UPC, etc.) instantly in your browser.

GA4 Cross-Domain Tracker

Generate Google Analytics 4 (GA4) cross-domain tracking code snippets to maintain user sessions across multiple websites.

Smart App Deep Link

Generate smart routing scripts that detect the user OS and redirect to native mobile apps falling back to web URLs.

HTML Link

Generate clean, perfectly formatted HTML anchor tags with custom rel, target, class, and ID attributes.

Open Graph Meta Tag

Generate the perfect Open Graph and Twitter Card HTML meta tags for social media link sharing optimization.

Payment URL

Generate unified deep links to accept payments via PayPal, Venmo, and Cash App.

QR Code Generator

Create custom QR codes with colors, logos, and multiple export formats.

WiFi QR Code

Create a WiFi QR code for your home or business. Guests scan to connect instantly — no password typing needed.

vCard QR Code

Create a vCard QR code for your business cards. Seamlessly share contact info straight to their phone book.

Social Media QR Code

Generate a QR code linked to your Instagram, Twitter, or TikTok.

Payment QR Code

Generate a payment QR code for Venmo, PayPal, or Stripe.

Event QR Code

Generate an iCalendar Event QR code for your invitations.

Location QR Code

Generate a QR code for a physical location mapping.

Email QR Code

Generate a mailto QR code.

Phone Call QR Code

Generate a phone call QR code.

SMS QR Code

Generate an SMS text message QR code.

App Store QR Code

Generate a QR code to link to your app on the App Store or Google Play.

Universal Location & Maps Link

Generate universal smart routing scripts and direct deep links for Google Maps, Apple Maps, and Waze.