ReactJS Barcode Scanner
Integrate our fast and accurate ReactJS Barcode Scanner into your website or web application. Seamlessly scan 1D and 2D barcodes with real-time data capture.
Trusted by
400+
global
industry leaders
Real-time AR feedback
Deliver real-time augmented reality (AR) feedback during barcode scanning and improve user interaction. Elevate the user experience with seamless visual cues for faster, more intuitive barcode recognition.
Barcode scanning in challenging conditions
Our ReactJS Barcode Scanner ensures accurate scans even under the toughest real-world conditions:
- Damaged barcodes
- Low-light environments
- Tiny or distant barcodes
Customizable UI components
Our Ready-To-Use UI components cover all barcode scanning scenarios and are highly customizable. Learn more
Fast.
Very fast.
Every scan happens in
Add a fast and reliable ReactJS Barcode Scanner to your website
Effortlessly integrate our ReactJS Barcode Scanner SDK into your web applications. With user-friendly APIs, our SDK enables seamless scanning and decoding of both 1D and 2D barcodes directly from device cameras or uploaded images. Enjoy quick, precise, and dependable barcode detection in real-time, whether you’re working with live captures or uploaded image files.
Built with developers in mind, our ReactJS Barcode Reader supports a wide range of barcode formats, including QR codes, Data Matrix, PDF417, EAN, and more. The Scanbot SDK is optimized for cross-platform compatibility, ensuring smooth integration across both desktop and mobile environments.
Our Ready-to-Use UI (RTU UI) components let you implement and personalize the scanner’s interface in under an hour, no heavy coding required. Plus, the Scanbot SDK performs excellently even in low-light scenarios, making it the perfect fit for applications in industries like retail, logistics, healthcare, and beyond.
Need help? Our dedicated support team is available on Slack, Microsoft Teams, or email to help you throughout the integration process and ensure you’re getting the most out of the Scanbot Barcode Scanner SDK.
Technical requirements
Our Web SDK leverages Web Assembly for fast, efficient barcode scanning, supported by the following browser versions or newer:
- Edge: 16+
- Firefox: 53+
- Chrome: 57+
- Safari: 11+
The latest versions of the following mobile browsers are supported:
- Android: Chrome, Firefox, Edge
- iOS 14.5+: Safari, Chrome, Firefox, Edge
Discover common barcode scanning use cases
See how the Scanbot Web Barcode Scanner SDK’s scan modes improve your workflows.
-
Single Scanning
Ideal for tasks requiring the scan of just one barcode at a time, such as re-ordering products or performing a quick stock lookup in retail or inventory management systems.
-
Batch Scanning
-
Multi Scanning
-
Find & Pick
-
Scan & Count
How to integrate the Scanbot Web Barcode Scanner using ReactJS
Thanks to the Scanbot Web Barcode Scanner SDK’s Ready-to-Use UI Components, you can add barcode scanning functionalities to your website or web app in a matter of minutes.
To create a simple web app, first install the scanbot-web-sdk package with the following command:
npm i scanbot-web-sdk
Copy the SDK’s WebAssembly binaries from node_modules to wasm in the public asset directory using the following command:
mkdir -p public/wasm && cp -r node_modules/scanbot-web-sdk/bundle/bin/barcode-scanner/* public/wasm
Then initialize the SDK in App.tsx.
import { useEffect } from "react";
import ScanbotSDK from 'scanbot-web-sdk/ui';
const App = () => {
useEffect(() => {
const init = async () => {
await ScanbotSDK.initialize({
licenseKey: "",
enginePath: '/wasm/'
});
};
init();
}, []);
return <></>;
}
You can configure the barcode scanner like this:
const startScanner = async () => {
const config = new ScanbotSDK.UI.Config.BarcodeScannerScreenConfiguration();
const result = await ScanbotSDK.UI.createBarcodeScanner(config);
return result;
}
To trigger the scanner with a button press, add a button and assign the startScanner function to its onClick event:
return (
<div>
<button onClick={startScanner}>Start Scanner</button>
</div>
);
Set the value of scanResult within the startScanner function when the scanning results are returned. You can display those results below the button.
Your App.tsx should look like this:
import { useEffect, useState } from "react";
import ScanbotSDK from "scanbot-web-sdk/ui";
const App = () => {
const [scanResult, setScanResult] = useState<string>("");
useEffect(() => {
const init = async () => {
await ScanbotSDK.initialize({
licenseKey: "",
enginePath: "/wasm/"
});
};
init();
}, []);
const startScanner = async () => {
const config = new ScanbotSDK.UI.Config.BarcodeScannerScreenConfiguration();
const result = await ScanbotSDK.UI.createBarcodeScanner(config);
if (result && result.items.length > 0) {
setScanResult(result.items[0].barcode.text);
}
return result;
}
return (
<div>
<button onClick={startScanner}>Start Scanner</button>
{scanResult && <div>{scanResult}</div>}
</div>
);
};
export default App;
With this setup, you now have a fully functional barcode scanner! Check out our comprehensive, step-by-step tutorial that guides you through the entire process of how to build a React.js Barcode Scanner web app with TypeScript and Vite.
Frequently Asked Questions
Does the SDK support all platforms beyond ReactJS?
Yes, in addition to the ReactJS Framework, we offer SDKs for native iOS, Android, React Native, Flutter, Cordova, Capacitor / Ionic, Xamarin, .NET MAUI, UWP, Linux. This allows for consistent barcode scanning across all your applications.
How can I get a trial license for the ReactJS Barcode Scanner?
You can request a free trial license directly from our website to test the full capabilities of the SDK in your React JS environment.
Which barcode formats are supported by the ReactJS Barcode Scanner?
Our ReactJS Barcode Scanner SDK supports all major barcode formats, including 1D barcodes like UPC, EAN, and Code 128, as well as 2D barcodes such as QR codes, PDF417, and DataMatrix. This makes it a versatile solution that ensures accurate barcode scanning across industries such as retail, logistics, healthcare, and many more. Explore the full list of supported barcodes by the Scanbot SDK here.