Generate common 1D barcodes with JsBarcode, with automatic check-digit validation for EAN and UPC, adjustable bar width, height and colours, and download as high-resolution PNG or vector SVG. Create Code 128, EAN-13, UPC and other barcodes for products, labels and inventory, ready to print.
What does this tool do?
Generates scannable barcodes (Code 128, EAN-13, UPC and more) from your numbers or text — rendered crisply for printing on labels, packaging and books. Download as PNG or SVG for print.
It fits the way developers actually work: paste something in, get the answer, copy it out, move on. Keyboard-friendly, fast on huge inputs, and tolerant of the messy real-world text (extra whitespace, mixed line endings) that breaks stricter tools. The result is always one click from your clipboard.
Using it is simple: the inputs are “Barcode type”, “Value”, “Bar width”, “Height”, “Bar colour” and “Background”; the “bfmt” control offers “Code 128 (any text)”, “EAN-13 (retail products)”, “EAN-8”, “UPC-A”, “Code 39”, “ITF-14 (cartons)”, “Codabar” and “MSI” and more; “Download PNG” saves it as a file; “Download SVG” saves it as a file. Results update live as you work — there is no waiting and nothing to submit.
How do I use this tool?
Paste your input, adjust any options, and copy the result — the whole workflow is paste, glance, copy, with no waiting in between.
- Enter your values in “Barcode type”, “Value”, “Bar width” and the other fields.
- Results update instantly as you type — no button to press.
- Use “Download PNG” to save the result.
- Use “Download SVG” to save the result.
How does it work?
The input is encoded per the symbology’s specification into bar/space patterns with start/stop characters and checksums (EAN-13’s check digit is computed automatically). SVG output stays razor-sharp at any print size; PNG suits quick digital use.
Parsing is strict where it matters (formats with specs) and lenient where it helps (whitespace, line endings). Errors are reported at the exact position with a plain explanation, because a tool that just says “invalid” teaches nothing.
Use cases in Pakistan
Shopkeepers and small manufacturers print barcodes for inventory and POS billing; publishers need ISBN barcodes (EAN-13) for books; warehouses label cartons. A readable barcode at the scanner beats a pretty one — print at 100% scale.
From Lahore’s software houses to freelance developers working with Gulf and Western clients, these small utilities punctuate every workday: checking a payload, generating a key, converting a format. They are the screwdrivers of the trade — unglamorous, indispensable, and used dozens of times daily.
Limitations
Verify the symbology your scanner/system expects — Code 128 for general use, EAN-13 for retail products. Print quality matters: low-contrast or scaled-down barcodes fail at the till. This generates the image; it does not register product codes with GS1.
Edge cases in specifications can surprise: when a result looks wrong, check the spec’s fine print (or the tool’s stated conventions) before blaming the tool. For production-critical work, verify against your own toolchain as well.
Frequently asked questions
Which barcode type do I need?
Code 128 for general/internal use; EAN-13 for retail products sold in stores (it encodes the product number + check digit). When something looks wrong, test with the simplest possible input first — isolating the problem beats staring at a large payload.
Why won’t the scanner read it?
Usually printed too small, low contrast, or glossy reflection. Print at 100% scale, black on white, matte. Keep the original input saved somewhere; transformations are one-way streets and re-running from scratch is easier than undoing.
Can I encode letters?
Code 128 handles full ASCII; EAN-13/UPC are digits-only by standard. For production use, verify the output in your actual toolchain once — the browser and your server should agree, and it is worth confirming.
SVG or PNG for printing?
SVG — vector stays sharp at any size. Use PNG only for on-screen use. When something looks wrong, test with the simplest possible input first — isolating the problem beats staring at a large payload.
Is my data uploaded or stored?
No. This tool runs entirely in your browser — what you type or paste never leaves your device, is never sent to a server, and is never stored. Closing the tab removes all trace. Keep the original input saved somewhere; transformations are one-way streets and re-running from scratch is easier than undoing.
Is it really free? Do I need an account?
Yes, free, and no account needed. Open the page and use it — no sign-up, no trial, no watermark on results. For production use, verify the output in your actual toolchain once — the browser and your server should agree, and it is worth confirming.
Updated October 2026 · Built and tested by Sharjeel Tahir · How our tools are tested