Table image generator

Render a small table as a tidy SVG image with a header row, zebra stripes and right-aligned numbers.

Input

The rows: a list of lists, or a list of objects keyed by column name. Up to 30 rows and 10 columns.
Column names. Leave out to use the object keys, or the first row.
Text size in pixels.
Light or dark colours.

Result

Fill in the input and press Run.

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/table-image \
  -H 'Content-Type: application/json' \
  -d '{"input":{"headers":["City","Temp"],"rows":[["Oslo",4],["Rome",18]]}}'
import json, urllib.request

body = {'input': {'headers': ['City', 'Temp'], 'rows': [['Oslo', 4], ['Rome', 18]]}}
request = urllib.request.Request("https://setget.net/v1/tools/table-image", 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/table-image", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"input":{"headers":["City","Temp"],"rows":[["Oslo",4],["Rome",18]]}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
  "slug": "table-image",
  "input": {
    "headers": [
      "City",
      "Temp"
    ],
    "rows": [
      [
        "Oslo",
        4
      ],
      [
        "Rome",
        18
      ]
    ]
  }
}
{
  "input": {
    "headers": [
      "City",
      "Temp"
    ],
    "rows": [
      [
        "Oslo",
        4
      ],
      [
        "Rome",
        18
      ]
    ]
  }
}

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

Inputs

NameTypeRequiredWhat it does
rows json yes The rows: a list of lists, or a list of objects keyed by column name. Up to 30 rows and 10 columns.
headers array no Column names. Leave out to use the object keys, or the first row.
font_size integer no Text size in pixels. Default: 14. From 8 to 32.
theme string no Light or dark colours. One of: light, dark. Default: "light".

Examples

Input
{
  "headers": [
    "City",
    "Temp"
  ],
  "rows": [
    [
      "Oslo",
      4
    ],
    [
      "Rome",
      18
    ]
  ]
}
Result

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

Rows as objects, dark theme

Input
{
  "rows": [
    {
      "name": "Sam",
      "role": "Admin"
    },
    {
      "name": "Alex",
      "role": "Editor"
    }
  ],
  "theme": "dark"
}
Result

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

Questions

What happens to long cells?
Each column is as wide as its longest cell up to a limit; longer text is cut with an ellipsis.