How to scan a barcode on a Mac
- Open this page and click Start camera, then allow camera access.
- For small barcodes, pick your iPhone (Continuity Camera) from the camera list under the video.
- Hold the barcode square to the camera with light on it. The value appears when it’s read.
- Copy it, look it up, or collect a list in Batch mode and export to Numbers or Excel.
Quick answer: macOS has no barcode scanning app built in, but any browser can do it. Use this page with the Mac camera, or with your iPhone as the camera for the best results on small barcodes.
Built-in camera vs Continuity Camera
Mac built-in cameras are tuned for video calls: wide angle, fixed or limited focus, and best at arm’s length. That’s fine for QR codes and big shipping labels, but a small UPC on a box can look soft. Continuity Camera turns a nearby iPhone into a wireless webcam with autofocus and a sharper sensor. When it’s available it shows up as a camera like any other, so pick it from the list under the video and the page remembers your choice.
Tips for scanning with a Mac
- Hold the barcode 25 to 35 cm from a built-in camera and let it be smaller in the frame. Closer just blurs it.
- Light the label from in front. Backlighting from a window makes the bars grey.
- The video isn’t mirrored, so move the item the way you see it on screen.
- For codes already on screen, a clipboard screenshot pasted into the image reader is faster than the camera.
USB scanners on macOS
A USB or Bluetooth barcode scanner needs no driver on a Mac. It types into whatever field is active and usually ends with Return, so it works in Numbers, Excel, FileMaker and web forms. On this page you can click the “Type a code, or scan with a USB scanner” box and the scans join the same list as camera scans. If digits appear as other characters, set the scanner’s keyboard country to match your Mac’s input source (for example British vs US).
Into Numbers or Excel
Switch to Batch mode, scan, and download the list as Excel (.xlsx). Numbers opens .xlsx files directly and keeps the codes as text, so leading zeros stay. The scan to Excel page explains the columns. On Windows or a Chromebook, see the barcode scanner for PC.
Frequently asked questions
Can my Mac scan barcodes?
Yes. Open this page in Safari, Chrome, Firefox or Edge, click Start camera and hold the barcode up to the camera. It reads QR codes easily and 1D barcodes when they’re well lit and not too close.
Can I use my iPhone as the Mac’s barcode camera?
Yes, with Continuity Camera (macOS Ventura or later and iOS 16 or later, on supported iPhones). Mount or hold the iPhone near the Mac, then choose it from the camera list under the video. Its autofocus reads small barcodes far better than a built-in Mac camera.
The browser can’t access my Mac camera. What do I do?
Open System Settings › Privacy & Security › Camera and switch on your browser. In Safari, also check Safari › Settings › Websites › Camera. Quit any app that’s using the camera, then reload this page.
How do I scan a barcode that’s on my Mac screen?
Press ⌘+Ctrl+Shift+4, drag around the barcode to copy a screenshot to the clipboard, then paste it with ⌘+V into scan barcode from image.
Do USB barcode scanners work on a Mac?
Yes. Standard USB and Bluetooth scanners act as keyboards on macOS and type codes into any app, including Numbers and Excel. If digits come out wrong, the scanner’s keyboard layout doesn’t match the Mac’s input source. Check it with the barcode scanner test.
Is anything sent off my Mac?
No. Video frames are decoded in the browser. Nothing is uploaded or stored on a server.