Barcode Generator
Generate Code 128 and EAN-13 barcodes in your browser and download them as PNG images.
Category: Image Tools
When to use?
Use it when you need a barcode for product labels, inventory stickers, or identification codes. It supports Code 128 for text and numbers and EAN-13 for 13-digit product codes, all generated entirely in your browser.
How to use
- Choose a barcode type (Code 128 or EAN-13).
- Enter the content to encode.
- Adjust scale and text options, then download as PNG.
Input Explanation
Code 128 accepts ASCII characters 32–126; EAN-13 accepts 12 digits (check digit auto-calculated) or 13 digits.
Calculation Basis
Code 128 uses the standard pattern table with a mod-103 checksum; EAN-13 uses L/G/R parity encoding with a mod-10 check digit, rendered to a canvas.
Usage Examples
- Product & inventory labels - Quickly create identification barcodes for in-house inventory.
- Event & ticket codes - Encode alphanumeric IDs with Code 128 for printing.
Examples
- Code 128: 'BLING-2026' → letters, numbers and symbols
- EAN-13: '880123456789' → check digit added automatically
Cautions
- Scan reliability depends on screen and printer resolution — test with a real scanner first.
- EAN-13 here is not an officially registered retail code; use a properly issued code before commercial distribution.
FAQ
Which barcode formats are supported?
Code 128 for general text/numbers and EAN-13 for product codes.
Can I enter just 12 digits?
Yes — EAN-13 calculates the final check digit automatically to make 13 digits.
Is my data uploaded?
No. Barcodes are generated only in your browser.
Related Tools
- QR Code Generator - Convert text or a URL into a QR code and download it as an image.
- Chart Generator - Turn label/value data into bar, line, pie or doughnut charts and download them as SVG or PNG.
- Wi-Fi QR Code - Make a QR code from Wi-Fi network info so guests can connect easily.
- Image Resizer - Resize multiple images in the browser with aspect ratio kept, no server upload.
- Image Cropper - Enter pixel coordinates to crop just the area you need, in the browser.
- Image Rotate / Flip - Rotate images in 90-degree steps or flip them horizontally/vertically.