Media and documents · Library

ZXing

An open-source library for reading and creating barcodes and QR codes from images or a live camera feed, first written in Java and ported to many languages.

Images · Open source · updated

How it works

ZXing ('zebra crossing') decodes 1D barcodes such as EAN-13, UPC-A, Code 39 and Code 128 and 2D codes such as QR Code, Data Matrix, Aztec and PDF417, and it can generate them as well. It began at Google and powered the well-known Barcode Scanner app on Android. Ports include zxing-js for JavaScript and zxing-cpp, a C++ version that also compiles to WebAssembly for fast scanning in the browser.

The original Java project and the JavaScript port are now in maintenance mode and accept only bug fixes, so new projects often use zxing-cpp builds, the browser's BarcodeDetector API where it is available, ML Kit on Android or Apple's Vision framework on iOS. Scanning quality depends as much on the camera, focus and lighting as on the library.

ZXing pricing

Open source

Free (Apache 2.0).

Approximate, checked September 2026.What the other tools cost

More in Media and documents

Images

All 14 Media and documents terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.