01Office software
QR codes in your software.
Word can draw a QR code, Excel cannot; Canva and InDesign create them, each with its pitfalls. Program by program: what exists, with sources, and the tool that does the work.
| Program | What exists | Our advice |
|---|---|---|
| Word | The DISPLAYBARCODE field, in Word for Windows only[1]. | Generate the field below, then Ctrl+F9 and F9. For mail merge: MERGEBARCODE. |
| Excel | No QR code function[7]. The formulas shared online send each cell to an online service. | Import the workbook into our bulk creation: nothing leaves your browser. |
| Canva | Static codes, which never expire, and dynamic codes, which expire if you set a date for them[13]. | Check a code’s type with our inspector before printing. |
| InDesign, Illustrator | InDesign: Object > Generate QR Code, in vector format[18]. Illustrator: no generator[22]. | Place an SVG or a vector PDF from our generator, at least 2 cm on a side. |
02Word
The
DISPLAYBARCODE field.
Word draws a QR code with the DISPLAYBARCODE field, followed by the content in quotation marks, the type QR and switches: \q for the error correction, from 0 to 3[1], that is from L to H[3]; \s for the scale, from 10 to 1000%. Microsoft supports it only in Word for Windows, desktop version: Microsoft 365, 2024, 2021, 2019 and 2016.
A field cannot be typed by hand: Ctrl + F9 inserts the braces, F9 updates it, Alt + F9 shows or hides the field codes[5]. Microsoft’s examples have two pitfalls, which our generator avoids: an invisible character after “http:” on the English page[2], and « » quotation marks instead of straight ones on the French page.
Field to insert
…- In Word for Windows, place the cursor where the code should go.
- Ctrl + F9 inserts an empty field between gray braces. Braces typed on the keyboard don’t work.
- Paste the copied text between the braces.
- F9 updates the field: the QR code appears. Alt + F9 shows the field codes again.
One code per row: mail merge
For labels or badges built from an Excel sheet, choose “Mail merge” in the generator: it writes a MERGEBARCODE field, which draws each row’s code from one column[4]. Insert it into the mail merge document linked to your sheet, then finish the merge (Finish & Merge).
Microsoft does not document the maximum length, how accented characters are encoded, or the color order of \f and \b, which we leave out. A quotation mark or a backslash in the content takes a backslash in front of it[6]. Scan the printed code with your phone.
03Excel
No QR code
formula.
Excel has no QR code function, and the Microsoft 365 roadmap announces none[7]. The formulas shared online use the IMAGE function of Excel for Microsoft 365 and Excel 2024, which displays the image at a web address in a cell[8].
Before copying a formula of this kind:
=IMAGE("https://api.qrserver.com/v1/create-qr-code/?data="&ENCODEURL(A2))Each cell travels in the address, to the service that draws the image. Its operator, goQR.me, says it logs the IP address and the referring page of requests, but not the content of the codes[10], as a tutorial that gives this formula also points out[9]. And the workbook depends on that service: formulas via Google Charts broke when Google shut down that API in January 2024[11].
The free QR4Office add-in also declares that it can send data over the Internet; its privacy policy no longer opens, and it was last updated in January 2023[12].
To keep your data on your side, our bulk creation reads the .xlsx file in the browser: one checked code per row, as SVG, PNG or a sheet of labels. Or use Word’s mail merge.
04Canva
Does it expire,
and when?
Canva offers two kinds of QR code[13]. The static one holds your link: it never expires and never carries the Canva logo. The dynamic one goes through Canva, which lets you change its destination; it carries the Canva logo by default (Free, Pro and Education plans) and expires only if you set a date for it (Business, Enterprise and Nonprofit plans only). It then leads to a Canva error page, unless you set a fallback URL.
The QR code apps in Canva’s app directory have their own rules. With Hovercode, if you cancel, only the first three dynamic codes stay active[15]. With Bitly, codes never expire, but they stop working if you delete their short link[16]. With QR TIGER, all dynamic codes become invalid when the subscription ends[17].
Already printed a code? Our inspector tells you whether it holds your address or a service’s. Canva reserves SVG and CMYK PDF export for paid plans[14]; our generator gives you an SVG and a vector PDF for free, with static codes.
05InDesign, Illustrator
Vector,
at the right size.
InDesign creates a QR code by itself: Object > Generate QR Code, for a web hyperlink, plain text, a text message, an email or a business card. It is vector, black on a transparent background, 30 × 30 mm by default[18]. Object > Edit QR Code sets only the content and the color, not the error correction[19]. Over a photo or a dark area, the transparent background loses contrast: keep a light background.
Illustrator has no QR code generator: its release notes do not mention one from October 2025 to November 2026[22]. Both programs can place an SVG or a vector PDF[20]
Canva recommends at least 2 × 2 cm, with a quiet zone of four modules[13]. Resize the code in both dimensions at once; for a poster scanned from a distance, calculate the size from the distance.
06Questions
Frequently
asked questions.
How do I insert a QR code in Word?
In Word for Windows, Ctrl+F9 inserts an empty field: type DISPLAYBARCODE "your address" QR \q 1 inside it, then press F9. Our generator writes the field for you.
What does Ctrl+F9 do in Word?
It inserts an empty field: the gray braces in which you write a field code such as DISPLAYBARCODE. F9 then updates the field, and Alt+F9 toggles between codes and results.
Does the DISPLAYBARCODE field work on a Mac?
Microsoft supports it only in Word for Windows, desktop version. On a Mac, create the code with our generator, then insert the image as SVG or PNG.
Can I create a QR code with an Excel formula?
Not without an online service: the formulas shared online send it each cell, with the IMAGE function. For a whole sheet, import it into our bulk creation: nothing leaves your browser.
Does a QR code created in Canva expire?
A static code, no. A dynamic one only if you set a date for it, which the Business, Enterprise and Nonprofit plans allow; some third-party Canva apps switch codes off when the subscription ends.
Which QR code format should I use for InDesign or Illustrator?
A vector format, SVG or PDF, sharp at every size. A small PNG enlarged turns blurry when printed.
07Sources
Sources
and dates.
Each fact on this page refers to one of these pages, read on November 21, 2026. Microsoft’s and Canva’s help pages show no date.
- [1]
Codes de champ : DisplayBarcodeMicrosoft (support.microsoft.com)Applies to Word for Microsoft 365, 2024, 2021, 2019 and 2016; “pris en charge dans Word pour Windows (bureau)” (supported in Word for Windows, desktop). Switches \q (0 to 3) and \s (10 to 1000). Typing the braces on the keyboard “ne fonctionne pas” (does not work).No date shown · accessed November 21, 2026
- [2]
Field codes: DisplayBarcodeMicrosoft (support.microsoft.com)English version: the example contains an invisible character, U+2060, right after “http:” (checked by script).No date shown · accessed November 21, 2026
- [3]
[MS-OI29500]: DISPLAYBARCODEMicrosoft Learn (Open Specifications)Technical specification: values of \q “[L|M|Q|H]”. The match 0 = L … 3 = H follows the order; no page writes it out.No date shown · accessed November 21, 2026
- [4]
Codes de champ : MergeBarcodeMicrosoft (support.microsoft.com)Microsoft example: MergeBarcode URL QR \q 3, where URL is the name of the merge field.No date shown · accessed November 21, 2026
- [5]
Raccourcis clavier dans WordMicrosoft (support.microsoft.com)Ctrl+F9: insert an empty field; F9: update the selected fields; Alt+F9: show the codes of all fields, or their results.No date shown · accessed November 21, 2026
- [6]
WordprocessingML Reference Material: SyntaxECMA-376 standard (Office Open XML), copy published by docx4javaIn a field, a quotation mark is preceded by a backslash, and a backslash by another backslash. Microsoft does not confirm this for DisplayBarcode.No date shown · accessed November 21, 2026
- [7]
Microsoft 365 Roadmap (data feed, search “QR”)MicrosoftTwo items have “QR” in their title, both for Teams; none for Excel or Word. The feed shows only the items still published.No date shown · accessed November 21, 2026
- [8]
Fonction IMAGEMicrosoft (support.microsoft.com)Excel for Microsoft 365 (Windows and Mac), Excel 2024, Excel for the web and mobile. Address in https, 255 characters at most; redirects blocked.No date shown · accessed November 21, 2026
- [9]
How to Create QR Codes in Excel (QR Code Generator)TrumpExcel (Sumit Bansal)IMAGE formula to api.qrserver.com; the author warns that the data in the formula is sent to this service.Date shown: November 2, 2026 · accessed November 21, 2026
- [10]
QR code API: command “create-qr-code”goQR.me (Foundata GmbH)The operator of api.qrserver.com says it records the origin of all requests (originating page and IP address), but not the content of the codes.No date shown · accessed November 21, 2026
- [11]
Is There any problem on chart apiGoogle Groups (Google Visualization API group)Message from Jon Orwant: the Google Charts image API, which also drew QR codes, has been shut down; quoted reply “410 Gone”. No official Google post found.Date shown: January 5, 2024 · accessed November 21, 2026
- [12]
QR4OfficeMicrosoft Marketplace (add-in by Michael A. Zlatkovsky)Declared capability: “Can send data over the Internet”. The link to its privacy policy leads nowhere (domain name not found on November 21, 2026).Date shown: January 6, 2023 · accessed November 21, 2026
- [13]
Créer et gérer des QR codes dans CanvaCanva Help CenterStatic and dynamic codes; expiration date reserved for dynamic codes, on Canva Pro+, Entreprise or Solidaire, as this French page names them (Business, Enterprise and Nonprofit in English). Best practices: at least 2 × 2 cm, a quiet zone of at least four modules.No date shown · accessed November 21, 2026
- [14]
Choose the right download file type for your Canva designCanva Help CenterCMYK colors and transparent SVG reserved for paid plans (Pro, Teams, Education, Nonprofit).No date shown · accessed November 21, 2026
- [15]
What happens to my QR codes if I cancel my subscription?Hovercode“Dynamic QR Codes” app on Canva, published by Hovercode. Its own pages do not agree on the number of free dynamic codes (3 or 10).Date shown: October 22, 2025 · accessed November 21, 2026
- [16]
Do Bitly Codes ever expire?Bitly Support“QR Codes (& Links)” app on Canva, published by Bitly; a Bitly account is required.Date shown: December 8, 2025 · accessed November 21, 2026
- [17]
What happens if my paid subscription expires or if I cancel my subscription?QR Tiger Help Center“QR code generator” app on Canva, published by QR TIGER.Date shown: June 27, 2025 · accessed November 21, 2026
- [18]
Génération de codes QR dans InDesignAdobe (helpx.adobe.com)Object > Generate QR Code; vector image, black on transparent background by default, 30 × 30 mm.Date shown: August 7, 2026 · accessed November 21, 2026
- [19]
Modify and style QR codes in InDesignAdobe (helpx.adobe.com)Object > Edit QR Code; the dialog has only two tabs, Content and Color.Date shown: June 2, 2026 · accessed November 21, 2026
- [20]
Supported file formats in InDesignAdobe (helpx.adobe.com)Import: PDF, AI, SVG and SVGZ; EPS listed as a “Legacy” format.Date shown: June 2, 2026 · accessed November 21, 2026
- [21]
Adobe InDesign 2020Adobe Blog (Wayne Hoang)Announcement of the import of SVG files.Date shown: November 4, 2019 · accessed November 21, 2026
- [22]
What’s new in Adobe Illustrator on desktopAdobe (helpx.adobe.com)No mention of QR code or barcode, from versions 30.0 (October 2025) to 31.0 (November 2026). Earlier versions were not read.Date shown: November 12, 2026 · accessed November 21, 2026
- [23]
Supported file formats in Adobe IllustratorAdobe (helpx.adobe.com)File > Open and File > Place: PDF, EPS, SVG and SVGZ, among others.Date shown: October 21, 2026 · accessed November 21, 2026