TToolbox
▦

QR Code Generator

Turn text or links into QR codes

About this tool

QR Code (Quick Response, ISO/IEC 18004) is a matrix barcode standard capable of encoding alphanumeric, binary, and Kanji data. It powers mobile checkouts, Wi-Fi onboarding, digital business cards, and 2FA authentication worldwide. Featuring Reed-Solomon error correction, it remains readable even if dirty or torn. This tool renders crisp vector and raster QR codes entirely in your browser without redirection intermediaries.

How to Use This Tool (Step-by-Step)

1

Enter URL or Raw Text

Type or paste your destination URL, raw text, Wi-Fi credentials, or vCard contact details into the input field.

2

Customize Size & Error Correction

Adjust image resolution and select an appropriate error-correction level: L (7%), M (15%), Q (25%), or H (30%) for maximum durability.

3

Preview and Export Image

Instantly test the real-time preview with your smartphone camera, then export crisp PNG or scalable SVG files for digital and print media.

Zero Redirection Hijacking

Encodes your raw URL directly into matrix pixels without routing through third-party shortlink gateways, preventing future ad injections or broken redirects.

Reed-Solomon Resilience

Implements four standard error correction levels (up to 30% area damage tolerance), essential when embedding custom logos in the center.

100% Client-Side Privacy

All matrix calculations execute strictly inside your local browser memory. Sensitive Wi-Fi passwords and private tokens are never transmitted.

Printing Best Practices & Scanning Optimization

  • •Maintain sharp contrast: Scanners rely on luminance differential. Always use dark codes over bright backgrounds. Avoid inverted schemes (dark backgrounds with dim dots).
  • •Preserve the 4-module quiet zone: Keep at least 4 module widths of plain white padding around the perimeter so cameras can isolate finder patterns.
  • •Shorter URLs mean easier scanning: Dense text creates compact, tiny grid dots. Shorten long URLs to produce clean, bold modules that scan reliably from afar.

Code & Transformation Examples

Special Syntax Formats for Wi-Fi & vCard

Wi-Fi Join Syntax
WIFI:T:WPA;S:MyHomeWifi;P:MySecretPass123;;
vCard Contact Syntax
BEGIN:VCARD
VERSION:3.0
N:王;小明
FN:小明
TEL:13800000000
EMAIL:[email protected]
END:VCARD

* Standard prefixes trigger native OS prompts to join Wi-Fi networks or import address book contacts.

JavaScript QR Code Generation Snippet

Node.js / Web (qrcode)
import QRCode from 'qrcode';

// 生成 DataURL 图片
QRCode.toDataURL("https://example.com", {
  errorCorrectionLevel: 'H',
  margin: 2,
  width: 256
}).then(url => console.log(url));
Exporting Scalable SVG
QRCode.toString("https://example.com", {
  type: 'svg',
  errorCorrectionLevel: 'M'
}).then(svgString => {
  document.getElementById('qr').innerHTML = svgString;
});

* Vector SVG output ensures crisp edge sharpness at any print scale without pixelation.

Frequently Asked Questions

Q: What is the difference between error correction levels L, M, Q, and H?

A: L: 7% recovery (least dense); M: 15% (general default); Q: 25% (rugged conditions); H: 30% (maximum durability, best for center logo embeds). Higher levels increase module density.

Q: Do static QR codes expire?

A: Never. Static QR codes encode payload text directly into visual pixels without relying on hosted redirect servers. As long as your destination stays online, the code works forever.

Q: What is the maximum data capacity of a QR code?

A: Under Version 40, the theoretical maximum is 7,089 digits, 4,296 alphanumeric, or 2,953 binary bytes. For reliable everyday scanning, keep payloads under 300 characters.

Related Tools

All processing happens locally in your browser. Your data is never uploaded to a server.
/