Skip to Content
Sindre Sorhus
Back to Actions

Updated

How to Scan a QR Code in a Photo or Screenshot on iPhone

By Sindre Sorhus, who makes the Actions app

With Actions

  1. Install Actions, and open it once.
  2. In the Shortcuts app, make a new shortcut, and add the “Select Photos” action.
  3. Add the “Scan QR Codes in Image” action of Actions.
  4. Add the “Show Content” action, or “Open URLs” to open a link.
  5. Run the shortcut, and choose the photo or the screenshot.

The scan is on your iPhone, so it also works offline. By default, the action reads only one code. To read all the codes in the image, turn on “Scan Multiple”.

Tips

  • A Wi-Fi QR code gives text like WIFI:S:Home;T:WPA;P:secret123;;. The name of the network is after S:, and the password is after P:, so you can read the password without joining the network.
  • For the barcode of a product, use the “Scan Barcodes in Image” action.
  • To run the shortcut from the share button in Photos, turn on “Show in Share Sheet” in the details of the shortcut, and use the input of the shortcut in place of “Select Photos”.

Get Actions

Additional actions for the Shortcuts app

Download on the App Store

Free

Requires
iOS 26 or later
Updated
June 2026
US App Store rating
4.8/5 (703 ratings)

More about Actions

Without an app

The Photos app reads a QR code in a photo or a screenshot with Live Text:

  1. Open the photo or the screenshot in the Photos app.
  2. Touch and hold the QR code. If nothing shows, tap the Live Text button in the lower-right corner first.
  3. Tap the link or the action that shows.

To get the full text of a code, like the password of a Wi-Fi code, use the shortcut above. The Camera app also reads a QR code that the camera sees, like on another screen (Apple’s instructions).

To find your photos and screenshots that have QR codes, open the Photos app, tap “Collections”, tap “Utilities”, and tap the collection of QR codes (Apple’s instructions).

On a Mac, see how to scan a QR code on Mac.