Printed a code and need to change the link? QR Gen makes codes you can edit later.Edit codes after printing with QR Gen.See QR Gen

Open on your phone

How to make QR codes in bulk from a spreadsheet

Make a bulk QR code batch from a spreadsheet: a CSV layout, a file-naming scheme, a tested free script, a verify step, and when a paid tool earns its fee.

To make QR codes in bulk, put one row per code in a spreadsheet, export it as a CSV, and run each row through a generator that writes one image file per row. You can do that for free with a short script, with a web tool that takes a CSV, or with a paid bulk feature. The part that goes wrong is not the generating. It is the sheet, the file names, and nobody checking the output before 100 table tents get printed.

This guide shows a layout we actually ran: 100 rows in, 99 codes out, every one decoded back and compared with its row. The one it refused is the lesson. For making a single code, see the pillar guide on how to make a QR code.

Start with the sheet

One row, one code. Keep the columns few and boring.

id,url,label
001,https://example.com/offer?utm_source=qr&utm_medium=print&utm_campaign=diwali&utm_content=tent-001,Table 1
002,https://example.com/offer?utm_source=qr&utm_medium=print&utm_campaign=diwali&utm_content=tent-002,Table 2
003,https://example.com/offer?utm_source=qr&utm_medium=print&utm_campaign=diwali&utm_content=tent-003,Table 3

id becomes part of the file name, url is exactly what the code stores, and label is for the human who will stick the right code on the right table. The UTM tags in the link let Google Analytics tell the tables apart, as our guide to tracking QR code scans explains.

Three habits for the sheet:

  • Pad the id. Use 001, not 1. It sorts in the right order, and it keeps every link the same length. That matters more than it sounds. We measured https://example.com/menu/9: a version 2 code, 25 by 25 modules, at error correction M. Add one character, /menu/10, and it jumps to version 3, 29 by 29. In a batch with unpadded ids, some codes would have a coarser grid than others, and on the same printed width their modules end up different sizes. With padded ids our 100-row batch is all version 6, 41 by 41 modules.
  • Write full links. Start with https://. A bare example.com/offer may be read as plain text rather than a link on some phones.
  • No spaces, no commas. A space inside a URL is a typo. A comma inside it breaks a simple CSV like this one, so write %2C if a link needs one.

Name the files before you generate them

A folder of 100 files called qrcode (47).png is a print-day disaster. Decide the name once:

<campaign>_<placement>-<id>.<ext>
diwali_tent-001.png
diwali_tent-001.svg

Lowercase, hyphens inside a part, an underscore between parts, no spaces. The id matches the sheet, so the file for row 047 is diwali_tent-047 and nothing else. Google’s analytics help makes the same point about campaign names: use one name per campaign, because SpringSale and Spring_Sale are counted as different things. File names work the same way.

Make both a PNG (for Word, Canva or a quick preview) and an SVG (for the printer). Which to send is covered in PNG or SVG for the printer.

The free route: a 20-line script

This uses the open-source qrcode package for Node.js, which can write PNG and SVG files and takes an errorCorrectionLevel and a margin, per its README. Install it with npm install qrcode, save this as bulk.mjs, and run node bulk.mjs tables.csv diwali tent.

import fs from 'node:fs';
import QRCode from 'qrcode';

const [file, campaign, placement] = process.argv.slice(2);
const rows = fs.readFileSync(file, 'utf8').trim().split(/\r?\n/).slice(1).map((l) => l.split(','));
fs.mkdirSync('out', { recursive: true });

const seen = new Set();
let bad = 0;
for (const [id, url, label, ...extra] of rows) {
  const problem =
    extra.length || !label ? 'wrong number of columns (a comma inside the URL?)' :
    !/^https:\/\/\S+$/.test(url) ? 'URL must start with https:// and contain no spaces' :
    seen.has(id) ? 'duplicate id' : '';
  if (problem) { console.log(`row ${id}: ${problem}`); bad++; continue; }
  seen.add(id);
  const name = `out/${campaign}_${placement}-${id}`;
  await QRCode.toFile(`${name}.png`, url, { width: 1024, margin: 4, errorCorrectionLevel: 'M' });
  await QRCode.toFile(`${name}.svg`, url, { type: 'svg', margin: 4, errorCorrectionLevel: 'M' });
}
console.log(`${seen.size} codes written, ${bad} rows skipped`);

