🍋
Menu
QR & Barcode

vCard QR

vCard QR Code

A QR code encoding contact information in vCard format, scannable to add a contact directly to a phone.

รายละเอียดทางเทคนิค

vCard QRs encode data in a 2D matrix of black and white modules (squares). Version 1 is 21x21 modules; version 40 is 177x177, storing up to 4,296 alphanumeric characters. Four error correction levels (L:7%, M:15%, Q:25%, H:30%) add Reed-Solomon redundancy, allowing data recovery from damaged or partially obscured codes. The three large finder patterns in corners enable orientation detection, while alignment patterns (added in version 2+) compensate for surface curvature and printing distortion.

ตัวอย่าง

```javascript
// QR code generation with error correction
const qr = generateQR({
  data: 'https://peasytools.com',
  size: 256,             // pixels
  errorCorrection: 'M',  // L(7%), M(15%), Q(25%), H(30%)
  margin: 4,             // quiet zone modules
});

// Output as SVG (scalable, smallest file size)
document.getElementById('qr').innerHTML = qr.toSVG();
```

เครื่องมือที่เกี่ยวข้อง

คำศัพท์ที่เกี่ยวข้อง