Skip to content

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.

At a glance, program by program
ProgramWhat existsOur advice
WordThe DISPLAYBARCODE field, in Word for Windows only[1].Generate the field below, then Ctrl+F9 and F9. For mail merge: MERGEBARCODE.
ExcelNo 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.
CanvaStatic 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, IllustratorInDesign: 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.

\q switch, from 0 (L) to 3 (H).
\s switch, from 10% to 1000%. 100: Word’s default size.

Field to insert

…

    1. In Word for Windows, place the cursor where the code should go.
    2. Ctrl + F9 inserts an empty field between gray braces. Braces typed on the keyboard don’t work.
    3. Paste the copied text between the braces.
    4. F9 updates the field: the QR code appears. Alt + F9 shows the field codes again.

    One code per row: mail merge

    03Excel

    No QR code
    formula.

    04Canva

    Does it expire,
    and when?

    05InDesign, Illustrator

    Vector,
    at the right size.

    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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [21]

      Adobe InDesign 2020Adobe Blog (Wayne Hoang)Announcement of the import of SVG files.Date shown: November 4, 2019 · accessed November 21, 2026

    22. [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. [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