QR code and barcode generator
Make a QR code or barcode, or many at once from a list or CSV file. It’s all made in your browser.
Loading the tool…
How it works
Codes are made in your browser as you type. What you enter, including a Wi-Fi password, and any file you open aren’t sent anywhere.
A QR code holds your link, text or Wi-Fi details itself, so it never expires and nobody tracks who scans it. Some QR code websites send scans through a short link of their own, which can stop working if you stop paying.
For an EAN or UPC barcode, type the number without its last digit and the check digit is worked out, or type the whole number and it’s checked. Shop scanners reject a barcode whose check digit is wrong, so the tool won’t draw one.
Which barcode to use
- Code 128 for stock codes, serial numbers and shipping labels. It holds letters, digits and symbols, as in SKU-0042.
- EAN-13 for products sold in shops in the UK, Europe and most other countries. It holds 13 digits, as in 5901234123457.
- UPC-A for products sold in shops in the US and Canada. It holds 12 digits, as in 036000291452.
- EAN-8 for packs too small for EAN-13. It holds 8 digits, as in 96385074.
- Code 39 for older systems and ID badges that ask for it. It holds capital letters, digits, spaces and - . $ / + %, as in SKU-42.
- Data Matrix for serial numbers on small parts, electronics and engraved metal. It fits more into a few millimetres than any of the barcodes above.
Barcode numbers for products
Making a barcode doesn’t give you a barcode number. The numbers in EAN and UPC barcodes, called GTINs, identify a product worldwide, and shops and marketplaces expect them to come from GS1, the organisation that issues them. In the UK, that’s GS1 UK.
This tool draws the barcode for a number you already have and checks its last digit. It doesn’t issue or register numbers, and a made-up number may already belong to another product. For labels used only within your business, such as on stock bins and parts, use Code 128 or Data Matrix with your own codes.
Many codes at once
In the Bulk tab, paste your codes one to a line, or open a CSV file and choose the column they’re in. Every row is checked first: rows that can’t make a code are listed with the reason, and so are rows worth checking, such as repeats. The ZIP holds a PNG or SVG file for each code, and codes.csv, a list of every row, its file and what happened to it.
Files are named after what each code holds, such as SKU-0042.png, after another column, such as a product name, or after the row number. Leading zeros stay. Accents are dropped, and characters that can’t go in a file name become hyphens. When two files would have the same name, the second gets -2 on the end.
It reads up to 10,000 rows at a time, from files of up to 5 MB, and puts up to 1,000 codes in each ZIP, so each is made in seconds, even on a phone. For more, download each ZIP in turn.
- Product barcodes: open a CSV with a column of EAN-13 numbers and a column of product names. Choose EAN-13, take the codes from the numbers and name the files after the products.
- QR codes for tables: paste the menu link for each table, one to a line, and name the files by line number.
- Asset tags: make a run of numbers with the serial number generator, then send them here for Code 128 or Data Matrix barcodes.
CSV files from spreadsheets
In Excel, save the sheet as CSV UTF-8. In Google Sheets, choose File, Download, then Comma-separated values. Files separated by semicolons or tabs work too.
Spreadsheets drop leading zeros from numbers, so 036000291452 becomes 36000291452. Format the column as Text before you save the CSV. If shop product numbers look as if they’ve lost a 0, the tool says so and can put it back.
In codes.csv, a cell that starts with =, +, - or @ begins with an apostrophe, so spreadsheets show it as text rather than run it as a formula.
Tips for printing
- Download the SVG for print: it stays sharp at any size, and a barcode comes out at its standard size. The PNG suits screens and documents. To see how big a PNG prints, use the DPI calculator.
- Print a QR code at least 2 cm wide. If people will scan it from further away, make it about a tenth of that distance.
- At standard size an EAN-13 barcode is about 38 mm wide. Shop scanners read EAN and UPC barcodes printed at 80% to 200% of standard size. Scale the whole barcode, not just its height or width.
- Keep the light border around a QR code, and the light margins either side of a barcode, clear.
- Print dark on light: black on white scans best. Avoid red, orange and yellow bars, which most barcode scanners can’t see.
- Scan a test print before you print a batch.
Want codes on cards, labels or products? Ciconiq Studio makes NFC cards and counter stands that people can tap as well as scan, and does UV printing and laser engraving in Leeds.
Open-source credits
QR codes are made with uqr, based on Project Nayuki’s QR code generator. Barcodes are drawn with bwip-js by Mark Warren, a JavaScript version of Terry Burton’s Barcode Writer in Pure PostScript. ZIP files are made with fflate by Arjun Barrett. All are used under the MIT Licence.