What is a QR code and how does it work?

QR stands for Quick Response. A QR code is a two-dimensional barcode that stores data โ€” most commonly a URL โ€” in a grid of black and white squares. A phone camera reads the pattern and decodes the stored information, typically opening a website, dialling a number, or connecting to Wi-Fi.

QR codes were invented in 1994 by Denso Wave, a Japanese automotive company, to track vehicle parts during manufacturing. The design was intentionally made freely available rather than patented, which is why QR codes became a universal standard without licensing fees. Since smartphone cameras began natively reading QR codes around 2017โ€“2018, usage has grown dramatically โ€” on business cards, restaurant menus, product packaging, payment systems, and event tickets.

What can a QR code contain?

Most people think of QR codes as website links, but they can encode several types of data:

How to create a QR code free โ€” step by step

  1. Open the QR Code Generator at toolbase.work/pages/qr-code-generator.html
  2. Select the content type โ€” URL, Text, Email, Phone, SMS, or Wi-Fi using the tabs at the top
  3. Enter your content โ€” paste a URL, type your text, or fill in the relevant fields
  4. Customise the appearance โ€” change foreground and background colors, select a dot style, and optionally upload a logo
  5. Click Generate QR Code โ€” the preview updates in real time
  6. Download PNG โ€” save a 1000 ร— 1000 pixel QR code ready for print or digital use

No sign-up is required and the downloaded file has no watermark. The QR code is generated entirely in your browser โ€” nothing is transmitted to any server.

Create your QR code now โ€” free

Custom colors, logo upload, 6 content types, PNG download. No sign-up, no watermark.

Open QR Generator โ†’

How to add a logo to a QR code

Adding a logo makes a QR code immediately recognisable as belonging to a brand. It works because of a built-in feature called error correction โ€” QR codes contain redundant data throughout the pattern, so even if part of the code is damaged or covered, the scanner can reconstruct the missing data.

The four error correction levels and what they allow:

LevelCoverage allowedBest for
L โ€” LowUp to 7% damagedSimple codes, clean environments
M โ€” MediumUp to 15% damagedGeneral use, slight wear expected
Q โ€” HighUp to 25% damagedIndustrial, outdoor, small logos
H โ€” MaximumUp to 30% damagedLogos, heavy branding, outdoor

For any QR code with a logo: set error correction to H first, then upload your logo, and keep it under 25% of the total QR area. Test scan before printing โ€” if it fails, reduce the logo size or switch to a shorter URL.

Logo format tips: PNG with a transparent background looks cleanest. Square logos (1:1 aspect ratio) centre better than wide or tall ones. Logos with fine detail or thin lines may not render well at small sizes โ€” a simplified version often works better.

Choosing colors for a scannable QR code

Color choice is the most common reason custom QR codes fail to scan. The fundamental requirement is contrast โ€” the scanner needs to distinguish dark modules from light background. Guidelines:

QR code dot styles โ€” what the options mean

The dot style changes the shape of the individual modules (the small squares) that make up the QR pattern:

The corner squares (the three large squares in the corners) can also be styled separately. Square corners look traditional; rounded or circular corners give a more modern, branded look. Corner style has no effect on scanning reliability.

What size to print a QR code

Too small and the camera struggles to resolve the pattern. The minimum safe size depends on the content โ€” a short URL produces fewer modules (a simpler pattern) and can be printed smaller than a long URL or complex data.

Where usedMinimumRecommended
Business card1.5 ร— 1.5 cm2.5 ร— 2.5 cm
Flyer or brochure2 ร— 2 cm4 ร— 4 cm
A4 poster3 ร— 3 cm6 ร— 6 cm
Large banner10 ร— 10 cm20 ร— 20 cm or larger
Outdoor signage (2m+ viewing distance)20 ร— 20 cm40 ร— 40 cm

The 1000 ร— 1000 pixel PNG from the ToolBase generator prints cleanly up to A4 at 150 DPI. For large-format printing (banners, signage), ask your printer to scale using nearest-neighbor interpolation, which keeps the QR edges sharp rather than blurring them.

Why isn't my QR code scanning? Common problems

ProblemLikely causeFix
Code doesn't scan at allToo small, low contrast, or very long URLPrint larger, increase contrast, shorten URL with a link shortener
Scans but goes to wrong URLTypo in the original URLDouble check the URL before generating; test scan on screen first
Logo version doesn't scanLogo too large, EC level too lowSet EC to H, reduce logo size to under 20%
Only scans in bright lightLow contrast color choiceIncrease contrast between dots and background
Works on iPhone but not AndroidLight-on-dark colors (some Android scanners)Switch to dark-on-light or test specific devices used by your audience
Code scans in app but not cameraCamera QR detection disabledUser needs to enable "Scan QR codes" in camera settings

QR codes in Pakistan โ€” common uses

QR code adoption in Pakistan has accelerated through Raast and other digital payment systems. Several practical uses specific to the Pakistani context:

Static vs dynamic QR codes

QR codes generated by this tool are static โ€” the data is encoded directly in the pattern. Once generated, the content cannot be changed. The code never expires and works forever as long as the destination (for URLs) remains live.

Dynamic QR codes (offered by paid services like QR Tiger, QRfy, Bitly) use a redirect URL โ€” the QR code actually encodes a short tracking URL, and that URL redirects to the final destination. This allows you to change the destination without printing a new QR code, and track how many times the code has been scanned. These services typically charge a monthly fee.

For most use cases โ€” business cards, posters, menus, Wi-Fi codes, contact details โ€” a static QR code is perfectly adequate and costs nothing. Use dynamic QR codes only if you specifically need to change the destination after printing or require scan analytics.