# Create a QR code

**URL:** <https://community.weweb.io/t/create-a-qr-code/3805>\
**Category:** Ask us anything\
**Created:** [August 7, 2023, 9:16pm UTC](https://community.weweb.io/t/create-a-qr-code/3805 "2023-08-07T21:16:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarryd](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@jarryd](https://community.weweb.io/u/jarryd)\
**Post date:** [August 7, 2023, 9:16pm UTC](https://community.weweb.io/t/create-a-qr-code/3805/1 "2023-08-07T21:16:14Z")

</div>

Hello WeWeb community! Has anyone implemented a QR code using WeWeb? I’d like to create a QR code for specific pages on my app. For example, a user can create a list of recommendations. I’d like to provide the user the ability to print their unique QR code and when scanned, take the new user to their public page. URLs would be unique to each QR code and would be dynamically generated. for example: [www.mydomain.com/user/X](http://www.mydomain.com/user/X)

Thank you!

---

<div class="post-metadata">

**Author:** ![Geoffroy](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/geoffroy/32/3564_2.png) [@Geoffroy](https://community.weweb.io/u/Geoffroy)\
**Post date:** [August 8, 2023, 9:30am UTC](https://community.weweb.io/t/create-a-qr-code/3805/2 "2023-08-08T09:30:48Z")

</div>

I did it easily with this :

> **[GitHub - davidshimjs/qrcodejs: Cross-browser QRCode generator for javascript](https://github.com/davidshimjs/qrcodejs)**
>
> Cross-browser QRCode generator for javascript. Contribute to davidshimjs/qrcodejs development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![raydeck](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/raydeck/32/384_2.png) [@raydeck](https://community.weweb.io/u/raydeck)\
**Post date:** [October 8, 2023, 9:58pm UTC](https://community.weweb.io/t/create-a-qr-code/3805/3 "2023-10-08T21:58:22Z")

</div>

If you or someone else is looking to solve this proble, I made a vid on making a QR code generator using the new NPM functionality: [https://youtu.be/\_g-pknCCbvk?si=TukSxUOboqxRPZ-Y](https://youtu.be/_g-pknCCbvk?si=TukSxUOboqxRPZ-Y)

---

<div class="post-metadata">

**Author:** ![pinshasa](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/pinshasa/32/7088_2.png) [@pinshasa](https://community.weweb.io/u/pinshasa)\
**Post date:** [October 7, 2024, 9:34pm UTC](https://community.weweb.io/t/create-a-qr-code/3805/4 "2024-10-07T21:34:54Z")

</div>

Thank you @raydeck !

Now I naturally wanted to get the generated QR code as a file to

- change some elements (color)
- download the file or send it to a record in weweb

I tried by adding

```auto
return qr.createDataURL(5);

```

to the javascript custom code, but it takes the whole weweb page elements :-/
