Free barcode generator and QR code generator
Make a Code 128, EAN-13 or UPC-A barcode or a QR code in your browser and download it as SVG or PNG. No sign-up, no watermark, nothing uploaded.
How to make a barcode
- Choose the type. Code 128 for internal labels, EAN-13 or UPC-A for retail product numbers, QR for links and text.
- Enter the content. For EAN-13 type 12 digits and for UPC-A 11 digits: the check digit is calculated for you. Paste the full number to have the check digit verified instead.
- Adjust size. The module size is the width of the thinnest bar (or one QR square) in pixels. 2 to 4 px suits screens; for print, download SVG, or PNG at 6 px and above.
- Download as SVG for label and design software, or PNG for documents and quick printing.
- Test it. Scan the barcode on your screen with a phone before printing a batch.
Which barcode type to use
Code 128
The workhorse of warehouses and shipping. It encodes every printable ASCII character (letters, digits, punctuation) and switches to a compact double-density mode for runs of digits, so a long numeric code stays short. Use it for SKU labels, bin and shelf locations, asset tags and order numbers. Every barcode scanner, including the ScanKeys keyboard, reads it.
EAN-13
The 13-digit retail barcode used across Europe and most of the world, and on books as the ISBN-13 (starting 978 or 979). The first digits are a GS1 company prefix; the last is a check digit computed with a mod-10 weighting of 1 and 3. Only use EAN-13 numbers you have been assigned, or retailers and marketplaces such as eBay and Amazon may reject the product.
UPC-A
The 12-digit retail barcode of the US and Canada. A UPC-A is an EAN-13 with a leading zero, so scanners everywhere read it. As with EAN, the last digit is a check digit and the number should come from GS1 US. Shopify’s Barcode field takes UPC-A; see Shopify barcode scanning.
QR code
A 2D code that holds up to a few thousand characters: URLs, Wi-Fi details, contact cards or plain text. The error-correction level decides how much of the code can be damaged or covered and still read: Low keeps the code small, High lets you put a small logo in the middle. Phone cameras read QR codes natively; with ScanKeys, the content is typed straight into a field, see QR code to keyboard.
Printing tips
- Keep the white quiet zone around the code: the generator adds it, so do not crop the image tightly.
- Print black on white. Coloured or low-contrast barcodes and reversed (white on black) codes read poorly with many scanners.
- Do not stretch a barcode in one direction only; resize proportionally, or change the module size and height here.
- For thermal label printers, choose a module size that is a whole number of printer dots (for example 2 or 3 dots at 203 dpi) for crisp bars.
- Scan a test print with your phone before printing hundreds.