Get started with qrcode CDN

MIT licensed

QRCode is a popular library for generating and scanning QR codes within web applications.

  • qr
  • code
  • canvas
  • qrcode

Stable version


How to start using qrcode CDN

<!DOCTYPE html>
    <title>Get started with qrcode CDN -</title>
    <script src=""></script>
        #qrcode { width: 200px; height: 200px; }
    <button id="generate">Generate QR Code</button>
    <div id="qrcode"></div>

        const generateButton = document.getElementById('generate');
        const qrcodeElement = document.getElementById('qrcode');

        QRCode.onDecoded = (decodedContent) => {
            console.log('Decoded:', decodedContent);

        generateButton.addEventListener('click', () => {
            new QRCode(qrcodeElement, 'Hello World!');

All versions