Why Use Mac Shortcuts for QR Code Generation?

The Mac Shortcuts app — introduced to macOS in Monterey and refined through Ventura and Sonoma — lets you chain actions from different apps into repeatable, triggerable workflows. For QR code generation, this unlocks a fundamentally different way of working: instead of opening an app, pasting a URL, adjusting settings, and exporting every single time, you run a single shortcut that handles every step in one keystroke, menu bar click, or scheduled trigger.

This is especially valuable when you generate QR codes regularly: event organisers producing codes for each venue, developers testing mobile deep-links, product teams adding QR codes to packaging iterations, or marketers rotating campaign URLs weekly. For a complete overview of working with QR codes natively on macOS, see the QR Code Generator for Mac pillar guide.

Mac Shortcuts QR code automation: Get Clipboard and Generate QR Code actions cutting manual QR creation from 45 seconds to under 3
Chain a few Shortcuts actions and QR code creation drops from about 45 seconds of manual work to under 3.
Mac Shortcuts app interface showing a QR code automation workflow with clipboard input and PNG output
A QR code automation shortcut in macOS — clipboard input, QR generation action, and automatic file save, all in one step.
Automation Advantage

A well-built Shortcuts workflow can reduce a 45-second manual QR code creation process to under 3 seconds — and it can run unattended in the background while you work on something else.

Shortcuts ships with a built-in Generate QR Code action that turns any text or URL into a standard black-and-white QR code image (with a choice of error-correction level), so the basic workflows below need no extra software. For one-off styled codes with custom colours or a logo, use a native Mac app such as Gen QR Code Maker alongside your shortcuts — it has its own interface rather than Shortcuts actions, and needs no scripting either.

Clipboard-to-QR Workflow

The most common automation request is simple: copy a URL, press a keyboard shortcut, and have a QR code appear instantly. Here is how to build this workflow from scratch.

How to build a clipboard-to-QR code shortcut on Mac in five steps: open Shortcuts, Get Clipboard, Generate QR Code, Quick Look or Save, assign a keyboard shortcut
Five steps to a one-key clipboard-to-QR workflow: copy a URL, press your shortcut, get a QR code.

Build the Clipboard-to-QR Shortcut

1

Open Shortcuts (Applications → Shortcuts, or press Cmd+Space and type Shortcuts). Click the + button to create a new shortcut.

2

Add a Get Clipboard action. In the search bar, type "Clipboard" and drag Get Clipboard into the shortcut canvas. This captures whatever text or URL you last copied.

3

Add the Generate QR Code action. Search for "QR" in the action library and add the built-in Generate QR Code action. Set the input to Clipboard from the previous step.

4

Add Quick Look or Save to Downloads. To preview the result instantly, add a Quick Look action. To save automatically, add Save File pointing to your Downloads folder (or any location).

5

Assign a keyboard shortcut. In the shortcut details pane, add a keyboard shortcut trigger (e.g., Ctrl+Opt+Q). Now any copied text becomes a QR code with that key combination.

Once configured, your daily QR code generation workflow becomes: copy the URL, press your key combo, done. The QR code PNG lands in Downloads ready to attach to an email or drop into a design file.

Batch Automation: Generate QR Codes from a List

When you need to produce many QR codes at once — for a product catalogue, event schedule, or URL list — a batch workflow saves hours. For dedicated bulk tools on Mac, also see Bulk QR Code Generator for Mac. The Shortcuts approach is ideal when you already have a text file and want to stay entirely within macOS automation.

Mac Shortcuts batch recipe generating one QR code per line from a urls.txt file into a QR-Output folder
A batch shortcut reads urls.txt, loops over each line and saves one QR code per URL to a QR-Output folder.
Example QR codes generated in batch from a CSV list on Mac, saved as individual PNG files in a folder
Batch output: a folder of individually named QR code PNG files generated automatically from a line-separated text list.
Shortcut Recipe: Batch QR from Text File Get File // Select urls.txt from Desktop
Split Text // Separator: New Lines → list of URLs
Repeat with Each Item in Lines
  Generate QR Code // Input: Current Item
  Set Name QR-[Repeat Index].png
  Save File // Destination: ~/Desktop/QR-Output/
End Repeat

The shortcut above reads every line of a plain-text file, generates one QR code per line, names each file sequentially (QR-1.png, QR-2.png, etc.), and drops all results into an output folder. For CSV files with named values, split each line again with a second Split Text action (custom separator: comma) and use the second column as a custom filename.

File Naming Tip

Use a Text action to build dynamic filenames from the URL or a row value. For example: "QR-" + Current Item + ".png" creates instantly recognisable file names that match the encoded content.

Download

QR Code Apps for Mac & Safari

Prefer generating codes without opening a browser tab? These two native Apple apps cover both habits — a full generator on the desktop, and a one-click share button inside Safari.

Gen QR Fast QR code generator for links, text, Wi-Fi and vCards. Works fully offline, exports PNG and SVG.
Mac App Get
Tab to QR Turn the current tab into a QR code to scan or share, straight from the Safari toolbar.
Safari Extension Get

Scheduled QR Code Generation

