---
url: /process-functions/script-qrcode.md
description: >-
  This function is used to create a QR Code in Portable Network Graphics (PNG)
  format.
---

# script.qrcode

This function is used to create a QR Code in Portable Network Graphics (PNG) format.

```js
script.qrcode(inputStr)
```

#### Parameters

* `inputStr` - the data string to be encoded.
* `size` - an integer being the width and height of the resulting image.

#### Example

```js
let base64Image = script.qrcode("Data to encode", 300);
```

The result in base64Image will be the raw base 64 encoded image.
