How to create your own QR code using PYTHON

Abbas Hussain Muzammil
1 min readJul 14, 2021

--

These days you find many people make use of QR codes…

But what actually a QR code is?

QR is the acronym for Quick-Response It is a type of the matrix barcode(or the two-dimensional barcode) invented in 1994 by the Japanese automotive company Denso Wave. A barcode is a machine-readable optical label that contains information about the item it is linked to…

Using QR codes saves a lot of time by not manually searching the required piece of information…

Can we make our own QR Code?

Yes, you can make your own QR code and link it to the required text you wish to have…

HOW?

You can make use of python and its packages and generate a simple text-enabled QR code.

Required Python Packages:

  1. pyqrcode
  2. pypng
  3. pillow
  4. pyzbar

I have generated my own QR code using the below code:

You can make use of any IDE such as VSCode, PyCharm to execute your code

After generating the above Code a png file will be generated through which you can scan your QR Code…

Below is the QR code generated by me…

Scan it and have fun generating your own QR code…

--

--