On our test sheet, with one row deliberately containing a space in its link, it printed:

row 018: URL must start with https:// and contain no spaces
99 codes written, 1 rows skipped

That took about five seconds for 99 PNG and SVG pairs on a laptop. The script skips a bad row and says which one, instead of quietly making a code that opens a broken page. Keep margin: 4, the package’s default. That blank border is the quiet zone, and our guide to codes that won’t scan explains why a thin one causes trouble.

Two limits. This makes plain black-on-white static codes only: no logo, no colours, no frames. And a script is only as good as the person running it. If your team doesn’t use a terminal, one of the options below is kinder.

Check every code before it goes to print

This is the step competitors’ guides skip. Bitly’s own bulk guide, to its credit, tells you to scan a sample on a phone and print a test page. That catches a design problem. It does not catch row 63 pointing to row 36’s page.

Decode every file and compare the result with its row. jsQR, one of the two decoders our scanner uses, takes the pixels of an image and returns the text it found, or nothing. Loop over out/*.png, decode each, and compare the text with the url in the matching row. We did that: all 99 files decoded to exactly the link in their row.

Then do the human check, because a script can’t see a wrong label. Scan three or four codes from each end of the batch with two different phones, from the distance people will actually stand. Open the pages. The free scanner works for this: it reads a code from a camera or a screenshot and shows the real address without sending anything anywhere.

A print sheet without a paid tool

The script gives you loose files. To get them onto a page, use a table in Word or Google Docs: three columns, one code per cell, the label text under each, and every image set to the same width in centimetres. Insert the SVGs if your program accepts them, otherwise the 1024 px PNGs. Don’t let the program stretch an image to fill a cell. A QR code should stay square, so lock the aspect ratio and set the width only.

Print one page first and measure the printed codes with a ruler. If the batch is going on table tents, add the id in small type under each code, so a mix-up can be traced back to the sheet.

Which route fits

Route Cost Good for Limits
Spreadsheet plus the script above Free A developer or comfortable tinkerer; full control over names No print layout, no colours or logo, you maintain it
QuickChart’s bulk web tool Free A pasted list or CSV, no code Takes the first CSV column only; as of November 2026 its page lists no numeric limit and doesn’t say how uploaded data is handled
One code at a time in the free generator Free A handful of codes, logos, colours No bulk, by design
QR Gen Pro ₹199 a month or ₹1,499 a year Up to 100 codes per batch from a list or sheet, as A4 print sheets or a ZIP Paid; 100 codes per batch

QuickChart’s page says each CSV row becomes one code and the output is a ZIP of images, with size, colours, error correction and PNG or SVG as options. That is a fair free choice if you are happy to upload your list to a third-party site. If your links are private (internal asset tags, customer URLs), the script keeps them on your machine.

QR Gen is the paid sister product to this site for the case where the script isn’t enough. As of November 2026, Pro bulk takes up to 100 codes from a list or sheet and outputs print sheets or a ZIP, which saves the Word-table layout work. Our own generator makes one code at a time and has no print sheet.

For fewer than ten codes, make them one at a time and skip the pipeline. Past a few dozen, or whenever the same sheet will be reused next season, the script or a paid tool pays for itself.

Before you hit print

  1. Open the CSV in a plain text editor and check for stray spaces, commas inside links and blank lines.
  2. Run the script. If it reports skipped rows, fix the sheet and run again, rather than adding those codes by hand.
  3. Decode every output file and compare with the sheet.
  4. Print one page at the real size and scan it with two phones. Our guide on print size gives the distance rule.
  5. Label the back of each printout with its id, so the right code lands on the right table.

Ready to try it? Free, no sign-up, made in your browser.

Open the QR generator