# Extension: QR Code ... again

**URL:** https://forum.makecode.com/t/extension-qr-code-again/5352
**Category:** Arcade
**Tags:** extension
**Created:** [January 5, 2021, 6:44am UTC](https://forum.makecode.com/t/extension-qr-code-again/5352 "2021-01-05T06:44:57Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jacob\_c](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jacob_c/32/1532_2.png) [@jacob\_c](https://forum.makecode.com/u/jacob_c)
#### Post date: [January 5, 2021, 6:44am UTC](https://forum.makecode.com/t/extension-qr-code-again/5352/1 "2021-01-05T06:44:57Z")

</div>

While creating this topic, I just learned that @peli already did this: [QR Code extension](https://forum.makecode.com/t/qr-code-extension/1601). 🤦‍♂️

But in case you were dying to make QR Codes in Arcade, and you didn’t already know about @peli’s extension, have I got the QR Code generating extension for you: [https://github.com/jacobcarpenter/pxt-qr-code](https://github.com/jacobcarpenter/pxt-qr-code)! 😅

 ![Screen Shot 2021-01-04 at 10.23.14 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/b8e706a451f2996f14a66194d884265abe176a0e.png)

Two blocks:

1. make a sprite that displays a QR code for the entered value
2. make an image directly

I haven’t tried reading these off of an actual hardware device yet, but it seems to work great from the simulator to my phone.

I’d love to see a game that incorporates QR codes as a mechanic somehow (perhaps as some kind of hidden information for one player while taking turns, or giving an answer to a puzzle w/out showing it in plain text or something…)

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [January 5, 2021, 7:34am UTC](https://forum.makecode.com/t/extension-qr-code-again/5352/2 "2021-01-05T07:34:31Z")

</div>

You could consider using

```auto
const buf = Buffer.fromUTF8("hello")

```

to get the UTF8 bytes

---

<div class="post-metadata">

### Author: ![jacob\_c](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jacob_c/32/1532_2.png) [@jacob\_c](https://forum.makecode.com/u/jacob_c)
#### Post date: [January 5, 2021, 5:33pm UTC](https://forum.makecode.com/t/extension-qr-code-again/5352/3 "2021-01-05T17:33:05Z")

</div>

Are strings in Arcade all already UTF-8 internally? The code I’m using to convert to UTF-8 bytes handles conversion from UTF-16 encoding (the runtime internal format of strings [according to the standard](https://www.ecma-international.org/ecma-262/11.0/index.html#sec-ecmascript-language-types-string-type)). But maybe MakeCode TypeScript already does this differently.

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [January 6, 2021, 8:40am UTC](https://forum.makecode.com/t/extension-qr-code-again/5352/4 "2021-01-06T08:40:59Z")

</div>

Yes it is handled. Here is our writeup about strings: [https://makecode.com/js/values](https://makecode.com/js/values)

---

<div class="post-metadata">

### Author: ![NeverStopTheCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neverstopthecoder/32/21194_2.png) [@NeverStopTheCoder](https://forum.makecode.com/u/NeverStopTheCoder)
#### Post date: [October 7, 2025, 4:32pm UTC](https://forum.makecode.com/t/extension-qr-code-again/5352/5 "2025-10-07T16:32:19Z")

</div>

i tried on my make code compatible game boy and it seems to work if the brightness was all the way down

---

<div class="post-metadata">

### Author: ![SouperMediocre1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/soupermediocre1/32/22579_2.png) [@SouperMediocre1](https://forum.makecode.com/u/SouperMediocre1)
#### Post date: [March 5, 2026, 10:53pm UTC](https://forum.makecode.com/t/extension-qr-code-again/5352/6 "2026-03-05T22:53:25Z")

</div>

THIS IS INSANE! you can now copy text out of makecode without using the console!
