QR Code Generator with Scanner Using HTML, CSS and JavaScript with Source Code


Welcome to QR Code Generator with Scanner. this project is a versatile web application designed to simplify the process of creating and reading QR codes. Utilizing HTML for structure, CSS for styling, and JavaScript for functionality, this project provides a seamless user experience. With QRCode.js for generating QR codes and Instascan.js for scanning them, the application offers a complete solution for handling QR codes directly from a web browser.

This tool allows users to effortlessly generate QR codes by entering any text, which is then transformed into a scannable code displayed on the screen. Additionally, the built-in QR code scanner leverages the device's camera to detect and read QR codes, instantly displaying their content and capturing the scanned image. Whether for personal use or business applications, this QR Code Generator with Scanner is a practical and user-friendly solution for managing QR codes.

You may also check this simple HTML, CSS and JavaScript projects:


  1. QR Code Generation: Users can input any text to generate a QR code. The generated QR code is displayed on the screen for easy access and sharing.
  2. QR Code Scanning: Users can scan QR codes using their device's camera. The application detects the QR code, captures the video frame, and displays the content of the QR code.
  3. Responsive Design: The interface is designed to be responsive and user-friendly, making it accessible on various devices, including desktops, tablets, and smartphones.

Technologies Used:

  • HTML: Provides the structure of the web application.
  • CSS: Used for styling the application, ensuring a visually appealing and consistent design.
  • JavaScript: Implements the core functionality, including QR code generation and scanning.
  • QRCode.js: A JavaScript library for generating QR codes.
  • Instascan.js: A JavaScript library for scanning QR codes using the device camera.

How to Use:

  1. Generating a QR Code:

    • Click on the "Generate QR Code" button to switch to the QR code generator interface.
    • Enter the text you want to encode in the QR code in the input field.
    • Click the "Generate QR Code" button to create and display the QR code.
  2. Scanning a QR Code:

    • Click on the "Scan QR Code" button to switch to the QR code scanner interface.
    • Click the "Start QR Code Scanner" button to activate your device's camera.
    • Position the QR code in front of the camera. Once detected, the application captures the video frame and displays the content of the QR code.
    • The detected QR code image and its content are displayed on the screen. Click "Scan Again" to perform another scan.

Sample Screenshots of the Project:

Landing Page

Generate QR Code

Scan QR Code

How to Run?

  • Download the provided source code zip file.
  • Extract the downloaded zip file.
  • Open the html file and you are now ready to go!

Video Demonstration for Installation/Setup:


In conclusion, the QR Code Generator with Scanner is a practical and user-friendly web application that leverages HTML, CSS, and JavaScript to provide seamless QR code generation and scanning capabilities. By utilizing QRCode.js and Instascan.js, users can effortlessly create and read QR codes directly from their browser, making it an invaluable tool for a variety of applications, from personal use to business solutions. Its responsive design ensures accessibility across different devices, offering a versatile and efficient solution for managing QR codes.

That's it! I hope this "QR Code Generator with Scanner Using HTML, CSS and JavaScript" will assist you on your programming journey, providing value to your current and upcoming project.

For additional tutorials and free source codes, explore our website.

Enjoy Coding :>>

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Add new comment