What Is A QR Code and How Does It Work?

What Is A QR Code and How Does It Work?
Interested in using QR codes to take payments or market your business but need more information? The guide helps you figure out what is a QR code and if they are right for you.
by Stephanie Vozza Oct 14, 2025 — 9 min read
What Is A QR Code and How Does It Work?

If you’ve been out to dinner recently, you may have been asked to scan a QR code with your smartphone to access the restaurant’s menu. Or maybe you’ve noticed QR codes popping up to facilitate contact-free payments at your favourite bar. If you have, it’s because QR codes, which stands for Quick Response Code, have become a mainstream tool for sharing information, processing transactions, and are fueling faster and more convenient service.

But what is a QR code and how does it work? In this article we explore the world of QR codes, from where they came from to what you can do with them and how Square can help.

What is a QR code?

A QR code, or quick response code, is a two-dimensional barcode that’s made up of black and white squares that stores information like website links, menus, or unique payment details. 

When scanned with a smartphone camera or any other form of barcode scanner, QR codes instantly direct users to a URL or payment gateway housed within it.

With one scan, QR codes open a world of possibilities, like: 

 

With a QR code, none of the actions above require you to type in a URL or navigate through multiple web pages. You just pull out your phone, scan, and do what you need to do.

QR code technology has been around since 1994 and was created by Japanese company Denso Wave to track production in automotive manufacturing. But it wasn’t until the early 2000s that they started to be used for marketing campaigns. At the time, uptake was limited by the need for third-party scanning apps. That all changed in 2017 when Apple enabled the iPhone camera to read QR codes and Android quickly followed suit. 

Today, thanks to faster and more readily available internet connection and QR code scanning the default in all mobile devices, these unassuming black and white boxes have become a must-have tool for businesses to process payments faster, share information easier, and connect with consumers everywhere.

How do QR codes work?

QR code generators arrange black and white squares into a unique two-dimensional pattern that encodes data. When scanned, that pattern is decoded into readable information, such as a URL, menu or payment page. 

Here’s what happens when you scan a QR code:

 

The standard structure of a QR code includes a number of parts playing different roles:

Types of QR code

The two main types of QR code are static and dynamic. Each one has its benefits and limitations, depending on how and where you want to use them. Here’s how they differ: 

 

In both cases, every QR code is completely unique, with data encoding that matches only the URL or destination portal that you specify when you create it.

Square QR Codes are dynamic QR codes. Each QR scan links to a unique ordering or payment page. With QR code ordering through Square Online, restaurant customers can scan a table or seat-specific code to browse your menu, order, and pay from their phone. Scan to Pay prints dynamic QR codes on each customer’s bill or receipt, letting them pay instantly. 

How to use QR codes at your business

How to best use QR codes will likely depend on your industry and business goals. Restaurants, for example, can create them to improve ordering for customers, while retail stores can generate codes to support a contactless checkout for purchases.

Here are six ways you can get started with using QR codes in your business: 

Speed up payments using a familiar experience.  Canadian consumers are already very comfortable with contactless payments, with 88% tapping a card to make a purchase at least once in 2023. QR codes can be seen as a natural next step for businesses to offer speedy, contactless payment services in bars, restaurants, grocery stores, and any other high-traffic retail settings.

Enhance browsing and ordering. QR codes give people the option to self-serve by scanning a bar code on their table, browsing the menu, placing an order and paying for their food and drinks. Restaurant owners can pick and choose the service level they want to offer based on the atmosphere they’re trying to create, how many staff are available on any given day, and what their customers want. 

The scan-and-go world of QR codes has been helpful to bring much-needed efficiencies to restaurants, which is especially important given rising operational costs.

Our labour cost percentage for an entire beer garden is 150% less than it was when I owned a 300-square foot shop, and that’s entirely thanks to QR code ordering.”

Liz Fiedler The Junction

Create interactive ad campaigns. You can add QR codes to print campaigns for customers to scan for coupons, contests, product or service information. According to eMarketer, people who scan QR codes are highly engaged and more likely to convert.

Enhance the customer experience. QR codes can also improve a shopper’s in-store experience. Data from eMarketer shows that the majority of shoppers across North America use their mobile phones while shopping in-store, with 72% pulling up price comparisons and 52% looking for more detailed product descriptions. By placing QR codes on a product or shelf, customers can access additional information about the item, see it in use, or view a slideshow of color or design choices.

