# QR codes

<div class="doc-callout doc-callout--info">
  <strong>What it is</strong>: An OnLynk <strong>QR code</strong> encodes a short redirect (<code>onlynk.me/qr/&lt;code&gt;</code>), not your destination. Change where it sends people at any time from the dashboard: the printed code stays valid, and every scan is counted.
</div>

## What it is

A QR code from a free generator bakes the destination into the pattern: change the link and every flyer, sticker or package already printed points to the wrong place. An OnLynk QR code points to a redirect you control instead, so you can:

- Repoint a printed code when a campaign ends or a product page moves
- Send scans to one of your [link pages](https://docs.onlynk.me/glossary/) or a [smart link](https://docs.onlynk.me/features/smart-links/), and let it route each visitor
- See how many people scan it, from which country and device

QR codes are available on the **Creator** and **Agency** plans (see [Plans and limits](#plans-and-limits)). For a static QR code with no tracking, the free [QR code generator](https://onlynk.me/tools/qr-code-generator) needs no account.

## Create a QR code

1. In the dashboard, open **QR Codes** in the sidebar and click **New QR code**.
2. Give it a **title** (visible only to you).
3. Choose the **destination**:
   - **URL**: any `http://` or `https://` address
   - **Page**: one of the link pages of the current workspace
   - **Smart Link**: one of the smart links of the current workspace
4. Pick a **design** (see below), then click **Create**.

The QR code is created in the workspace you're in (personal or an [organization](https://docs.onlynk.me/organizations-and-teams/)), like pages and smart links.

## Design

| Option | Details |
|---|---|
| **Design template** | Starting presets: Classic, Rounded, Dots, Minimal |
| **Foreground / background** | Any hex colors. Keep a strong contrast so phones can read the code. |
| **Module shape** | Square, rounded or dots |
| **Eye shape** | The three corner squares: square, rounded or circle |
| **Logo** | Optional image shown in the center (PNG export only, see below). The error correction level is raised automatically so the code stays scannable. |
| **Custom domain** | Encode `https://your-domain.com/qr/<code>` instead of `onlynk.me`. Only verified [custom domains](https://docs.onlynk.me/custom-domains/) of the workspace are listed. |

## Download and print

From a QR code's menu, **Download PNG** (1024 × 1024 px) or **Download SVG** (vector, ideal for print). The SVG export has no logo: use the PNG if you need it.

<div class="doc-callout doc-callout--info">
  <strong>Test before printing</strong>: scan the downloaded file with a couple of phones, especially with a logo, custom colors or the dots shape.
</div>

## How a scan works

1. The phone opens `onlynk.me/qr/<code>` (or your custom domain).
2. OnLynk records the scan and redirects to the current destination:
   - **URL**: straight to that address
   - **Page**: to the page at `onlynk.me/<slug>`
   - **Smart Link**: to the smart link, which then runs its flow (the visit also counts in the smart link's own analytics)
3. If the QR code is **disabled**, or its page is unpublished or its smart link disabled, the scan gets a 404.

Because the code only holds the redirect, changing the destination takes effect on the next scan, with nothing to reprint.

## Scan analytics

Open a QR code's analytics to see, for the selected period:

- **Total scans** and **unique scans**, with the change versus the previous period
- **Scans over time**
- Breakdowns **by country**, **by device** and **by referrer**

Scans are tracked **cookieless**: nothing is stored on the visitor's phone. Unique scans are counted per IP address over the period. Link previews, crawlers and other bots still get redirected but are not counted.

## Manage QR codes

| Action | What happens |
|---|---|
| **Edit** | Change the title, destination or design at any time. The code itself never changes. |
| **Enable / disable** | A disabled QR code answers 404 until you enable it again. |
| **Duplicate** | Copies the destination and design onto a new code. The copy starts **disabled** so it never serves before you review it, and uses one QR code from your quota. |
| **Transfer** | Moves the QR code to another workspace you can create in. A page or smart link destination must belong to the target workspace (change the destination first otherwise), and the custom domain is cleared. |
| **Delete** | Permanent: the code answers 404 and its scan history is deleted. |

<div class="doc-callout doc-callout--warn">
  <strong>Deleting a page or a smart link also deletes its QR codes</strong>, with their scan history. The delete dialog shows how many QR codes are linked before you confirm. To keep a printed code working, point it at another destination first.
</div>

## Plans and limits

QR codes have their own quota, separate from the links budget of pages and smart links. It belongs to the workspace owner's plan and counts every QR code they own, personal and in their organizations.

| Plan | QR codes |
|---|---|
| **Free** | Not included |
| **Creator** | 5 |
| **Agency** | As many as the plan's links (for example 25 on Agency 25) |

## API

QR codes can be listed, created, updated and deleted with the [Public API](https://docs.onlynk.me/api/endpoints/#get-apipublicqr-codes), for example to generate one per product from your catalog.

## Related

- **[Smart links](https://docs.onlynk.me/features/smart-links/)**: route each scan by country, device or schedule
- **[Custom domains](https://docs.onlynk.me/custom-domains/)**: brand your QR codes with your own domain
- **[Organizations & teams](https://docs.onlynk.me/organizations-and-teams/)**: workspaces and roles
- **[Endpoints reference](https://docs.onlynk.me/api/endpoints/)**: manage QR codes programmatically