JavaScript Barcode Scanner SDK

Designed for developers, built for users. Scandit’s JavaScript Barcode Scanner SDK gives you enterprise-level features without big development effort.

Turn web apps into barcode scanning machines

Give users up to 20 scans/second, 99% accuracy, and support for damaged codes and low light conditions. All within their browsers.

Performance-optimized features in one library

We provide UX-optimized components and ultra-fast decoding, you customize features to suit your business:

  • User guidance: Visual aids, audio and haptic feedback
  • Multiple barcode support: Batch scan barcodes fast and accurately
  • Deploy anywhere: Public websites and internal-only private networks
  • Work offline: Progressive Web App (PWA) support lets users work with little to no internet connectivity
SparkScan scanning user interface, designed for capturing barcodes at scale

A JavaScript barcode scanner you don’t have to worry about

Using WebAssembly, our JavaScript library gives every user an enterprise-ready barcode scanner in their pocket:

  • No set-up or app download needed by the user
  • Best-in-class security and privacy compliance
  • Ongoing feature and performance updates

Integrate in 3 Steps

The only prerequisites for the JavaScript Barcode Scanner SDK are an IDE and a valid Scandit Data Capture SDK license key.

integration options

1. Add Library

Add as an external resource from a CDN or a package dependency via npm.

automation icon

2. Set Symbology

Choose from over 30 different symbologies to fit your use case.

leading performance

3. Listen for Scans

Customize listener methods to suit your application and your app is ready for scanning.

Want to test our SDK without coding?

Try our Web demo app to test out Scandit’s SDK without writing a line of code.

The proven choice for enterprise JavaScript scanning

Case study

DCK reduces markdown time by 50%

“This was probably the easiest rollout of any of the change programmes that we have delivered in recent years. Once we pushed the button, it was a really quick and smooth process launched just in time for our peak markdown season.”

Oliver Simons
Operations Development Director,

Read more

Shipt logo
lufthansa logo

Frequently Asked Questions

Our Javascript barcode scanner supports 30+ of the most common barcodes, including UPC, EAN, Code 39, Code 128, ITF, Code 93, Codabar, Databar, MS1 Plessey, QR codes, DataMatrix, PDF417 and Aztec codes. 

For a detailed list please refer to our Supported Symbologies documentation page.

With the Scandit JavaScript SDK you can scan barcodes from almost any modern browser. For Android, these include Chrome, Firefox and Edge; for iOS: Safari. See the full list of Web platforms and browser compatibility

Yes! The Scandit JavaScript SDK ships with full TypeScript support.

The Scandit JavaScript main library size is 28.6 kB. This article gives you a more detailed overview of the size of the Scandit Javascript library. 

This size is for the files minified and gzipped. Keep in mind that you will not need to wait for these files to download to display your webpage/web application, they can be downloaded and prepared in the background without affecting the rest of the application.

Our production licenses do not require a continuous internet connection. However, test licenses require an internet connection during scanning. 

If you need to test offline, we can provide a license key – please contact support.

To implement Scandit barcode scanning in JavaScript, roughly, you will need to install the SDK, configure and initialize the library, enable barcode symbologies, register a barcode capture listener to receive scan events, and consider how to design your scanning UI. Learn more in our documentation.

Scandit’s JavaScript barcode scanning library can be integrated into your website to provide barcode scanning directly in the browser.

The Javascript API allows you to access cameras available on the device for video input, display a barcode scanner interface, configure in-depth settings for barcode symbologies and performance, and let users easily scan barcodes in your web application.

JavaScript apps commonly use callbacks, called event listeners, that trigger actions in response to successful barcode scans.

Scandit’s JavaScript barcode scanning library provides a BarcodeCaptureListener interface that you can implement to inform your app whenever a new barcode is recognized, and the BarcodeCaptureSession class that contains the list of barcodes to handle.