QR Code Generator

Create QR codes for URLs, text, WiFi, UPI, and more. Download as PNG.

Click "Generate" to create your QR code

What is a QR Code?

A QR (Quick Response) code is a two-dimensional barcode that can store data such as URLs, text, WiFi credentials, payment information, and contact details. Invented in 1994 by Denso Wave (a Toyota subsidiary) for tracking automotive parts, QR codes have become ubiquitous — from restaurant menus and payment systems to product packaging and event tickets.

Unlike traditional barcodes that store data in one dimension (horizontal lines), QR codes use a matrix of black and white squares to encode data in both horizontal and vertical directions. This allows them to store significantly more information — up to 7,089 numeric characters or 4,296 alphanumeric characters.

QR Code Types Supported

Our generator supports six types of QR codes, each encoding data in a specific format that phones and scanners understand:

  • URL: Encodes a website address. When scanned, the phone's browser opens the URL directly. Most commonly used for sharing links, social media profiles, and websites.
  • Text: Encodes plain text content. Useful for sharing short messages, notes, or any text-based information.
  • WiFi: Encodes network credentials in the WIFI:T:WPA;S:NetworkName;P:Password;; format. When scanned, Android and iOS devices automatically connect to the network without manual password entry. Perfect for guest WiFi in homes, offices, hotels, and cafes.
  • UPI Payment: Generates a UPI deep link (upi://pay?pa=...) that opens any UPI app (Google Pay, PhonePe, Paytm, etc.) with pre-filled payment details. You can optionally include a fixed amount. Widely used by Indian merchants and freelancers.
  • Phone: Encodes a phone number using the tel: URI scheme. Scanning triggers the phone's dialer with the number pre-filled.
  • Email: Encodes an email address and optional subject using the mailto: URI scheme. Scanning opens the default email app with the recipient and subject pre-filled.

How QR Codes Work

Every QR code contains several key components:

  • Finder patterns: The three large squares in the corners help scanners detect and orient the QR code, regardless of the angle it's scanned from.
  • Alignment pattern: The smaller square (in larger QR codes) helps correct for distortion when the code is printed on curved surfaces.
  • Timing patterns: Alternating black and white modules between the finder patterns establish the coordinate system.
  • Data and error correction: The remaining modules encode the actual data along with Reed-Solomon error correction codes, which allow the QR code to be read even if up to 30% of it is damaged or obscured.

Tips for Best Results

  • Size matters: Use 300x300 or larger for printed materials. Smaller QR codes may not scan reliably from a distance.
  • Contrast is key: Dark modules on a light background scan best. Our tool uses white on dark by default — you can change the QR colour to suit your needs.
  • Test before printing: Always scan your generated QR code with your phone camera before printing or sharing to verify it encodes the correct data.
  • Keep URLs short: Shorter URLs produce simpler (and more scannable) QR codes. Consider using a URL shortener for very long links.

Privacy & Security

QR codes generated on CompareKaro are created entirely in your browser using the qrcode-generator JavaScript library. Your data (WiFi passwords, UPI IDs, etc.) is never sent to our servers or any third party. The QR code is rendered on an HTML5 Canvas element and downloaded directly from your browser.

CompareKaro

Add CompareKaro to Home Screen

Quick access to 40+ free tools