How to scan a barcode on iPhone
- Open this page in Safari (or any browser) on your iPhone.
- Tap Start camera and allow camera access when asked.
- Hold the phone 15 to 20 cm from the barcode so it sits inside the frame and looks sharp.
- When it beeps, copy the number, look up the product, or keep scanning in Batch mode.
- Optional: tap Share › Add to Home Screen to open the scanner like an app next time.
Quick answer: an iPhone can scan any common barcode without an app. Use this page in Safari: it uses the rear camera, reads UPC, EAN, ISBN, Code 128, QR, Data Matrix and more, and lets you copy or export the results.
Why not just use the iPhone Camera app?
The Camera app and Code Scanner are designed to open QR codes, usually links. They don’t show the digits of a product barcode, keep a history, or export a list. This scanner shows the value and barcode type for every scan, keeps a list for the session, and gives you buttons to copy, look up the product, or regenerate the same barcode.
Getting a fast scan on iPhone
- Distance first: start about 20 cm away. iPhone main cameras focus poorly up close, and a small sharp barcode reads better than a large blurry one.
- Light: Safari can’t switch on the flashlight, so scan near a window or lamp. Tilt the item to remove glare on shiny packaging.
- Steady hands: rest your elbows or the item on a table. The scanner checks several frames a second, so it only needs a moment of stillness.
- Pick the right camera: if the camera list appears under the video, choose the standard back camera rather than the ultra-wide.
Use it like an app
In Safari, tap the Share button, then Add to Home Screen. The scanner gets its own icon and opens full screen. Your sound setting and camera choice are remembered. For stock counts, switch to Batch mode to build a list and export it as CSV or Excel; the inventory scanner is set up for exactly that.
Supported barcodes on iPhone
The iPhone version reads the same formats as everywhere else: UPC-A, UPC-E, EAN-13, EAN-8, ISBN, Code 128, GS1-128, Code 39, Code 93, Codabar, ITF-14, GS1 DataBar, QR Code, Micro QR, Data Matrix, PDF417 and Aztec. Safari has no built-in barcode detector, so decoding uses the ZXing engine in WebAssembly, which runs comfortably on any iPhone from the last several years.
Using an Android phone too? See the barcode scanner for Android.
Frequently asked questions
Does the iPhone have a built-in barcode scanner?
Partly. The Camera app and the Code Scanner in Control Center read QR codes and open them. They don’t give you UPC or EAN numbers you can copy, look up or collect into a list. This page does that in Safari without installing anything.
How do I scan a barcode on iPhone without an app?
Open this page in Safari, tap Start camera, then tap Allow when Safari asks for the camera. Point the phone at the barcode and the number appears with its type. Chrome, Firefox and Edge on iPhone work too.
Safari won’t let me use the camera. How do I fix it?
Tap the aA (or page menu) icon in the address bar, choose Website Settings and set Camera to Allow. You can also check Settings › Safari › Camera (on newer iOS, Settings › Apps › Safari › Camera). Then reload the page.
Why is the barcode blurry on my iPhone?
You’re probably too close. Pro models in particular can’t focus their main camera closer than about 15 to 20 cm, so move the phone back and let the barcode be smaller in the frame. Good light helps more than getting closer.
Can I turn on the flashlight while scanning?
Not from the page. Safari on iPhone doesn’t currently let websites control the flashlight, so the button only appears on browsers that support it. Turn on a room light, or open Control Center and switch on the torch before you start.
Can I scan a barcode from a screenshot or a photo in my library?
Yes. Tap Scan an image instead and pick the photo, or use scan barcode from image, which reads several barcodes at once.
Is anything sent to a server?
No. The camera video is decoded inside Safari on your iPhone. Nothing is uploaded unless you tap a link such as Look up product.