Conversion Tools100% Client-Side

Transpose a Plain Text Table

Paste a plain-text grid to turn its horizontal rows into vertical columns and its vertical columns into rows. The converter reads a run of spaces or tabs as a boundary between fields. It then pads the new fields so they line up in a fixed-width font. This is useful for simple terminal reports and fixtures where each value is a single token and the entire grid needs to change orientation.

Input
19 chars•2 lines
Output

How to Use the Transpose Text Table Online

  1. 1Paste the table with one record per line. Separate fields with spaces or tabs and keep labels as individual tokens.
  2. 2Locate the old first row in the leftmost column of the result. Compare the two layouts to confirm that the grid was read correctly.
  3. 3Check uneven rows for gaps in the new table. The formatter pads fields for readability and trims padding from line ends.
  4. 4Copy the result into a code block or an editor that preserves repeated spaces and uses a monospaced font.

Input & Output Examples

The three source columns become three lines, each with two values.

Input Sample
Day  Mon  Tue
Count  4  7
Expected Output
Day  Count
Mon  4
Tue  7

The last output row contains a gap for A’s missing flag before the value from B.

Input Sample
Name  Zone  Flag
A  North
B  South  yes
Expected Output
Name  A      B
Zone  North  South
Flag         yes

Practical Developer Workflows

  • Reorient a compact terminal report so dates or labels read down the side of a text table.
  • Prepare a rotated matrix in a support ticket without requiring a spreadsheet attachment.
  • Test how a simple text grid looks when source values from one row become one column.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

A run of whitespace within a line marks a boundary. One space is enough to separate fields. For a name containing a space, use a delimiter-oriented tool on a CSV or TSV representation instead.

Explore Other Tools

12 suggested tools

View all tools