CSV transpose

Swap the rows and columns of a CSV table.

Input

The CSV to transpose.
Column separator. "auto" detects it from the first line.

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/csv-transpose \
  -H 'Content-Type: application/json' \
  -d '{"input":{"text":"a,b\n1,2\n3,4"}}'
import json, urllib.request

body = {'input': {'text': 'a,b\n1,2\n3,4'}}
request = urllib.request.Request("https://setget.net/v1/tools/csv-transpose", 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/csv-transpose", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"input":{"text":"a,b\n1,2\n3,4"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
  "slug": "csv-transpose",
  "input": {
    "text": "a,b\n1,2\n3,4"
  }
}
{
  "input": {
    "text": "a,b\n1,2\n3,4"
  }
}

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

Inputs

NameTypeRequiredWhat it does
text string yes The CSV to transpose.
delimiter string no Column separator. "auto" detects it from the first line. One of: auto, comma, tab, semicolon, pipe. Default: "auto".

Example

Input
{
  "text": "a,b\n1,2\n3,4"
}
Result
{
  "text": "a,1,3\nb,2,4\n"
}