Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
Q

qrcodejs

> 编程语言
Open source

Cross-browser QRCode generator for javascript

14.3K stars0 likes2 views
WebsiteGitHub

About

Cross-browser QRCode generator for javascript

QRCode.js

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


<script type="text/javascript">
new QRCode(document.getElementById("qrcode"), "http://jindo.dev.naver.com/collie");
</script>

or with some options


<script type="text/javascript">
var qrcode = new QRCode(document.getElementById("qrcode"), {
	text: "http://jindo.dev.naver.com/collie",
	width: 128,
	height: 128,
	colorDark : "#000000",
	colorLight : "#ffffff",
	correctLevel : QRCode.CorrectLevel.H
});
</script>

and you can use some methods

qrcode.clear(); // clear the code.
qrcode.makeCode("http://naver.com"); // make another code.

Browser Compatibility

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

License

MIT License

Contact

twitter @davidshimjs

Issues· 238 open

View all issuesOpen on GitHub
  • #192

    Invalid barcode when generated through qrcode.js using google authenticator

    Updated May 2, 2026
  • #319

    ec boost

    Updated May 2, 2026
  • #318

    Defaulting to EC Level H is probably a bad choice

    Updated Apr 30, 2026
  • #309

    QR Code Not Generated for Strings of 192 to 217 Characters

    Updated Mar 18, 2026
  • #317

    Why does this create an invisible canvas tag with nothing in it?

    Updated Feb 11, 2026
  • #315

    Creates a QR code larger than it needs to be

    Updated Jan 19, 2026
  • #264

    二维码生成不正常

    Updated Dec 24, 2025
  • #316

    FTA: hack to get around bugs with utf8/unicode string length computations

    Updated Dec 24, 2025
  • #78

    Code Length OverFlow Error

    Updated Jul 21, 2025
  • #312

    Silver album

    Updated Jan 24, 2025

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言