Html5-QRCode is a browser library for QR codes, barcodes, and common symbologies using the device camera or local image files. It offers a full UI scanner or lower-level APIs for custom interfaces.
Overview
Html5-QRCode targets web applications that need camera-based or file-based code scanning without native mobile wrappers. It wraps camera permission handling, live preview, and decode loops so integrators can ship scanning quickly. The project is in maintenance mode until further notice.
Two API levels are available. Html5QrcodeScanner provides an end-to-end widget with a small integration footprint. Html5Qrcode exposes finer control for custom UIs while still managing camera setup and decoding.
Supported codes depend on the bundled zxing-js decoder, with common 1D and 2D formats documented. Platform notes cover desktop browsers and mobile WebKit limitations on older iOS versions.
Maintenance-mode status applies to ongoing development. Documentation and demos are hosted at scanapp.org, including a hosted demo built on the same library.
Key features
- Camera and local file scanning
- Barcode and QR decode support
- Html5QrcodeScanner UI widget
- Low-level Html5Qrcode API
- Torch zoom and scan region options
- Format-filtered scanning modes
Use cases
- Add QR login to web apps
- Scan barcodes in the browser
- Prototype kiosk scanning flows
- File-based decode without camera