File2026-06-08·6 min read·By Sky Lu

How to Generate a QR Code for Your Website for Free

The flyer is due at 4 p.m., the printer wants a PDF, and the website URL is too long to type from a poster taped to a shop window. A QR code solves th...

The flyer is due at 4 p.m., the printer wants a PDF, and the website URL is too long to type from a poster taped to a shop window. A QR code solves that, but only if it scans quickly from a phone, points to the right page, and stays sharp after you drop it into your design.

Start with the right website link

Before generating the QR code, decide exactly where people should land. Do not use your homepage by default unless it is truly the best page for the person scanning.

For example:

  • A restaurant flyer should point to the menu page, not the homepage.
  • A business card should point to a contact page or booking page.
  • A product label should point to instructions, ingredients, warranty details, or a support page.
  • An event poster should point to the registration page, not a general events page.
  • A real estate sign should point to the specific listing.
  • Open the page on your phone first. This sounds basic, but it catches many problems. Check that the page loads without requiring a desktop layout, cookie pop-up confusion, or a login. If the mobile version has a sticky banner covering the main button, fix that before creating the QR code.

    Use the full URL, including `https://`. For example:

    `https://example.com/menu`

    Avoid links that depend on your private session, such as URLs copied from an admin dashboard. If the link contains words like `preview`, `admin`, `draft`, or a long temporary token, it may not work for visitors.

    If the URL is very long, that is not automatically a problem, but shorter is better. A shorter URL creates a simpler QR pattern, which tends to scan more easily when printed small. If your website lets you create a clean page slug, use something like:

    `https://example.com/spring-sale`

    instead of:

    `https://example.com/pages/campaigns/2026/march/customer-offer-version-final?id=48291&utm_source=poster`

    Tracking tags can be useful, but keep them intentional. If you add campaign tags, test the final full link before generating the code.

    Generate the QR code for free

    Once your URL is ready, use the BestAIFinds QR Code Generator to create the code.

    A practical workflow looks like this:

  • Open the QR code tool.
  • Paste your full website URL into the input field.
  • Choose a standard website/link QR code type if the tool offers multiple content options.
  • Generate the QR code.
  • Download it as an image file.
  • Test it on at least two phones before using it publicly.
  • For most website use, download the QR code as PNG if that option is available. PNG is the safest choice for flyers, menus, signs, PDFs, and social posts because it keeps the black-and-white edges clean. JPG can introduce slight blur or compression marks around the code blocks, especially if the image gets resized later. That blur is small to the eye but can make scanning less reliable.

    If you plan to use the QR code in printed design software and SVG is available, SVG is ideal because it scales without losing sharpness. If you are working in Canva, Google Docs, Word, PowerPoint, or a basic PDF editor, PNG is usually easier.

    A few settings matter more than decoration:

  • Use dark code on a light background. Black on white is the safest.
  • Keep enough white space around the code. This border is called the quiet zone.
  • Avoid placing text, logos, or icons too close to the code blocks.
  • Do not stretch the QR code non-proportionally. Keep it square.
  • If you are generating a QR code for a business website, name the downloaded file clearly. Use something like:

    `qr-website-menu-march-2026.png`

    rather than:

    `download-3.png`

    That small habit prevents mistakes later when you have multiple codes for menus, coupons, contact pages, and event pages.

    Choose the right size for print and screens

    The most common QR code mistake is making it too small. It might scan perfectly on your monitor, then fail on a printed business card or window sign because the code lost clarity or people are scanning from farther away.

    For print, use these practical minimums:

  • Business card: at least 0.8 inches wide, preferably 1 inch.
  • Flyer held in someone’s hand: 1 to 1.25 inches wide.
  • Restaurant table tent or counter sign: 1.25 to 1.5 inches wide.
  • Poster on a wall: 2 inches or larger.
  • Window sign scanned from outside: 3 inches or larger, depending on distance.
  • For digital use, think in pixels:

  • Email signature: around 120 to 180 px wide.
  • PDF handout viewed on a phone: 180 to 250 px wide.
  • Social media image: 250 to 400 px wide.
  • Website sidebar or landing page: 160 to 240 px wide.
  • Do not enlarge a tiny downloaded QR code too much. If your QR code file is 300 px wide and you stretch it to 1200 px, the edges may become soft or blocky. Generate or download the largest clean version you can, then scale down if needed.

    If the QR image is too large for your layout or email, resize it instead of letting random software squash it. The BestAIFinds Resize Image tool is useful when you need a specific pixel size, such as 300 × 300 px for a digital flyer or 180 × 180 px for an email footer. Keep the width and height equal. A QR code must remain square.

    If the file size is unusually large because you placed the QR code inside a bigger graphic, you can reduce the image file with Compress Image. Use compression carefully: moderate compression is fine for a surrounding promotional image, but avoid heavy compression that makes the QR code edges fuzzy. If you see gray smudging around the black blocks, use a cleaner PNG or lower compression.

    Add the QR code to a flyer, PDF, menu, or sign

    A QR code should not float on the page without context. People scan more often when they know exactly what they will get. Add a short label beside or above it.

    Good labels:

  • Scan to view the menu
  • Scan to book an appointment
  • Scan for product instructions
  • Scan to register
  • Scan to visit our website
  • Scan for today’s availability
  • Avoid vague labels like “Scan me” if the destination is important. A direct label reduces hesitation.

    When placing the code in a design, leave clear space around it. A good rule is to keep a white border at least four small QR modules wide. In normal design terms, that means do not jam text, borders, photos, or colored shapes right against the square. If your design has a dark or busy background, place the QR code on a solid white box.

    For printed materials, export the final file at high quality. If you are making a PDF flyer, keep images sharp and avoid repeated re-saving through low-quality settings. For office printing, 300 DPI is a safe target for the final layout. If the QR code is 1 inch wide in print, the image should be at least 300 × 300 px. For a 2-inch code, use at least 600 × 600 px.

    If you need to add the QR code to an existing PDF, use the BestAIFinds Edit PDF tool. Place the PNG on a blank area or near the call-to-action text. Keep the code away from fold lines, staples, hole punches, and page edges. On a tri-fold brochure, do not place it near a crease. On a restaurant menu, keep it away from areas likely to get covered by clips or table holders.

    If you are preparing a multi-page PDF packet, put the QR code where it makes sense, not on every page. For example, place it on the cover page and the final contact page. Too many codes can make a document look cluttered and confuse the reader.

    Test before printing or publishing

    Testing is not optional. A QR code can look perfect and still fail because of the link, size, contrast, or placement.

    Use this test routine:

  • Scan the QR code from your computer screen.
  • Scan the downloaded image after opening it from your files.
  • Place it into the final design and scan again.
  • Export the final PDF or image and scan that version.
  • Print one copy at actual size and scan the print.
  • Test with at least two camera apps if possible. Use an iPhone camera and an Android camera, or ask a coworker to scan it. Do not rely only on a dedicated QR scanner app because most visitors will use the default phone camera.

    Check the landing page after scanning. Confirm that:

  • The page opens over mobile data, not just office Wi-Fi.
  • The page is not password-protected.
  • Buttons and forms work on a phone.
  • The destination is the final live page, not a draft.
  • The page loads without an error or certificate warning.
  • The URL does not redirect through a broken tracking link.
  • For print testing, stand at the real scanning distance. A QR code on a desk menu can be tested from 12 to 18 inches away. A wall poster should be tested from a few feet away. A window sign may need testing through glass, with glare, at the angle customers will actually use.

    If the scan is slow, make the code bigger first. Size fixes more problems than most people expect. Next, improve contrast. Then check whether you compressed or blurred the image during export.

    Common QR code mistakes and quick fixes

    Mistake: Using a screenshot of the QR code

    Screenshots often include extra padding, browser UI, or reduced image quality. Download the actual QR image instead. Use PNG for most cases. If you already used a screenshot in a design, replace it before printing.

    Mistake: Placing the code on a colored or photo background

    QR codes need clean contrast. A black code on a light cream background may work, but a blue code on a textured photo can fail. Put the code inside a white square if the background is anything other than plain light color.

    Mistake: Reversing the colors

    White QR blocks on a black background may scan on some phones, but it is less reliable. Use black or very dark blocks on white or very light background.

    Mistake: Cropping too close

    The quiet zone around the code matters. If you crop right to the black blocks, some cameras cannot detect the code boundary. Keep visible white space around all four sides.

    Mistake: Adding a logo in the middle

    A small logo can work if the QR code was generated with enough error correction, but it is easy to overdo. If reliability matters, skip the logo. If branding is required, place your logo beside the code instead of inside it.

    Mistake: Printing too small

    If people must pinch, zoom, or move their phone back and forth, the code is too small. Reprint with a larger code. For anything scanned at arm’s length, start around 1.25 inches wide or larger.

    Mistake: Forgetting the destination may change

    A static QR code points to the exact URL you entered. If you delete or rename that page later, the printed code will lead to an error. For printed materials that will stay in circulation, use a stable URL you control, such as `/menu` or `/contact`, and update that page’s content when needed instead of changing the URL.

    A practical wrap-up

    The best free QR code for your website is usually a clean PNG, generated from the final `https://` URL, placed at a readable size with a short label and plenty of white space. Test the code after every major step: after download, after layout, after export, and after printing.

    If you are ready to make one, open the BestAIFinds QR Code Generator, paste your website link, download the code, and scan-test it before you share it.

    SL

    Sky Lu

    Solo developer behind BestAIFinds — 240+ free, no-signup file tools, most running entirely in your browser. More about me →