# QR code generator

> Make a static QR code for text, a URL, Wi-Fi, or a vCard. Set the colors and error correction, then download SVG or PNG.

Free QR code generator for a URL, plain text, a Wi-Fi network, or a vCard. Pick the colors and the error-correction level, then download SVG and PNG. The code is static: it does not track scans, and it is drawn in this browser.

- Page: https://benchline.fabwaseem.com/t/qr-code-generator
- Runs: in the browser. Input stays on the device.
- Price: free, no account
- Input: Text, a URL, Wi-Fi details, or a vCard, plus colors, error correction, quiet zone, and pixel size.
- Output: An SVG file and a PNG file of the same static QR code.
- Keywords: qr code generator, free qr code generator, wifi qr code
- Updated: 2026-10-18
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Choose what the code stores.** Text, a URL, Wi-Fi, or a vCard. Fill the fields for that type.
2. **Set colors and error correction.** Pick two different colors. L, M, Q, and H trade density for damage recovery.
3. **Download SVG or PNG.** SVG is sharp at any size. PNG uses the pixel size you selected.

## Use it from an AI agent

MCP tool name: `generate_qr_code`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/qr-code-generator with the input as the JSON body
This call does not fetch anything. It runs on the arguments you send.

Build a static QR code for text, a URL, Wi-Fi, or a vCard. Returns the payload, an SVG string, and a PNG as base64.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "type": {
      "default": "url",
      "type": "string",
      "enum": [
        "text",
        "url",
        "wifi",
        "vcard"
      ]
    },
    "text": {
      "default": "",
      "type": "string"
    },
    "url": {
      "default": "",
      "type": "string"
    },
    "wifi": {
      "default": {
        "ssid": "",
        "password": "",
        "security": "WPA",
        "hidden": false
      },
      "type": "object",
      "properties": {
        "ssid": {
          "default": "",
          "type": "string"
        },
        "password": {
          "default": "",
          "type": "string"
        },
        "security": {
          "default": "WPA",
          "type": "string",
          "enum": [
            "WPA",
            "WEP",
            "nopass"
          ]
        },
        "hidden": {
          "default": false,
          "type": "boolean"
        }
      },
      "required": [
        "ssid",
        "password",
        "security",
        "hidden"
      ],
      "additionalProperties": false
    },
    "vcard": {
      "default": {
        "name": "",
        "phone": "",
        "email": "",
        "org": "",
        "title": "",
        "url": ""
      },
      "type": "object",
      "properties": {
        "name": {
          "default": "",
          "type": "string"
        },
        "phone": {
          "default": "",
          "type": "string"
        },
        "email": {
          "default": "",
          "type": "string"
        },
        "org": {
          "default": "",
          "type": "string"
        },
        "title": {
          "default": "",
          "type": "string"
        },
        "url": {
          "default": "",
          "type": "string"
        }
      },
      "required": [
        "name",
        "phone",
        "email",
        "org",
        "title",
        "url"
      ],
      "additionalProperties": false
    },
    "ecc": {
      "default": "M",
      "type": "string",
      "enum": [
        "L",
        "M",
        "Q",
        "H"
      ]
    },
    "dark": {
      "default": "#111111",
      "type": "string"
    },
    "light": {
      "default": "#ffffff",
      "type": "string"
    },
    "margin": {
      "default": 2,
      "type": "integer",
      "minimum": 0,
      "maximum": 8
    },
    "size": {
      "default": 512,
      "type": "integer",
      "minimum": 128,
      "maximum": 2048
    }
  },
  "required": [
    "type",
    "text",
    "url",
    "wifi",
    "vcard",
    "ecc",
    "dark",
    "light",
    "margin",
    "size"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generate_qr_code",
    "arguments": {
      "type": "url",
      "text": "",
      "url": "",
      "wifi": {
        "ssid": "",
        "password": "",
        "security": "WPA",
        "hidden": false
      },
      "vcard": {
        "name": "",
        "phone": "",
        "email": "",
        "org": "",
        "title": "",
        "url": ""
      },
      "ecc": "M",
      "dark": "#111111",
      "light": "#ffffff",
      "margin": 2,
      "size": 512
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### Is this a dynamic QR code?

No. The code stores the text itself. It does not redirect through a tracking server, and it does not expire when a subscription ends.

### What is the error-correction level?

L recovers about 7% of a damaged code, M about 15%, Q about 25%, and H about 30%. A higher level makes a denser code and holds less text.

### How do I share Wi-Fi?

Choose Wi-Fi, enter the network name, the password, and WPA, WEP, or no password. A phone can join from the code. The password is inside the image, so share the file only with people who should have it.

### Which file should I download?

SVG stays sharp at any size and is the better print file. PNG is a bitmap at the pixel size you pick, useful where SVG is not accepted.

### Does the code leave this browser?

No. The SVG and PNG are generated here from the text you type.

## Related tools

- [Image to PDF](https://benchline.fabwaseem.com/t/image-to-pdf): Turn JPG, PNG, and WebP images into one PDF. Set the page size, orientation, margin, and order.
- [OG image generator](https://benchline.fabwaseem.com/t/og-image-generator): Pick a template, watch the card update, then download the PNG or copy the Next.js file.
- [JSON-LD schema generator](https://benchline.fabwaseem.com/t/schema-generator): Fill a form, get valid schema.org JSON-LD for Article, FAQ, Product, Organization, and more.
- [Merge PDF](https://benchline.fabwaseem.com/t/pdf-merge): Combine PDFs in the browser. Reorder them, keep a page range from each file, and download one document.
