QRQRCrack
Google Sheets Integration Guide

Generate QR Codes in Google Sheets — Formula Guide

Quick Answer

Generate a QR code in Google Sheets using the IMAGE formula: =IMAGE("https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl="&ENCODEURL(A1)) — this renders a QR code in the cell from the URL in A1.

Step-by-Step Guide

  1. 1

    Open your Google Sheet and put your URLs or data in column A (starting from A1).

  2. 2

    In cell B1, enter the QR formula: =IMAGE("https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl="&ENCODEURL(A1))

  3. 3

    Resize row 1 and column B to be large enough to show the QR code (right-click row → resize to ~160px height).

  4. 4

    Drag the formula down from B1 to generate QR codes for all rows in column A.

  5. 5

    To use custom-branded QR codes instead: generate in bulk on QRCrack (Bulk QR Generator), download the ZIP, then insert as images using Insert → Image → Image in cell.

  6. 6

    For automated generation via Apps Script: open Extensions → Apps Script and use the UrlFetchApp to call the Charts API programmatically.

  7. 7

    Download your sheet or share with your team — QR codes render live from the formula.

Code Snippet

Google Sheets Integration
// Google Sheets IMAGE formula (put in any cell)
=IMAGE("https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl="&ENCODEURL(A1))

// Apps Script to generate QR codes as actual images
function insertQRCodes() {
  const sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
  const lastRow = sheet.getLastRow();

  for (let i = 1; i <= lastRow; i++) {
    const url = sheet.getRange(i, 1).getValue();
    if (!url) continue;

    const qrUrl = "https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl="
                  + encodeURIComponent(url);
    const blob = UrlFetchApp.fetch(qrUrl).getBlob();
    const img = sheet.insertImage(blob, 2, i); // column B
    img.setWidth(100).setHeight(100);
  }
}

Ready to generate your Google Sheets QR code?

Free, no signup, no watermarks. Custom colors and logo supported.

Generate QR Code — Free

Frequently Asked Questions

What is the Google Sheets QR code formula?

=IMAGE("https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl="&ENCODEURL(A1)) — replace A1 with your data cell.

Can I generate 100 QR codes at once in Google Sheets?

Yes — drag the formula down for all rows. For custom-branded QR codes, use QRCrack's Bulk QR Generator instead.

Does the Google Charts QR formula work for any data type?

Yes — URLs, text, WiFi strings, vCard data, and more. The formula encodes whatever is in the referenced cell.

Can I export QR codes from Google Sheets as images?

The IMAGE formula renders inline but can't be directly exported. Use Apps Script (see above) to save QR images, or use QRCrack's Bulk QR for downloadable files.

More Integration Guides

Want API access + no ads? Pro coming soon.