TechnologyArchitecture and infrastructure

QR codes: how they work, how to scan and make one, and how not to fall for a fake

A QR code is a square of black and white dots that stores a bit of text: usually a link, but sometimes a phone number, a Wi-Fi password or payment details. Your phone reads it through the camera in a split second. Scanning is the easy part. Making one and checking one deserve more care, because fake codes turn up in places as ordinary as a parking meter.

By TASE TeamPublished Updated 6 min read

QR code: a glass square of dots with a gold ring and a cyan iris in the center on a dark background
On this page
  1. What a QR code is
  2. What's inside the square
  3. A quick count: how many dots are in a code
  4. How to scan a QR code
  5. Why a QR code won't scan
  6. How to make your own QR code
  7. Paying and signing in with a QR code: what happens
  8. A fake QR code: how to check
  9. Where TASE fits
  10. What to do today
  11. Frequently asked questions

What a QR code is

You're standing at a poster or looking at a receipt, and you point your phone at a square of dots. A second later a page opens. What did the phone actually read?

A QR code is a two-dimensional barcode. It was invented in 1994 at the Japanese company Denso, where engineer Masahiro Hara was looking for a way to label car parts quickly. The name stands for Quick Response. The company released the format for anyone to use, which is why you see codes on every corner now.

Inside there can be almost anything, though not a picture and not the website itself, just text. Where have you seen them? Menus, tickets, parcels, receipts, flyers on lampposts and the guest Wi-Fi sign: it's always the same idea, hand a short bit of text to a phone fast.

What's inside the square

A QR code has a few recognizable parts.

  • Three large squares in the corners. They tell the phone which way is up and at what angle you're holding the code, so it reads fine even upside down.
  • Data dots. The black and white cells that carry the text.
  • Error correction. Spare data for scratches and stains. There are four levels: roughly 7%, 15%, 25% and 30% of the data can be restored. The higher the level, the less useful text fits.

The size depends on the amount of data. The smallest code is 21 by 21 dots and the largest is 177 by 177. The largest holds up to 7,089 digits. By comparison an ordinary link is a few dozen characters, and a code for it looks like a sparse grid.

QR code diagram: three large squares in the corners, a data area and spare data for fixing errors
The three corners show which way is up, and the rest holds text plus spare data for scratches.

A quick count: how many dots are in a code

Take the most compact code: 21 x 21 = 441 dots. For a link to a page that's fine. Now take the largest: 177 x 177 = 31,329 dots. It holds many times more data, but it's also harder for a phone to read from a distance.

The takeaway is simple: the shorter the text in the code, the bigger the dots and the more reliably it scans. So for a business card a short link beats a long address with parameters.

How to scan a QR code

You usually don't need a separate app. The built-in camera is enough.

  1. Open the phone camera and point it at the code.
  2. Once the code is in the frame, a prompt with the link appears at the top. Tap it.
  3. Read the address before you open the page.

On an iPhone the scanner works in the Camera app, and you can switch it on in settings if needed. On Android the camera or Google Lens reads the code.

What if the code is on your own phone's screen? There are several ways, and the menu names depend on the model.

  • Circle to Search. Press and hold the Home button or the navigation bar and circle the code.
  • Google Photos and Lens. Take a screenshot, open it and choose Google Lens.
  • iPhone. Save the picture and open it in Photos: a scan icon shows up. You may need to turn on Live Text in the language and region settings.

Why a QR code won't scan

The phone is rarely at fault. It's usually one of these.

  • Light. Dim light, or a bright glare on glossy paper.
  • Distance. Too close or too far: back off about 10 to 20 centimeters, or four to eight inches.
  • Damage. The code is crumpled, smeared or crossed out more than the error correction allows.
  • A pattern that's too small. Too much data in a tiny sticker.
  • The screen. Screen to screen, banding and low brightness get in the way. Turn the brightness up.

If nothing helps, try another route: Google Lens instead of the camera, or scanning from a photo.

How to make your own QR code

