QR code matrix (modules as data)

Encode text as a QR code and get the raw grid of modules, with the role of every cell, to draw it any way you like. Rows are strings of 0 (light) and 1 (dark). Roles use one digit per cell: 0 data, 1 finder, 2 separator, 3 timing, 4 alignment, 5 format information, 6 version information, 7 the dark module.

Input

The text or link to encode.
How much damage the code survives: L 7%, M 15%, Q 25%, H 30%.
Use at least this version (size): larger codes have more modules to draw with.

Result

Change the input and the result updates.

Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.

Use it from code or an agent

curl -s https://setget.net/v1/tools/qr-matrix \
  -H 'Content-Type: application/json' \
  -d '{"input":{"text":"hi","error_correction":"L"}}'
import json, urllib.request

body = {'input': {'text': 'hi', 'error_correction': 'L'}}
request = urllib.request.Request("https://setget.net/v1/tools/qr-matrix", json.dumps(body).encode(),
                                 {"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/qr-matrix", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"input":{"text":"hi","error_correction":"L"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
  "slug": "qr-matrix",
  "input": {
    "text": "hi",
    "error_correction": "L"
  }
}
{
  "input": {
    "text": "hi",
    "error_correction": "L"
  }
}

Endpoint: POST /v1/tools/qr-matrix. Over MCP: run_tool with slug: "qr-matrix". Machine-readable: input schema, Markdown. Connect an agent.

Inputs

NameTypeRequiredWhat it does
text string yes The text or link to encode.
error_correction string no How much damage the code survives: L 7%, M 15%, Q 25%, H 30%. One of: L, M, Q, H. Default: "M".
min_version integer no Use at least this version (size): larger codes have more modules to draw with. From 1 to 40.

Example

A tiny code

Input
{
  "text": "hi",
  "error_correction": "L"
}
Result

Different every time. Press the example button above to see one.