QR codes can also direct shoppers to websites that provide the story behind the product, such as its history or information about the creator or founder. And retailers can further customize the buying experience by providing customers with an easy way to gather product information, reviews, price comparisons, and recommendations.

Build a digital following. Retailers can also leverage QR codes as a way to build customer relationships. Codes can direct customers to review sites that ask for feedback, or social media profiles that prompt a follow. Facebook, Twitter, Snapchat, and Instagram have QR codes that allow users to follow retailers’ accounts when they’re scanned.

Strengthen customer loyalty.  QR codes provide a fast and frictionless way for customers to sign up for a rewards program and earn points without needing to download an app or carry a physical card. Customers simply scan a code or provide their phone number at the point of sale. If you use Square Loyalty, the system automatically tracks the customer’s activity across future purchases, giving you data that you can use for personalized engagement, marketing campaigns, and more.

How QR codes work for payments 

There are two main ways that QR code payments work: merchant-presented QR codes and customer-presented QR codes. 

Merchant-presented codes are when the business creates and displays a QR code that the customer then scans on their phone. Once scanned, the customer is directed to a secure checkout page to complete their payment.

Customer-presented codes are when the customer generates a QR code in their digital wallet or payment app for the business to scan to finalize the transaction.

Here’s how the transaction flows in a typical merchant-presented QR code payment:

 

And here’s how the payment process looks with a customer-presented QR code: 

 

In both cases, this whole payment process takes a matter of seconds, with both you and your customer receiving instant confirmation of a successful transaction.

How to generate a QR code for payments

As QR codes become more widespread in Canada, you might be wondering how you can offer them to your customers when reaching the checkout. Square QR codes can help you accept QR code payments, while balancing convenience with the tight security that Canadians value above all other factors when it comes to financial transactions.

1. Provide contactless payment in-person via Square POS (Scan to Pay)

What it does: Prints a unique QR code on each receipt, allowing customers to scan and pay their bill directly to your Square POS from their phone.

Who can use it: Any business running in-person sales.

How it works:

 

Benefit: Businesses like restaurants can finalize multiple orders, allowing customers to pay when is convenient for them, without tying up credit card machines for individual transactions.

2. Provide contactless self-serve ordering via Square Online

What it does: Lets restaurant customers scan a table- or seat-specific QR code to view a menu, place an order, and pay on their phone.

Who can use it: Full-service and quick-service restaurants.

How it works:

 

Benefit: Reduces wait times, frees up staff time, and lowers the risk of order errors while giving guests more control over their dining experience.

3. Provide contactless payments via Square Online Checkout

What it does: Creates a checkout link for a single item, service, or donation that customers can access by scanning a printed QR code.

Who can use it: Artists, service providers, nonprofits, and any business selling individual items.

How it works:

 

Benefit: Ideal for situations where a full POS set-up is impractical, like a pop-up shop, a farmer’s market stand, or an art exhibit. A single, printed QR code allows customers to make a payment quickly and on the go.

Benefits of using QR codes for payments 

Speed, convenience and operational efficiency are the three main benefits businesses can gain from using QR codes to process payments. Specifically, QR code payments enable: 

QR code payments FAQ 

How to accept QR code payments? 

You can accept QR code payments via Square Online where customers scan a QR code to browse a menu, place an order and pay directly on their phone, or with Scan to Pay where customers can pay their final bill by scanning a unique QR code on their receipt.

Is it safe to use QR code payments? 

Yes, QR code payments are safe when processed through a POS platform like Square that uses end-to-end encryption, real-time fraud monitoring and free dispute management services to protect both the business and the customer.

Are there fees for QR code payments? 

Square QR codes are free to create with a Square account and you only pay the standard processing fee of 2.8% + 30¢ per completed transaction.  

How long do QR codes last? 

How long a QR code lasts depends on the platform used to create it. Square QR codes never expire, unless you set them up to and can be used or deactivated at any time by the business.

Stephanie Vozza
Stephanie Vozza is an experienced writer who specializes in small business and retail. She has been a regular columnist for FastCompany.com for five years, and her byline has appeared in Inc., Entrepreneur, and Parade.

Related

Tell us a little more about yourself to gain access to the resource.

i Enter your first name.
i Enter your last name.
i Enter a valid phone number.
i Enter your company name.
i Select estimated annual revenue.
i This field is required.
✓

Thank you!
Check your email for your resource.

x
Results for

Based on your region, we recommend viewing our website in:

Continue to ->