Reading QR-Code from Command Line

Reading QR-Code from Command Line

14 Mar 2018, 12:00am TZ +00:00
linux, windows
tools, Software

Many times we need a reliable way to infer the data hidden into the Barcode.

In the modern days is the time for QR-Code.

There is a easy to use utility provided by Zbar folks.

Zbar is an opensource project which provides an easy way to read or create barcodes.

They support EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.

We would be interested in the QR-Code.

The Idea is the we want to scan a QR Code as a picture and then let Zbar figure out what is contained in that picture.

1. Just install the tools #

sudo apt-get install zbar-tools

Or for Windows they have an Installation package:

For better insight refer to


2. Command-line Use #

zbarimg QR-code.png

The data would be displayed instantly in the command-line.