Scheduled automation takes Shortcuts a step further: instead of triggering a shortcut manually, macOS runs it on a calendar, on login, or whenever a specific condition is met. This is useful for teams that rotate campaign URLs weekly, generate QR codes for recurring events, or want to keep a local QR code library in sync with a URL spreadsheet.

To schedule a shortcut, open the Automation tab in the Shortcuts sidebar and choose New Automation (automations came to Shortcuts on Mac with macOS Tahoe 26; earlier macOS versions have no Automation tab). Select the Time of Day trigger and choose whether it repeats daily, weekly or monthly. Point the automation at your QR generation shortcut and set it to run without asking. macOS will execute the shortcut in the background at the scheduled time, even if the Shortcuts app is closed.

Scheduled QR code generation on Mac: a daily or weekly Shortcuts automation running a batch shortcut that saves QR codes to a folder
Pair a daily or weekly automation with a batch shortcut and fresh QR codes land in your output folder on schedule.
macOS Shortcuts Automation tab showing a weekly QR code generation schedule configured with a time trigger
The Automation tab in macOS Shortcuts — configure a weekly or daily trigger to keep your QR code output folder automatically up to date.

Combine scheduling with a file-reading batch shortcut and you have a fully autonomous QR pipeline: update the URL list, and a new set of QR codes is waiting in the output folder every Monday morning without any manual intervention. For more on native Mac QR code capabilities, see Native Mac QR Code Generator.

Example Shortcut Recipes

Below are four ready-to-adapt Shortcuts recipes for common QR code automation scenarios on Mac.

Four Mac Shortcuts QR code recipes: selected text to QR, Safari URL to QR, contacts vCard QR code and nightly campaign URL refresh
Four recipes that cover the most common QR automation jobs on Mac.

Recipe 1: Selected Text to QR (Services Menu)

Create a shortcut that accepts Selected Text as input (via Shortcut Input → Receive Text). Add it to the Services Menu so you can right-click any selected text in any app and generate a QR code instantly. The output drops into Quick Look for immediate use.

Recipe 2: Safari URL to QR

Use the Get Current URL from Safari action, pipe it directly into the QR generation action, and save the result to your Desktop. Assign a keyboard shortcut and you can QR-code any webpage you are viewing with a single key press. If you would rather not build it, our Tab to QR Safari extension does the same from the toolbar, with Copy Image and Save PNG.

Recipe 3: Contacts vCard QR Code

Use Find Contacts to select a contact, format their details as a vCard string with a Text action, and generate a QR code from that string. This creates a scannable contact card anyone can add to their phone by pointing a camera at the code.

Recipe 4: Nightly Campaign URL Refresh

Read a list of campaign URLs from a text file synced via iCloud Drive, batch-generate QR codes, name them with today's date prefix, and save them to a shared folder. Schedule this to run nightly so your marketing team always has fresh QR codes without anyone lifting a finger.

Need a Styled Code Shortcuts Can’t Make?

Gen QR Code Maker adds custom colours, a logo overlay, L/M/Q/H error correction and vCard contact codes on your Mac — fully offline, no sign-up, $5.99 once.

Tips & Best Practices

Automations that run unattended fail quietly, so a few habits make the difference between a reliable QR pipeline and a folder of broken files.

Mac Shortcuts QR code automation best practices: test before scheduling, add error handling, organise output folders by date, spot-check scannability
Test, handle errors, date your output folders and spot-check scans before trusting an automation.

Frequently Asked Questions

Yes. Shortcuts on Mac includes a built-in Generate QR Code action that turns any text or URL into a standard QR code image, with a choice of error-correction level. The built-in action makes black-and-white codes; for styled codes with custom colours or a logo, create them in a dedicated QR app such as Gen QR Code Maker, which does not add its own Shortcuts actions.

Open the Shortcuts app, create a new shortcut, and add a Get Clipboard action followed by the built-in Generate QR Code action. Pass the clipboard text as the input. Add a Quick Look action at the end to preview the result, or a Save File action pointing to Downloads to export the image automatically.

Yes. Use a Shortcut that reads a plain-text or CSV file, splits the content by line or delimiter, then loops over each value with a Repeat with Each block. Inside the loop, call the Generate QR Code action and save the output image to a named folder. This produces one QR code PNG per row without any manual steps.

In the Shortcuts app on macOS Tahoe 26 or later, open the Automation tab and click New Automation. Choose the Time of Day trigger and set it to repeat daily, weekly or monthly. The shortcut can pull data from a file, URL, or clipboard and generate updated QR codes on a recurring basis, saving them to a set destination folder. Earlier macOS versions have no Automation tab.

The Gen QR Code Maker app provides a visual interface ideal for one-off QR codes with custom colours, a logo overlay and a chosen error correction level, organised in projects and folders. Shortcuts with its built-in Generate QR Code action is best for repetitive, automated, or triggered workflows — generating QR codes in bulk, on a schedule, or reacting to clipboard changes — without opening any app UI. Gen QR does not provide Shortcuts actions, so use the two side by side.

Yes. Install the open-source qrencode command-line tool (for example with Homebrew: brew install qrencode), then add a Run Shell Script action that calls it with its full path, such as /opt/homebrew/bin/qrencode -o ~/Desktop/qr.png followed by the text to encode. This is handy when you need SVG output (qrencode -t SVG) or exact control over module size and margin.