Respect quiet zones
Leave blank space at least ten times the narrowest bar width on each side so scanners can find the start/stop patterns.
Generate Code 128 or EAN-13 barcodes locally and export them as PNG.
Linear barcodes pair narrow and wide bars to encode alphanumeric data. Different industries favor specific symbologies based on capacity, checksum rules, and licensing requirements.
| Symbology | Character set | Typical use | Notes |
|---|---|---|---|
| Code 128 | All ASCII characters | Logistics, shipping labels, inventory bins | High density and supports variable length data. |
| EAN-13 | 12 data digits + checksum | Retail product identifiers worldwide | Requires GS1-issued prefixes and correct checksum. |
| UPC-A | 11 data digits + checksum | North American retail | UPC-A is a subset of EAN-13; pad with leading zero if needed. |
| ITF-14 | 14 digits | Shipping cartons and outer packaging | Printed with bearer bars to protect against skewed scans. |
Clean barcodes reduce misreads and chargebacks. Follow these guidelines before shipping labels or mass-printing packaging.
Leave blank space at least ten times the narrowest bar width on each side so scanners can find the start/stop patterns.
Dark bars on a light matte background maximize readability. Avoid glossy varnishes that reflect laser scanners.
Print samples at actual size and scan with the same devices your warehouse or retail partners use to catch issues early.
For Node.js install bwip-js. For Python install python-barcode and Pillow. Use EAN-13 sample 5901234123457 and test the printed image with your actual scanner.
import bwipjs from 'bwip-js';
async function renderBarcode(text, bcid = 'code128') {
const png = await bwipjs.toBuffer({
bcid,
text,
scale: 3,
includetext: true,
textyoffset: 8
});
return png;
}
renderBarcode('5901234123457', 'ean13').then(buffer => {
// save buffer to file system
});
import barcode
from barcode.writer import ImageWriter
def create_barcode(code: str, bcid: str = 'ean13', path: str = 'barcode.png') -> None:
generator = barcode.get_barcode_class(bcid)
ean = generator(code, writer=ImageWriter())
ean.save(path)
create_barcode('5901234123457')
The generator renders Code 128 and EAN-13 locally. EAN-13 checksums are calculated automatically when required.
Download the PNG, maintain the quiet zone when placing the code, and print with high contrast on matte stock.
No. All rendering occurs client-side, so product IDs or serial numbers stay on your device.
The current tool uses a fixed readable PNG layout. Print a sample at your final label size before production.
Scan the generated code with inventory scanners or mobile apps, confirm the checksum digit, and print a test label at the final size to ensure readability.
Protect text with AES-GCM and PBKDF2 tokens that stay on-device.
Generate MD5, SHA-1, and SHA-256 digests locally with Web Workers.
Convert any text to or from Base64 without leaving your browser.
Decode claims and verify HMAC signatures without network calls.
Validate, format, and diff JSON without network calls.
Format, minify and convert XML to JSON locally.
Experiment with regular expressions and capture groups locally.
Encode components and inspect query parameters locally.
Create collision-resistant UUID v4 identifiers using Web Crypto.
Build strong passwords with custom length, charset, and entropy.
Convert Unix timestamps into local, UTC and ISO dates.
Convert case, slugify, and clean strings on-device.
Switch between HEX, RGB, HSL, and Tailwind palettes instantly.
Design QR codes for text, Wi-Fi, contacts, email, or SMS locally.
Look up your public IP using disclosed external services.
Produce paragraphs, lists, and markdown filler text fast.
Compress JPG, PNG, WebP and AVIF images to a target size in your browser. Preview results, process batches and download images individually or as a ZIP.
Convert WebP and AVIF images to JPG or PNG locally. Batch convert supported images, control quality and transparency, preview results and download a ZIP.
Convert JSON and NDJSON to CSV for Excel, or CSV to JSON, locally. Flatten nested objects, choose columns and delimiters, and download UTF-8 results.
Decode Base64 or data URIs to an image preview and download, or encode an image file to Base64. Inspect dimensions and size without uploading your image.
Convert HEIC and HEIF photos to JPG or PNG in your browser. Choose quality, preview converted images and download individual photos or a batch ZIP.
Decode Base64 to PDF locally, preview pages with zoom and navigation, and download the decoded PDF. Supports raw Base64 and application/pdf data URIs.
Run the AES interoperability guide or read how these tools are checked.