Barcode Generator Online Free — Which Format to Use
A barcode is a machine-readable representation of data — typically a product identifier, inventory number, or tracking code — displayed as a series of parallel bars of varying widths. When scanned by a barcode reader or camera, the pattern is decoded back into its original number or text. Barcodes were invented in 1952 and first commercially deployed in the mid-1970s. Today there are dozens of barcode symbologies (formats), each optimised for different use cases: retail, logistics, healthcare, manufacturing, and more. This guide explains each major format and when to use it.
Quick Answer
A barcode is a machine-readable representation of data — typically a product identifier, inventory number, or tracking code — displayed as a series of parallel bars of varying widths. When scanned by a barcode reader or camera, the pattern is decoded back into its original number or text.
Try it now — free, no signup
Your images stay on your device. Nothing is uploaded to any server.
Step-by-Step Guide
4 steps · takes under 1 minute
Choose a barcode format
Select the format that matches your use case. For retail products: EAN-13 (international) or UPC-A (US/Canada). For shipping labels or inventory: Code 128. For industrial or government IDs: Code 39.
Enter your data
Type the value to encode. For EAN-13, enter 12 digits (the 13th check digit is calculated automatically). For Code 128, enter any text up to ~80 characters.
Customise colours and size
Choose bar colour and background, adjust bar height (40–200px) and width multiplier (1–4×), and toggle the human-readable text below the bars.
Download SVG or PNG
SVG is infinitely scalable — ideal for label software, Illustrator, or Canva. PNG at 3× resolution is best for Word documents, email, or direct image use.
100% Private — Zero Uploads
ImgToolkit runs entirely in your browser using the Canvas API. Your images are never sent to a server, never stored in the cloud, and never seen by anyone else. This makes it safe for sensitive documents, client work, medical imagery, and confidential screenshots.
Pro tip
All processing happens in your browser using WebAssembly and the Canvas API. No files are sent to any server — your images stay completely private.
Format & File Size Comparison
Same 1080×1080px photo processed four ways
| Format | Quality | File Size | Notes |
|---|---|---|---|
| PNG (original) | Perfect | 4.2 MB | No compression — too large for web |
| Compressed PNG | Visually identical | 1.1 MB | −74% — transparency preserved |
| JPG (85% quality) | Excellent | 310 KB | −93% · Best for photos |
| WebP (85%)BEST | Excellent | 205 KB | −95% · Recommended for web |
Based on a 1080×1080px photo. Results vary by image content and complexity.
Related Free Tools
All tools run in your browser — no account or upload needed
Frequently Asked Questions
5 questions answered
Ready to get started?
Free, instant — your files stay on your device. Always.
Generate a Barcode Free