QRCode.js is a really simple javascript library that has the browser create the QR code itself (there is no image file created at the server)

Download library




Upload the file “qrcode.min.js” to your server (only file required).

If your site doesn’t have jquery already then you’ll also need “jquery.min.js” (not required for WordPress sites for instance)

Creating a QR Code

  <div id="qrcode" style="width:160px; height:160px; margin-top:10px;"></div>

  <!--<script type="text/javascript" src="/myjavascriptfiles/jquery.min.js"></script>-->
  <script type="text/javascript" src="/myjavascriptfiles/qrcode.min.js""></script>

  <script type="text/javascript">
    var qrcode = new QRCode(document.getElementById("qrcode"), {
      width : 160,
      height : 160


QR Code text field options

SMS QR Codes

Example: ‘SMSTO:+112345678:Hello this is the SMS message to send!’


Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.


Your email address will not be published.