JavaScript ID Scanning SDK

Build ID verification into websites and web apps, backed by features users trust. The Scandit JavasScript ID Scanning SDK is fast, secure, compliant, and ISO 27001 Certified.

Turn any website or web app into a flexible, frictionless passport or ID scanner

1 sec

Scan and verify IDs in just 1 second, with on-device scanning.

100%

Up to 100% scan accuracy rate for all major document types.

2,500+

Scan over 2,500 ID cards, passports, drivers’ licenses, and more.

Capture IDs and detect fakes without slowing down users

We fuse optical character recognition (OCR), barcode scanning, and image recognition using video stream-based capture for ultra-fast, on-device ID scans.

  • ID Scan: Extract data from physical and digital IDs in 1 second. 100% accuracy for PDF417 barcodes, 99% accuracy for Machine Readable Zones (MRZ), 95%+ accuracy for Visual Inspection Zones (VIZ).
  • ID Validate: Proven to authenticate IDs as fake or real with 99.9% accuracy, in real‑world workflows of 100,000 weekly scans at one of the largest US food delivery companies.

Covers all major document types

Driver's licenses

ID cards

Military IDs

Passports

Residency permits

mobile drivers license

Mobile driver's licenses

Visa letters

Invitation letters

Scandit supports over 2,500 types of physical and digital ID documents, including mobile driver’s licenses (mDL), invitation letters, and visas. Also supports anonymization requirements, older ID versions, the detection of voided IDs (punched holes and cut corners), and other features to verify ID authenticity.

See supported document types
car rental scan drivers license mobile device

Try interactive demo

Run a demo of Scandit ID Bolt in your browser now. All data processing happens on your device, and no data will be stored by Scandit. You can integrate this same code into your development environment in less than 1 hour.

Two ways to deploy fast

Add a pre-built component maintained by Scandit, or build a customized passport/ID scanning experience.

ID Bolt

  • Give website visitors fast, foolproof and self-serve passport and ID scanning with a pre-built component maintained by Scandit.
  • Ready to test in just 1 hour.
  • Runs on any modern web browser, on-device.

See documentation

Data Capture SDK

  • Get customizable ID data capture and fake ID detection in one SDK.
  • Flexible UI and workflow options that match business needs.
  • Supports Native, Web, and all major frameworks and programming languages.

See documentation

Secure ID scanning, always

Businesses and their customers trust Scandit to protect their data at all points of the scanning process.

id bolt passport scanning with mobile device
  • Compliance: ISO 27001 Certified and compliant with applicable data privacy laws and business regulations, including GDPR and CCPA.
  • On-device processing: All data processing happens on device, so no data is shared with third parties.
  • Secure transmission: Any transmitted usage data is encrypted and anonymized. No personal data stored on the device.

Our application is a game changer. Since SAS employees are now able to scan customer barcodes directly on their mobile phones, they can look up bookings, clear warnings through passport scanning, and board passengers on the airplanes.

Sören Fredriksson, IT Project Manager, SAS

Read the case study

Frequently Asked Questions

What types of identity documents are supported?

We support over 2,500 documents worldwide, including ID cards, passports, military IDs, residency permits, driver’s licenses, mobile driver’s licenses (mDL), invitation letters, and visas.

Scandit software captures data from various sources on IDs, including PDF417 barcodes, Machine Readable Zones (MRZ), Visual Inspection Zones (VIZ), and identity photos. We support older versions of IDs as they can be valid for up to 10 years.

For a full list of supported documents, visit our supported ID documents page.

Which browsers can I scan IDs from?

With the Scandit JavaScript ID Scanning SDK you can scan identity documents from almost any modern web browser. For Android, these include Chrome, Firefox, and Edge; for iOS: Safari.

To see all supported browsers, visit our full list of Web platforms and browser compatibility.

What is the size of the Scandit JavaScript ID Scanning SDK?

The Scandit JavaScript main library size is 28.6 kB. This article gives you a 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.


Do I need an internet connection to scan ID documents?

Our production licenses do not require a continuous internet connection, meaning users can scan IDs even with poor internet connectivity and when completely offline.

Test licenses require an internet connection during scanning. If you need to test offline, we can provide a license key – please contact support.

How do you implement an ID scanner in JavaScript?

To implement ID scanning in JavaScript, Scandit provides two options:

  • For rapid deployment of pre-built features, install Scandit ID Bolt and insert the appropriate Javascript code into your website or web app. It takes just 1 hour to get ID Bolt into your environment and ready for testing.
  • To customize your ID scanning experience, install the Scandit Data Capture SDK, configure and initialize the library, implement a capture listener to receive scan events, and consider how to design your ID scanning UI. Learn more in our documentation.

What is the JavaScript library to read IDs?

Scandit’s JavaScript ID Scanning SDK can be integrated into your website to provide barcode scanning directly in the browser. Scandit ID Bolt provides pre-built features that can be deployed quickly and enable customer self-service.

The Javascript API allows you to access cameras available on the device for video input, display an ID scanning interface, capture the front and back of identity documents in one operation, and let users easily scan identity documents in your web application.


How to get document data from an ID scanner with JavaScript?

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

Scandit’s JavaScript ID Scanning SDK provides a IdCaptureListener interface that you can implement to inform your app whenever a new identity document is recognized and parsed, and the CapturedId class that contains the results of a document scan.

Loading search...

Please wait a moment