- All tools
- Barcode generator
How do I generate a barcode?
Type your number or text, pick a format such as Code 128, EAN-13 or UPC-A, and the page draws the barcode right away and lets you save it as SVG or PNG. For EAN, UPC and ITF-14 it checks the digits and works out the check digit for you. It draws the bars only: it does not issue or register product numbers.
- Enter the value and choose the barcode format.
- Adjust bar width, height, margin and colours if you need to.
- Download the SVG or PNG, or copy the image.
What this page can do
- Six formats: Code 128, EAN-13, EAN-8, UPC-A, Code 39 and ITF-14
- Checks the digits for each format and says in plain words what is wrong
- Computes the check digit and verifies one you typed
- Bar width, height, margin, text on or off, and your own colours
- Download as vector SVG or as PNG at 1× to 4×
- Copy the barcode as an image where your browser allows it
When to use this page
- Making labels for inventory, shelves, files or equipment with Code 128.
- Creating a test barcode to try out a scanner, a point-of-sale system or an app.
- Drawing the bars for a product number you already own, to place in a design.
When to use something else
- You need an official product number — EAN and UPC numbers are licensed through GS1, not created here.
- You need a QR code or another two-dimensional code — use the QR code generator.
- You need hundreds of different labels at once — use label-printing software or a spreadsheet add-in.
How it compares with other options
Label software and spreadsheet add-ins handle batches, serial numbers and printer settings, which this page does not. Many online generators create the image on their server, so the value you type travels to them. This page uses the open-source JsBarcode library to draw the bars in your browser, so you get a clean vector SVG and the digits stay on your device. It draws what you enter; it cannot tell you whether a number is registered to anyone.
Where your data goes
Nowhere. The barcode is calculated and drawn by your own browser, and nothing is saved or sent to a server. You can check it yourself: open your browser’s network panel while you type — the page still loads its own code and any ads, but no request carries the value you enter.
Questions about this tool
Can I use a barcode from this page on a product I sell?
Only if the number is yours. Retail EAN and UPC numbers are issued through GS1, which licenses a company prefix to you. This page only draws the bars for whatever digits you type; it does not register or reserve numbers. Made-up EAN or UPC numbers may clash with someone else’s product.
Which barcode format should I choose?
Use Code 128 for general labels, inventory and shipping: it holds letters, digits and symbols in a compact space. Use EAN-13 or EAN-8 for retail products outside North America, and UPC-A for retail products in the US and Canada. Use ITF-14 for outer cartons and Code 39 only if an older system asks for it.
What is the check digit and why was my number changed?
EAN, UPC and ITF-14 end with a check digit calculated from the other digits, so scanners can spot misreads. If you enter the number without it, the page adds the correct digit and shows it. If you enter all digits and the last one is wrong, the page refuses and tells you the digit it expects.
Why won’t my printed barcode scan?
The usual causes are a printout that is too small, too little blank space at the left and right (the quiet zone), low contrast, or a blurry print. Keep the bars dark on a light background, leave the margin in place, print at a size the scanner can resolve, and always test with the real scanner or phone app before printing a batch.