Developer · Info
Can WordPress Generate a Qr Code? The Short Answer

Short answer
Not on its own. Core WordPress has no QR code feature, but Jetpack adds downloadable QR codes for published posts, and free plugins add QR code blocks, shortcodes or automatic codes for every page. Developers can also generate codes with a PHP library.
Key takeaways
- Core WordPress has no QR code feature.
- Jetpack can create QR codes for published posts and pages.
- Free plugins add QR code blocks, shortcodes and automatic codes.
- Prefer static codes that point straight to your URL for anything you print.
- Test size, contrast and links on several phones before printing.
Can WordPress generate a QR code?
Core WordPress cannot generate QR codes on its own, but Jetpack adds QR codes for published posts, and many free plugins add QR code blocks, shortcodes or automatic codes for every page.
A QR code is a square barcode that a phone camera can scan to open a link. Site owners use them on flyers, menus, product packaging and event signs to send people to a page.
WordPress has no QR code button out of the box. You have four practical options:
| Option | Cost | Effort | Best for |
|---|---|---|---|
| Jetpack QR code feature | Free with Jetpack | Low | Sharing individual posts and pages |
| QR code plugin | Free or paid | Low | Codes inside content, many pages, styled codes |
| Custom code with a PHP library | Free | High | Developers who need full control |
| Browser or external generator | Free | Low | A one-off code for print |
The right one depends on whether you need a code inside your site or just an image to print.
How does Jetpack create QR codes for posts?
If Jetpack is connected, published posts and pages get a QR code option in the block editor that you can view and download as an image to share or print.
Jetpack added this feature in version 10.8, as announced on the Jetpack blog. Each code points to the post's permalink.
The Jetpack QR Post Code support page shows where to find it in the editor, since the exact menu location can change between versions.
This is a good fit if you already use Jetpack. Installing Jetpack only for QR codes is heavy, though, because it connects your site to WordPress.com and adds many other modules.
Which plugins add QR codes to WordPress?
Search the WordPress plugin directory for QR code to find free plugins that add a QR code block, a shortcode, or an automatic code under every post.
Plugins in this space tend to offer some mix of:
- A QR code block for the block editor, where you paste a link and the code appears.
- A shortcode, such as a short tag with the URL, for classic content and widgets.
- Automatic codes added to every post or product.
- Styling options, such as colors, logos and rounded corners.
- Download buttons to save the code as PNG or SVG.
The WordPress plugin directory search for QR code lists current options. Plugins such as QR Block focus on a simple editor block.
Before installing, check each plugin's last update, active installs and support replies. Our guide on checking a plugin for vulnerabilities covers what to look for.
Are QR codes generated on your server or by a third party?
It depends on the plugin: some create codes on your own server, while others call an outside service, which can matter for privacy, speed and whether the code keeps working.
Codes generated locally, in PHP or JavaScript, have no outside dependency. They keep working even if a service shuts down.
Codes created by an external API send the URL to that service. Some free services also turn your link into a dynamic code that passes through their redirect, so they can count scans.
Dynamic codes have a hidden risk. If the service closes or you stop paying, every printed code can stop working. For anything printed in large numbers, prefer a static code that points straight to your own URL.
Read the plugin description and FAQ to see which approach it uses.
How do you add a QR code to a WordPress page with a plugin?
Install a QR code plugin, add its block or shortcode to the page, enter the link you want, set the size, and update the page.
A typical workflow looks like this:
- Go to Plugins > Add New Plugin and search for QR code.
- Install and activate a well-maintained plugin.
- Edit the page and add the plugin's QR code block, or paste its shortcode.
- Enter the destination URL, or leave it blank if the plugin defaults to the current page.
- Adjust size and colors, keeping strong contrast between the code and the background.
- Update the page and test the code with your phone camera.
If the plugin only offers a shortcode, our explainer on what a shortcode is shows how to place it in the block editor.
Can WooCommerce generate QR codes for products or orders?
Not by default, but QR code plugins and some WooCommerce extensions can add codes to product pages, packing slips, tickets or invoices.
Common store uses include:
- Product pages, so in-store shoppers can scan a shelf label to buy online.
- Packing slips, linking to setup guides or review pages.
- Event tickets, scanned at the door to check in.
- Invoices, linking to the customer's order page.
Ticketing and invoice plugins often include QR codes as a built-in feature. If you already use one, check its settings before adding another plugin. Our guide on creating an invoice in WooCommerce covers the main invoice options.
Can developers generate QR codes with custom code?
Yes, developers can use an open-source PHP library to generate QR code images on the server and output them through a shortcode, block or REST endpoint.
Libraries such as endroid/qr-code are installed with Composer and can produce PNG or SVG output.
A simple custom setup might:
- Load the library in a small custom plugin.
- Register a shortcode that takes a URL.
- Generate the image and cache it in the uploads folder.
- Return an image tag pointing to the cached file.
Caching matters. Generating an image on every page view wastes server time. If you are new to writing plugins, start with our guide on creating a WordPress plugin.
Do you even need WordPress to make a QR code?
Not for a single printed code: most modern browsers can create a QR code for the page you are viewing, and many free generators make static codes in seconds.
In desktop Chrome, open the page, use the share or address bar menu, and choose the option to create a QR code. Other browsers have similar features.
This is often the quickest route for a poster or flyer. You only need a plugin if codes must appear on your site itself or update automatically for many pages.
What makes a QR code scan reliably?
Keep enough size, strong contrast, a clear quiet zone around the code, and a short URL, then test it with several phones before printing.
QR code technology was created by Denso Wave, which explains how the format works on its QR code information site.
Practical tips:
- Size. A printed code smaller than about 2 cm across can be hard to scan.
- Contrast. Dark code on a light background scans best. Avoid light colors on white.
- Quiet zone. Leave a blank border around the code.
- Short links. Shorter URLs make simpler codes that scan faster.
- Use HTTPS links so phones do not show a security warning.
- Test before printing. Scan with iPhone and Android cameras.
Point codes to a URL you control and will keep. If the page moves later, set up a redirect so old printed codes still work, as explained in our guide on what a 301 redirect is.
Frequently asked questions
Are QR codes from WordPress plugins free to use?
Most QR code plugins in the WordPress directory are free, and static QR codes themselves carry no fees. Some plugins sell premium features such as logos, scan tracking or bulk generation. Read the plugin page so you know which features need a paid upgrade.
Do QR codes expire?
A static QR code never expires because it contains the link itself. Dynamic codes from some services route through the provider's server and can stop working if that service closes or your subscription ends. The page the code points to must also stay online.
Can I track how many people scan my QR code?
Yes. Add campaign tags to the URL, such as UTM parameters, and view the visits in your analytics tool. This works with static codes and keeps tracking under your control rather than relying on a third-party scan counter.
Can I add my logo to a WordPress QR code?
Some QR code plugins let you place a logo in the middle. QR codes include error correction, so a small logo usually still scans. Keep the logo small, use a higher error correction level if the plugin offers it, and test before printing.
Will a QR code plugin slow down my site?
A lightweight plugin that generates codes only where you place them has little effect. Plugins that create codes on every page view or load scripts on every page can add overhead. Cached images and on-demand generation keep the impact small.
Sources
- QR Post Code Jetpack
- Jetpack 10.8: Share Your Posts More Easily with QR Codes Jetpack
- QR Block WordPress.org Plugin Directory
- endroid/qr-code GitHub
- QR Code information DENSO WAVE
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


