The definitive source of the best
JavaScript libraries, frameworks, and plugins.

  • ×


    Cross-browser QRCode generator for javascript
    Filed under 

    • 🔾72%Overall
    • 13,141
    • 89.5 days
    • 🕩4743
    • 👥16


    QRCode.js is javascript library for making QRCode. QRCode.js supports Cross-browser with HTML5 Canvas and table tag in DOM. QRCode.js has no dependencies.

    Basic Usages

    <div id="qrcode"></div>
    <script type="text/javascript">
    new QRCode(document.getElementById("qrcode"), "");

    or with some options

    <div id="qrcode"></div>
    <script type="text/javascript">
    var qrcode = new QRCode(document.getElementById("qrcode"), {
        text: "",
        width: 128,
        height: 128,
        colorDark : "#000000",
        colorLight : "#ffffff",
        correctLevel : QRCode.CorrectLevel.H

    and you can use some methods

    qrcode.clear(); // clear the code.
    qrcode.makeCode(""); // make another code.

    Browser Compatibility

    IE6~10, Chrome, Firefox, Safari, Opera, Mobile Safari, Android, Windows Mobile, ETC.


    MIT License


    twitter @davidshimjs

    Bitdeli Badge

    Show All