Skip to content

01PDF code

Create a QR code for a PDF.

Paste your PDF’s share link: Google Drive, Dropbox, OneDrive or iCloud. The tool shortens it and flags what would make it fail. No subscription.

A Drive, Dropbox, OneDrive or iCloud link open to anyone who has it, or a direct link to a .pdf.

Fill in the form: the code appears here.

    SVG or PDF for print, PNG for screens.

    AppearanceColors, shapes, frame, logo

    Colors

    Module shape

    Finder pattern shape

    Decorative: only the code in the center is read.
    Logo in the center
    PNG, JPEG or SVG, 2 MB at most.
    The higher it is, the better the code resists wear, but the denser it gets.

    Several codes? Bulk creation

    Static code: it never expires.

    02How it works

    A link to
    your PDF.

    The code holds the PDF’s address, not the PDF. Share the file with anyone who has the link, then paste that link here.

    The tool recognizes the service, cleans up the link and lets you choose what the scan opens: the service’s page, the PDF only, or a download.

    Common uses: restaurant menus, instructions, programs, brochures, spec sheets, house rules.

    03What the code holds

    The PDF is not
    in the code.

    A QR code holds 2,953 bytes at most (version 40, lowest error correction)[1][2]. A one-page PDF often weighs tens of KB. So the code holds the address of the PDF, hosted elsewhere: Google Drive, Dropbox, OneDrive, iCloud Drive or your website.

    The longer the address, the denser the code and the larger it must be printed. The tool removes what serves no purpose (“usp=” on Google, “si=” on YouTube) and keeps the access keys.

    Link length and code size (error correction level M), calculated by our generator
    LinkCharactersModulesMinimum side, read at 40 cm
    Link copied from Drive8237 × 376 cm
    The same, cleaned up by the tool7037 × 376 cm
    Dropbox, file displayed (raw=1)10441 × 417 cm
    Direct link on your website3229 × 295 cm

    Fictional identifiers, of real length. Calculation details on our print size page.

    04Where to put the PDF

    A link open
    to anyone who scans.

    The most common pitfall: a link that only opens for you, because you are signed in. Share with “Anyone with the link”, then test in a private window.

    Sharing setting and link duration, service by service
    ServiceSetting for a QR codeDoes the link expire?Good to know
    Google Drive“General access”: “Anyone with the link”[3]No: expiration only applies to people added one by one, on work accounts[3]Keep “resourcekey” if it is in the link: a person who has never opened the file needs it[6]. A heavily viewed file may be blocked for up to 24 hours[7].
    Google Docs, Sheets, SlidesSame setting, as Viewer[3]NoThe link doesn’t change when you edit the document. “Publish to web” republishes automatically[8].
    DropboxThe whole shared link, with its “rlkey”[11]Only if you set a date, on paid plans[10]Without “rlkey”, the person has to sign in and request access[11].
    OneDrive (personal account)“Anyone”, with “Allow editing” turned off (it is on by default)[13]Only if you set a date, with Microsoft 365[13]Moving the file breaks the link[13].
    OneDrive (work account)“Anyone”, if the organization allows it[13][14]The organization can set an expiration, and shorten it afterward[14]A printed code may stop working without warning.
    iCloud Drive“Anyone with the link”[16]No expiration stated[16]With “Only people you invite”, only the first person who opens the link gets access[16].
    WeTransfer-Yes: 3 days with the free and Starter plans[19]Avoid it for a printed code.

    05Display or download

    What the person
    sees.

    The server tells the browser to display the file or download it[23]. Some services let you choose in the link: on Dropbox, dl=1 forces a download, raw=1 displays the file[9]. The tool offers this choice when it exists and flags undocumented forms.

    Opening a PDF on scan, by link and phone
    LinkiPhoneAndroid
    Google Drive page (/view)To test on a real device Preview in the browser, or Drive app?To test on a real device Preview in the browser, or Drive app?
    Dropbox, file displayed (raw=1)To test on a real device Does the PDF display in Safari?To test on a real device Chrome’s viewer, or a download?
    Dropbox, download (dl=1)To test on a real device Download, or a choice offered?To test on a real device Download, or a choice offered?
    Direct link to a .pdf on a websiteTo test on a real device Depends on the server: test it on your websiteTo test on a real device Depends on the server: test it on your website

    These cases are still to be tested on real phones. Meanwhile, scan your code on an iPhone and an Android before printing.

    06Changing the PDF

    Changing the PDF
    without reprinting.

    The code doesn’t change: the link must stay the same. Each service has its own way of replacing a file without changing the link.

    • Google Drive. On a computer, at drive.google.com: click the file, then More, File information, Manage versions, Upload new version[4]. Only for files that are not Google Docs: PDFs, images, videos[4]. This feature avoids a new link[5], but the help pages don’t say so: check the old link afterward. Old versions may be deleted after 30 days[4].
    • Google Docs, Sheets, Slides. Nothing to do: the document is edited in place, the link stays the same.
    • Dropbox. Deleting the file deletes its link. Uploading a file with the same name to the same place overwrites it and keeps the link, according to a Dropbox forum moderator[12].
    • OneDrive. Upload the new version on the OneDrive website, not from the synced folder, according to a Microsoft moderator[15]. Don’t move the file[13].

    The Dropbox and OneDrive tips come from official forums, not the help pages: we check them on real files.

    07Image and album

    An image,
    a photo album.

    An image is shared like a PDF, with the same settings. For an album, for example a wedding album where guests add their photos:

    • Shared Google Photos album. Anyone with the link can see the photos and add their own[20]; the “Collaborate” option lets you turn off adding[21]. Resetting the link breaks the old one[21]. Google Photos also creates a QR code for each shared album[21].
    • iCloud Photos link. It expires after 30 days[17]: avoid it for an invitation. Same for Mail Drop[18].

    08Other generators

    When the generator
    hosts your PDF.

    Many “PDF QR code” generators host the file behind a dynamic code, which then depends on their plan:

    • QR Code Generator (Bitly group) turns off dynamic codes after the 14-day trial: they redirect to a service page until you pay[24].
    • Trueqrcode asks for a paid plan after a 10-day trial to keep codes active[25].
    • QR Browser deletes codes not scanned for more than 60 days[26].
    • ME-QR displays advertising on codes from its free plan[27].
    • Canva offers a static code, which holds the link, and a dynamic code, which goes through Canva; the dynamic code’s expiration and statistics depend on the plan[22].

    Here, the code points to your own hosting: no account with us, no subscription. QR Samurai does not host files (simple hosting is under consideration). See also the QR code that became paid after the trial and the QR code that expires.

    These terms were read on November 19, 2026; they may change.

    09Questions

    Frequently
    asked questions.

    How do I make a QR code with a PDF?

    Share the PDF on Google Drive, Dropbox, OneDrive or iCloud Drive with anyone who has the link, then paste that link above. Download the code as SVG or PNG and test it.

    Can I put the PDF directly inside the QR code?

    No. A QR code holds under 3 KB (2,953 bytes at most): it holds the PDF’s address.

    Will the QR code expire?

    The code never expires, but your link can. Avoid free WeTransfer (3 days), iCloud Photos links (30 days) and some work account links.

    Can I change the PDF without changing the QR code?

    Yes, if the link stays the same: replace the file without deleting it (Manage versions on Drive, same name in the same place on Dropbox). Then check the old link.

    How do I open a QR code that is in a PDF or on my screen?

    Drop a screenshot on our “Check a QR code” page: you see where it leads before opening it.

    Is it really free, with no sign-up and no limit?

    Yes. No account, no email, no trial: the code is built in your browser and goes through none of our servers when scanned.

    What about a PDF QR code made with Canva?

    Canva offers a static code, which holds the link, and a dynamic code, which goes through Canva, with expiration and statistics depending on the plan. To share a design, give a view-only link, not the editing link.

    10Sources

    Sources
    and dates.

    Every technical claim on this page links to one of these sources, with the date it shows and the day we read it.

    1. [1]

      QR Code StandardizationDenso WaveByte mode: 2,953 characters at most; refers to the ISO/IEC 18004 standard.No date shown · accessed November 19, 2026

    2. [2]

      Version.java (error correction tables by version)ZXing project, source codeCapacities recalculated by us from these tables.No date shown · accessed November 19, 2026

    3. [3]

      Partager des fichiers et des dossiers dans Google Drive et gérer les accèsGoogle Drive HelpUndated page, read in French.No date shown · accessed November 19, 2026

    4. [4]

      Suivre l’activité et les versions d’un fichierGoogle Drive HelpComputer tab, section “Upload new version”. Undated page.No date shown · accessed November 19, 2026

    5. [5]

      Version history for uploaded files in Google DocsGoogle Workspace UpdatesDate shown: November 4, 2010 · accessed November 19, 2026

    6. [6]

      Update to some Google Drive file linksGoogle Workspace UpdatesDate shown: June 23, 2021 · accessed November 19, 2026

    7. [7]

      Télécharger un fichierGoogle Drive HelpError “Too many users have viewed or downloaded this file recently”. Undated page.No date shown · accessed November 19, 2026

    8. [8]

      Rendre Google Docs, Sheets, Slides et Forms publicsGoogle Docs HelpUndated page, read in French.No date shown · accessed November 19, 2026

    9. [9]

      How to force a shared link to download or renderDropbox HelpDate shown: June 30, 2025 · accessed November 19, 2026

    10. [10]

      How to set or change shared link permissionsDropbox HelpDate shown: February 20, 2026 · accessed November 19, 2026

    11. [11]

      Discussion 689070: reply from a Dropbox employee about rlkeyDropbox Community forumReply of June 29, 2023, updated on August 15, 2023.Date shown: August 15, 2023 · accessed November 19, 2026

    12. [12]

      Discussion 702680: replacing a shared fileDropbox Community forumReply from a community moderator, not from the official help.Date shown: August 4, 2023 · accessed November 19, 2026

    13. [13]

      Partager des fichiers et des dossiers dans Microsoft OneDriveMicrosoft SupportMetadata ms.date: June 11, 2026. Tabs for personal and work accounts.No date shown · accessed November 19, 2026

    14. [14]

      Manage sharing settings for SharePoint and OneDrive in Microsoft 365Microsoft LearnDate shown: June 30, 2026 · accessed November 19, 2026

    15. [15]

      Microsoft Q&A 5407650: keeping the link when replacing a fileMicrosoft Q&AReply from a community moderator, not from documentation.Date shown: March 27, 2025 · accessed November 19, 2026

    16. [16]

      Partager des fichiers et dossiers dans iCloud Drive sur iCloud.comApple Support, iCloud guideUndated page, read in French.No date shown · accessed November 19, 2026

    17. [17]

      iCloud links for PhotosApple Support, iCloud for iPhone guideTitle summarized by us. Undated page.No date shown · accessed November 19, 2026

    18. [18]

      Mail DropApple Support, iCloud guideTitle summarized by us. Undated page.No date shown · accessed November 19, 2026

    19. [19]

      How long are transfers available to download?WeTransfer Help CenterDate shown: September 30, 2026 · accessed November 19, 2026

    20. [20]

      Partager des photos et des vidéosGoogle Photos HelpUndated page, read in French.No date shown · accessed November 19, 2026

    21. [21]

      Shared album access controlsGoogle Photos HelpTitle summarized by us. Undated page.No date shown · accessed November 19, 2026

    22. [22]

      Créez et gérez vos codes QR dans CanvaCanva Help CenterUndated page, read in French.No date shown · accessed November 19, 2026

    23. [23]

      Content-DispositionMDN Web DocsDate shown: October 12, 2026 · accessed November 19, 2026

    24. [24]

      What happens at the end of the free trial?QR Code Generator (Bitly group), help centerTitle summarized by us; the page showed an update “about 5 months ago”.No date shown · accessed November 19, 2026

    25. [25]

      Code QR PDFTrueqrcodeFAQ of the page.No date shown · accessed November 19, 2026

    26. [26]

      Plans and termsQR BrowserTitle summarized by us.No date shown · accessed November 19, 2026

    27. [27]

      TarifsME-QRNo date shown · accessed November 19, 2026