CSV Toolkit (transpose / delimiter / JSON·XML·YAML)

Paste CSV or TSV and detect the delimiter automatically. Convert to JSON, XML, YAML or TSV, transpose rows and columns, switch delimiters, swap or insert columns, and find rows with missing fields.

3 rows × 3 columns
Parsing with "Comma"

What to do

Output

17 lines
[
  {
    "姓名": "张三",
    "城市": "北京",
    "年龄": "28"
  },
  {
    "姓名": "李四",
    "城市": "上海",
    "年龄": "32"
  },
  {
    "姓名": "王五",
    "城市": "广州",
    "年龄": "25"
  }
]

Parsing follows RFC 4180: commas, line breaks and doubled quotes inside quoted fields are preserved; the BOM added by Excel is stripped.

Transposing includes the header row, so the first column of the result is the original header. Column indexes start at 1.

Comments

Sign in to join the discussion

No comments yet — be the first to say something