- Three routes to camera scanning, side by side
- Open source or a paid licence
- Native app or a web page
- Commercial barcode scanner SDKs
- Open-source libraries and Google's on-device API
- How barcode SDK licences are counted
- A one-hour test with your own labels
- Where scanning projects stall
- Where I'd start for each kind of build
Barcode scanner SDKs come in three kinds: open-source libraries you build on yourself, commercial SDKs licensed per app, device or scan volume, and JavaScript SDKs that scan inside a browser page. For a native app I'd start with an open-source or platform library and pay for a commercial SDK only when your own worst labels defeat it in a one-hour test.
The original ZXing Java library is now in maintenance mode, and its own project page describes the C++ port, zxing-cpp, as the active one.
That one line says a lot about this category. Free code is there for the taking, but you're choosing a maintainer as much as a library, and a commercial SDK is partly a bet that somebody will still be fixing camera code when the next phone ships. This guide sorts the options by the three forks that decide the build: open source or paid, native app or browser, and how the licence is counted.
Three routes to camera scanning, side by side
| Route | Where it fits | Check before you commit |
|---|---|---|
| Open-source library | Teams happy to own the camera code, updates and fixes themselves, in a native app or a web page | Who maintains it today, its licence terms, and how it reads your worst real labels |
| Commercial mobile SDK | Native iOS and Android apps where scanning is the main job of the app | What the licence counts (apps, devices, scans or stores) and what the trial lets you test |
| Browser JavaScript SDK | Web apps and links sent to customers, where nobody should have to install anything | How it behaves on the phones and browsers your users carry, including a denied camera prompt |
| Platform on-device scanning API | Android and iOS apps that need standard formats read on the device | Whether its format coverage matches the codes printed on your stock |
It's tempting to stop at the middle column. The right-hand one is where the cost of a wrong choice hides: a licence counted the wrong way for your rollout, or a library nobody's patching any more.
Open source or a paid licence
The open-source options on this list carry permissive licences, so the fee isn't the question. Upkeep is. When you take an open-source library you also take its camera handling, its edge cases and its release pace, and the day it stalls you're the maintainer.
A commercial SDK sells you the opposite trade. You pay a licence fee, you accept the vendor's terms, and in return you get a company whose job is to read the barcode your library couldn't. Whether that's worth it comes down to what a failed scan costs you. A shopper giving up on a price check is an annoyance; a warehouse picker typing codes by hand all shift is a wage bill.
My rule of thumb: if scanning is a feature, start with open source; if scanning is the product, budget for a licence from day one and keep the open-source library in your tests as the control.
Native app or a web page
The second fork is where the scanner runs. A native SDK lives inside your iOS or Android app. A browser SDK runs as JavaScript inside a web page, which means no app store, no install and one codebase, though the camera is reached through the browser, so check how it behaves in each browser your users carry before you commit.
On the native side, Google's ML Kit gives Android and iOS apps an on-device scanning API, and I'd treat it as the baseline any paid SDK has to beat on your labels.
On the browser side, STRICH is browser-only and runs client-side, while Quagga2 is the open-source JavaScript and TypeScript route that also runs in Node.
Need a phone app and a web app? Check whether one vendor's licence covers both builds. Some of the commercial SDKs below list web alongside iOS and Android, and the entries say which.
Commercial barcode scanner SDKs
Scandit
A commercial smart data capture SDK for mobile devices that goes past barcodes into label and ID scanning.
Dynamsoft Barcode Reader
A commercial barcode reading SDK, sold in separate web, mobile and server or desktop editions rather than as one package.
Scanbot SDK
Mobile and web barcode scanning with document scanning in the same commercial SDK, which its own site says has been acquired by Apryse.
STRICH
Browser-only by design, this JavaScript SDK reads barcodes and QR codes client-side, inside the web page itself.
barKoder
Aimed squarely at hard-to-read codes, barKoder is a barcode scanner SDK for iOS, Android and the web.
Anyline
A mobile data capture SDK whose barcode scanning sits beside ID, MRZ, licence plate and meter reading.
Open-source libraries and Google's on-device API
ZXing
The original open-source multi-format 1D and 2D barcode library, written in Java, with ports to other languages and a project page that says it's in maintenance mode.
Want AI doing the heavy lifting in your marketing?
I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.
ZXing-C++
Described by the ZXing project as its active port, this open-source C++ library ships bindings for Android, iOS, .NET, Rust, Python and WASM.
Quagga2
Written in JavaScript and TypeScript, Quagga2 is an open-source barcode scanner that works in the browser and in Node.
ML Kit barcode scanning
Google's on-device barcode scanning API for Android and iOS apps; its documentation says it reads most standard formats.
How barcode SDK licences are counted
Pricing here isn't one model, and the unit you're charged on matters more than the headline figure. Scandit prices by deployment scale, counting devices, scans or stores, as an annual subscription quoted on request. Scanbot SDK states a fixed annual fee with no per-scan charge. STRICH sells monthly plans priced by scan volume, plus an annual plan per app. barKoder licenses each app annually with a set number of devices and unlimited scans.
Run your own rollout through each model before you speak to anyone. A field-service app on forty company phones and a consumer app with fifty thousand casual users are very different bills: the first sits neatly on a per-device count, the second gets expensive on anything counted per device or per scan, and a flat per-app fee starts to look generous.
Open-source libraries cost nothing to licence and plenty in engineering time. Exact figures sit on each vendor's pricing page; where a vendor quotes on request, ask for the unit before you ask for the number. Trial lengths and device limits differ too, and they're stated on each vendor's site, so plan your test week around the window you're given.
A one-hour test with your own labels
Don't judge any of these on the vendor's demo barcode. Here's the hour I'd spend before shortlisting anything.
- Collect twenty real codes from your own stock: the creased, curved, faded and shrink-wrapped ones, plus a few on a screen if customers will show you codes on their phones.
- Build the smallest possible scan screen for two candidates, one open-source or platform library and one commercial SDK on its trial key, and put both on the same phone.
- Scan each code three times under office light, then again somewhere dim, and note how many attempts each one needs before it reads.
- Repeat on the oldest, cheapest phone your users are likely to own, because that's the phone your support tickets will come from.
- Add up the misses. If the open-source route reads every code, ship it and keep your trial notes; if it misses the codes you care about, you've just costed the licence.
For a browser SDK, add one more pass: open the page in every browser on your support list and deny camera permission once, to see exactly what your user is shown. If you're building something consumer-facing, like the apps in my guide to the best food scanner apps, make half your twenty codes crumpled snack packets and tins, because that's what your users will point the camera at.
Where scanning projects stall
The first stall is choosing from a format list. A list tells you a library knows a symbology; it doesn't tell you it can read your printer's version of it on your packaging. Only your own codes answer that.
The second is ignoring the maintainer. Before you build on any open-source library, open its repository and look at the last release, the open issues and the README. A README that says maintenance mode is the project telling you something, and you'll want to hear it before launch, not after.
The third is licensing for the pilot. Ten test devices tell you very little about the licence. Price the rollout you hope to have in a year, on each vendor's own unit, and you won't be surprised at renewal.
The fourth is treating scanning as a camera problem only. Decide what happens after the read: validation, a product lookup, a queue for when the warehouse Wi-Fi drops. Check what, if anything, the SDK does after the read, and budget your own time for the rest.
Do you make barcode scanner SDKs or scanning libraries? Tool makers can ask to be considered for a featured place on this list.
Where I'd start for each kind of build
- A native app where scanning is one feature among many: an open-source library or a platform on-device API first, tested against your worst labels.
- A native app where scanning is the job, such as stock counts, deliveries or ticket checks: a commercial mobile SDK, priced on the unit that matches your rollout.
- A web app, or a link you send to customers: a browser JavaScript SDK, commercial if you'd rather someone else owned camera quirks, open source if you've got the team for it.
- ID, licence plate or meter reading on top of barcodes: a commercial data capture SDK that covers those jobs, rather than a second library bolted on.
And if you don't need to build anything at all, just to read a few codes yourself, a free barcode scanner app on your phone will do it today. Whichever type you build on, the hour of testing with your own codes is the cheapest part of the project, and it's the bit that's easiest to skip.
Want your tool on this list? Featured spots and reviews here are paid partnerships. Here's how to partner with me.
