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
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
| Name | Type | Required | What 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.
Related tools
- QR code generator
Make a scannable QR code from any text or link, styled your way: colors, gradients, dot shapes, a logo and a frame.
qr-generate - Photo QR code (halftone)
Turn a photo into a scannable QR code: the picture is dithered into the modules themselves, in color or mono.qr-photo - .gitignore generatorBuild a .gitignore for the languages, editors and operating systems you use, merged without duplicates.
gitignore-generate - Animated QR code
Make a QR code that draws itself: an animated SVG in any style that ends as a complete, scannable code.qr-animate - ASCII banner text generatorTurn short text into large five-line banner letters for terminals, READMEs, logs and code comments.
ascii-banner - ASCII table generatorRender headers and rows as a box-drawing or plain ASCII table for terminals, logs and code comments.
ascii-table