Skip to content

Text Transpose

Transpose a text matrix.

Input
Output

No result

About Text Transpose

Text Transpose flips a grid of characters so that its rows become columns and its columns become rows. Feed it lines of aligned text and it returns the same characters read the other way - the sample of abc, def and ghi comes back as adg, beh and cfi.

The text is treated as a character grid with newlines as the row separators, so every character becomes its own cell. Rows of unequal length are right-padded with spaces before the swap, which keeps the result a tidy rectangle rather than a ragged tangle, and a single line simply becomes a column of single characters.

The tool is strictly character-based, which is both its power and its limit. It does not understand commas, tabs or table columns, and it is only meaningful for monospaced or deliberately aligned text - prose run through it comes out as an unreadable vertical smear. An empty input returns an empty result, and there is no delimiter option, so the transpose is always one character to one cell with nothing left out.

How to use Text Transpose

  1. 1 Type or paste the grid of text you want to transpose.
  2. 2 Read the result as it updates - rows become columns and columns become rows.
  3. 3 Note that shorter rows are padded with spaces to keep the grid rectangular.

Frequently asked questions

What does transposing do to my text?

It swaps rows and columns of the character grid. Three rows of abc, def and ghi become three lines reading adg, beh and cfi, with newlines marking the new rows.

What happens to rows of different lengths?

They are right-padded with spaces so the grid stays rectangular. Those trailing spaces can be easy to miss and may change when the result is copied into an editor that trims whitespace.

Can it transpose a table by its columns?

No. It works on individual characters, not on delimiters such as commas or tabs. For column-based data you would need to reformat it first, because every character is treated as its own cell.

Is it useful for ordinary prose?

Not really. The transpose is only readable for monospaced or character-aligned text; ordinary prose comes out as a vertical smear. It is intended for grids and tables of characters.

Free, online, and private

Free to use

Text Transpose is completely free. There is no account to create, no login, and no hidden charge or usage limit.

Runs online in your browser

It is a free online tool that runs entirely in your browser. Nothing to download or install — open the page and start using it right away.

Your data stays private

All processing happens locally on your device. Your input is never uploaded, stored, or tracked, so it never leaves your browser.

How Text Transpose behaves in detail

These are the specifics of this implementation — the exact ranges, defaults and fixed settings you are working with.

Parameter Value
Input one text panel, recalculated live on every keystroke; the sample reads three rows of abc def ghi
Output the rows and columns swap places, so the sample becomes adg on the first line, beh on the second and cfi on the third
Padding shorter rows are right-padded with spaces so the transposed grid stays rectangular
Edges an empty panel returns an empty result, and a single line becomes a column of single characters
Mechanism the text is treated as a character grid with newlines as row separators
Raggedness rows of unequal length are equalised with trailing spaces before the swap

Compiled from the implementation of this tool and checked against it by itoolnet.

What Text Transpose does not do

Knowing the edges of a tool saves more time than another list of its features. These are the cases where it will not do what you might expect.

  • It transposes by character, not by any delimiter. There is no option to swap a table by commas or tabs, and no notion of words or columns - every character becomes its own cell in the grid.
  • Rows of different lengths are silently padded with trailing spaces, which are easy to miss in the output and can change how the result looks when copied into an editor that collapses or trims trailing whitespace.
  • The result is only meaningful for monospaced or character-aligned text. For prose or proportionally spaced text the transpose produces an unreadable grid, and there is no way to constrain it to a subset of lines.

Tested and documented by itoolnet, the team that builds and maintains this site.

Share & embed this tool

Writing a guide or article? You are welcome to link to Text Transpose with the snippet below. It is free, runs entirely in your browser, and needs no signup.