Tool guide
About this tool.
- QR Code Generator encodes text, a URL or another payload as a QR code and returns crisp SVG markup and a qr-code.svg download.
- You choose the size in pixels, the quiet-zone margin, the foreground and background colors and one of four error correction levels.
- Put a link on a poster, slide, package or business card, or encode a mailto:, tel: or WIFI: string.
- Create test codes for scanner apps without sending the data to an online generator.
Type or paste the text or URL to encode; spaces at the start and end are removed.
Set Size in pixels (64–2048) and Margin in modules (0–16); keep a margin of about 4 for reliable scanning.
Choose Error correction and enter Foreground and Background as CSS colors, such as #111827, rgb(17 24 39) or navy.
Run the generator, scan the preview with a phone, then copy the SVG or download qr-code.svg.
- https://example.com with the defaults → a 256 × 256 px SVG with viewBox="0 0 33 33": 25 modules plus a 4-module margin on each side.
- https://example.com with Margin 0 → viewBox="0 0 25 25", with no quiet zone.
- https://example.com at Low → version 2 (25 × 25 modules); at High → version 3 (29 × 29 modules).
- Foreground #1d4ed8, Background #f8fafc → <path stroke="#1d4ed8" …> modules on a <path fill="#f8fafc" …> square.
- Foreground navy, Background rgb(255 251 235) → stroke="#000080" and fill="#fffbeb", because colors are written as hex.
- Foreground reddish → error: Foreground must be a CSS color, such as #1d4ed8, rgb(29 78 216) or navy.
- Size 32 → error: Size must be an integer between 64 and 2048.
- 3,000 characters of text → error: The amount of data is too big to be stored in a QR Code.
- Codes are generated locally with the qrcode library; the text is not sent to a server and no redirect link is added.
- Size sets the width and height of the SVG; the viewBox counts modules, so the code stays sharp at any display size.
- Text outside ASCII, such as č or emoji, is encoded as UTF-8 bytes, which current scanner apps decode correctly.
- Dark modules on a light background scan most reliably; light-on-dark codes are not read by every scanner.
- Only SVG export is available in this tool.