Barcode Generator
Encode a product number or a line of text as a scannable barcode, drawn as a vector SVG.
What this tool does
Barcode Generator draws six one-dimensional symbologies: EAN-13, EAN-8, UPC-A, ITF-14, Code 39 and Code 128. The first four are fixed-length numeric codes used in retail and logistics; Code 39 carries capital letters, digits and a short list of punctuation; Code 128 carries any ASCII text, which makes it the usual choice for a reference of your own that no numbering authority issued.
The last digit of an EAN, UPC-A or ITF-14 number is a modulo-10 check digit, and this handles it in both directions. Supply the first twelve digits of an EAN-13 and the thirteenth is worked out and appended. Supply all thirteen and the check digit is recalculated and compared, so a number mistyped off a printed label is refused — with the digit it should have been — rather than quietly drawn as a symbol no till will accept.
Nothing is drawn on a server. JsBarcode is served from this site and fetched the first time you generate a symbol, then reused for the rest of the session, so the product code, order reference or serial you type is not uploaded anywhere and every run after that one works with the network disconnected. Output is a single SVG file, named after the value it encodes: vector, so the same artwork stays exact on a 30 mm shelf label and on a pallet placard instead of softening the way an enlarged PNG does.
Two limits matter before you print. The margin around the symbol is fixed at 10 pixels with no setting to change it, so from a bar width of 2 upwards it is thinner than the seven module widths EAN-13 wants clear to the right of the last bar — leave white space around the code in your own layout rather than relying on that margin. And ITF-14 is drawn without the bearer bar, the heavy frame required on shipping cartons, which makes it usable for internal case marking but not for a carton entering a retailer's supply chain. Data Matrix, PDF417, Codabar, MSI and GS1 application identifiers are not supported at all, and QR codes have a separate tool.
How to use it
- Choose the symbology. EAN-13 or UPC-A for retail products, EAN-8 for small packs, ITF-14 for outer cases, Code 39 for asset tags, Code 128 for any ASCII reference of your own.
- Enter the value. Digits only for the numeric formats, with or without the trailing check digit — spaces and hyphens are stripped. Code 39 is converted to upper case for you; Code 128 takes ASCII up to 80 characters, past which the symbol grows too dense to read reliably.
- Size and colour the bars. Bar width runs from 1 to 4 pixels per module and height from 20 to 400 pixels. Wider bars survive coarse printing. The number under the bars can be switched off when the label prints it separately.
- Save the SVG. One file per run, named after the encoded value. Keep the bars dark on a pale background — the colour pickers will happily produce a pairing no scanner can resolve.
Processing & privacy
Runs on your device. Your file is processed directly in this browser.
Common use cases
Relabelling stock for a till
An EAN-13 copied off the manufacturer's carton gives you a symbol the shop's scanner already recognises, with the check digit verified before anything is drawn.
Numbering your own inventory
Code 128 encodes a scheme of your own design — a bin location, a job number, a serial — without buying into an allocated range.
Tagging tools and equipment
Code 39 puts a room code, a serial or an ID prefix on a label in a format that predates Code 128 and is still read by long-serving warehouse hardware.
Replacing a torn or faded label
Type the printed number back in. If a digit was misread, the check digit fails and names the value it expected instead of producing a wrong barcode.
Questions
Does the number you type get uploaded?
Do I have to type the check digit?
Which symbology should I pick?
Can I make a GS1-valid retail barcode here?
Can I download a PNG?
Can I generate a run of barcodes from a spreadsheet?
Why is my printed barcode not scanning?
Related tools
- Video to GIF — Turn a short clip into an animated GIF.
- QR Code Generator — Create a QR code for a link, text, Wi-Fi or vCard.
- GIF Maker — Build an animated GIF from images or a clip.
- GIF Compressor — Reduce GIF file size by trimming frames and colours.
- GIF to MP4 — Convert a GIF to a much smaller MP4 video.
- GIF Splitter — Split an animated GIF into individual frames.