Transpose rows and columns

Switch table rows and columns by copy and pasting from an Excel document or other tab-separated table.

Face with waiting expression Nothing to see yet!

Loading takeymakey...
TakeyMakey code
Want this tool to do something else? Edit the code below and make it do whatever you want.
({
  take: [{ type: "list" }],
  make: (list) => {
    const tab = "\t"
    const max = Math.max(...list.map((e) => e.split(tab).length))

    return Array.from({ length: max }, (e, i) =>
      list.map((row) => row.split(tab)[i]).join(tab)
    )
  },
})