It's easier than it looks and takes about a minute.

  1. Decide what to encode: a link, text, a contact or Wi-Fi details.
  2. Generate the code in an app or a browser service.
  3. Test it on two different phones before printing.
  4. Write the link as plain text next to it, so people can see where the code leads.

When printed, the usual advice is at least two by two centimeters, around three quarters of an inch. Leave a white border around the code, or the camera won't find it.

Codes come as static and dynamic. A static code simply keeps your data forever. A dynamic one goes through a service, so the address behind it can be changed, but if the service shuts down the code stops working. Don't enter payment details, passwords or personal information into a doubtful generator: swapping the code on the way out is easy.

Paying and signing in with a QR code: what happens

A payment QR code carries the recipient's details and sometimes an amount. You scan, your banking app fills in the data, and you confirm. Before you confirm, look at the recipient's name and the amount in the app itself: it's the last check, and it's free. How a shop takes payments is covered in the piece on merchant acquiring.

Signing in with a QR code works differently: the code asks your phone to approve a login on another device. It's handy, but approve only the sign-ins you started yourself. More on account safety in the article on two-factor authentication.

A fake QR code: how to check

Scammers figured out long ago that nobody reads a QR code with their eyes. The most common trick is a sticker with their own code over the real one, for example on a parking meter or on a table in a cafe. Consumer regulators have warned about exactly this. The fake code opens a copy of the real site, and you type your card details into it.

  • Look at the link. The camera shows the address before it opens. A stray letter or an odd domain is a reason to stop.
  • Check the sticker. A code stuck over another code is a warning sign.
  • Don't scan codes from random emails and texts. Especially ones that say "urgent".
  • Pay the usual way where you can: by card or in your banking app, not through the first sticker you meet.

How such schemes work is covered in the article on phishing. If you're in doubt, there's nothing wrong with simply not scanning.

Related reading: how to create a strong password, social engineering, how to create a crypto wallet, how to check a link and cloud storage.

Where TASE fits

QR codes show up in the crypto world too: a wallet address is often displayed as a square to scan. In those cases it helps to check the first and last characters of the address and the network. TASE works on the crypto market: it trades futures on Binance, Bybit, OKX and BingX with its own algorithms, and the API key can trade but cannot withdraw. Accounts start at $10,000 and every position is visible in your dashboard. More on the technology page. Exchange availability depends on your country, so check the terms before you register.

What to do today

Point the camera at any QR code and look at the link it shows without tapping it. The habit of reading the address before you tap protects you better than any app.

And try making your own code once, for Wi-Fi or a business card. You'll see that behind the picture there's just text.

This article is for education and is not financial, legal or tax advice. Menu names depend on the phone model and system version. The numbers in the example are for reference.

Frequently asked questions

What is a QR code in simple terms?

It is a square of black and white dots that stores text: usually a link, but also a contact, a Wi-Fi password or payment details. A phone reads it with the camera.

How does a QR code work?

Three large squares in the corners let the phone work out the code’s position, and the remaining dots store the text plus spare data for fixing errors. The camera turns the pattern into text.

How do you scan a QR code from a screen?

Take a screenshot and open it in Google Photos or Lens, or use Circle to Search on a supported Android. On an iPhone, open the saved picture in Photos and tap the scan icon.

Why won’t a QR code scan?

Usually dim light or glare, the wrong distance, damage to the code or a pattern that is too small. Back off about 10 to 20 centimeters and try Google Lens.

How do you make a QR code?

Pick what to encode, generate the code in an app or browser service, test it on two phones and write the link as text next to it. Don’t enter payment details into doubtful services.

How can you tell if a QR code is fake?

Check the link the camera shows before it opens and look for a sticker over another code. Don’t scan codes from random messages. If in doubt, pay another way.

About the author

TASE Team · Editorial team

The TASE team builds an automated crypto trading system with its own algorithms and machine learning. We write about what we know from engineering and risk work, and we label opinion as opinion.

Educational content, not investment advice. Trading crypto and derivatives carries a high risk of losing all invested capital.

Explore TASE