Skip to main content

QR code generator

Generate a customizable QR code directly in your browser, then download it as PNG or SVG without sending your data to a server.

  • Clipboard
  • Export

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Content type

Appearance and reliability

A higher level remains readable if the QR code is slightly damaged, but creates a denser matrix.

Was this tool useful?

How does this tool work?

A QR code is scanned with a phone camera to open a link, join a Wi-Fi network, call a number or prepare an email without typing anything. This generator creates such codes for text, a URL, an email, a phone number or a Wi-Fi network, with the error correction level, size, margin and colours you choose, then exports them as PNG or SVG.

Choose the Content type. Text encodes the text as it is. URL checks the address, which must start with https:// or http://. Email produces a mailto: link with optional subject and message. Phone produces a tel: link keeping only digits and +. Wi-Fi produces the WIFI:T:…;S:…;P:…;H:…;; format recognised by Android and iOS, escaping special characters in the network name and password.

Error correction offers L, M (default), Q and H: the higher the level, the more readable the code stays when damaged or partly covered, but the denser its matrix. Set the Image size (256, 512 or 1,024 px), the Margin from 0 to 16 modules (4 by default) and the two colours.

Generate QR code shows the preview and the Encoded content, to check before printing. Download PNG saves qr-code.png; Download SVG saves a vector image that stays sharp at any size. Copy content copies the text actually encoded.

How to use this tool

  1. Choose the content type

    Text, URL, email, phone or Wi-Fi, then fill in the matching fields.

  2. Set the appearance

    Choose the error correction, size, margin and colours.

  3. Generate, test and download

    Scan the preview with a phone, then download as PNG or SVG.

Size of a QR code

Each version adds 4 modules per side; the image size is shared between the matrix and the margin.

Modules per side

N = 17 + 4v

Version 1: 21 modules, version 2: 25, up to version 40: 177 (ISO/IEC 18004).

Size of one module

p = S ÷ (N + 2m)

In pixels for the PNG; the SVG stays vector.

v
QR code version, chosen from the content length and correction level
S
image size in pixels
m
margin in modules

Use cases

Share the Wi-Fi

Display a QR code in a holiday rental or an office so guests connect without copying the password.

Point to a website

Print a QR code on a poster, a menu or a business card that opens a specific page.

Make contact easier

Create a code that prepares an email with the subject filled in or dials a phone number.

Examples

Link to a website at level M

N = 17 + 4 × 2 = 25 modules. With 4 margin modules on each side, the image spans 33 modules: 512 ÷ 33 ≈ 15.5 px per module. At level H, the same URL grows to 29 × 29 modules.

Input

URL https://bethemesh.com, correction M, size 512 px, margin 4

Result

25 × 25 module matrix (version 2), modules of about 15.5 px

Wi-Fi network with a special character

The semicolon in the password is preceded by a backslash so it is not read as a separator; the phone then connects with the right password.

Input

Name Maison_5G, password p@ss;word, WPA/WPA2/WPA3 security

Result

WIFI:T:WPA;S:Maison_5G;P:p@ss\;word;H:false;; (33 × 33 modules at level M)

Tips and best practices

  • Always scan the code with two phones before printing: a mistyped character in a URL does not show on the code.
  • Keep strong contrast, dark on light: light QR codes on a dark background are misread by some readers.
  • Keep the 4-module margin recommended by the standard: a code touching an edge or a pattern reads poorly.
  • For small prints, prefer level L or M and a short URL: fewer modules mean bigger squares.

Sources and references

Frequently asked questions

Does the QR code expire?

No. The content is written into the code itself, with no redirect service: it works as long as the target address or network exists.

Which correction level should I choose?

M suits most uses. Q or H help if the code may get damaged, dirty or partly covered; they make the matrix denser.

PNG or SVG?

PNG for immediate digital use; SVG for print or layout software, because it stays sharp at any size.

Why is my URL rejected?

It must be complete, starting with https:// or http://. Add the prefix and generate again.

Can I add a logo in the middle?

Not with this tool. If you add one afterwards, choose level H and check that the code still scans.

Is my data sent to a server?

No. The QR code, Wi-Fi password included, is computed in your browser.

Related tools

Tools similar or complementary to this one.

Similar tools

Read the content of a QR code from an image directly in your browser.

Images & graphicsUse this tool

Create a favicon.ico and a site’s PNG icons (16 to 512 px) from one image, in your browser.

Images & graphicsUse this tool

Convert SVG files to PNG, JPEG or WebP with preview and output settings.

Images & graphicsUse this tool
GuideFormatsBeginner

SVG: Understanding the Vector Format

Learn how SVG describes shapes, uses viewBox, integrates into Web pages, and should be handled for responsiveness, accessibility, and security.

31 August 202622 min
GuideBest practicesBeginner

Image Metadata: Read It, Keep It, or Remove It?

Understand EXIF, GPS, XMP, IPTC, ICC profiles, rights information, and how to manage image metadata for privacy, publishing, and Web performance.

31 August 202613 min