Skip to content
UniKit

Multi-column text merger

Treat pasted blocks or text files as columns and merge them row by row: configurable column and row separators, display-width alignment, per-column prefixes, automatic padding when a column is short, plus row, column, cell and UTF-8 byte counts.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Columns

One box per column, one cell per line; the Nth item of every column becomes row N of the result.

Each file becomes one column appended in selection order; a single file is limited to 1 MiB.

Merge options

Pad short columns with empty cellsWhen off, output stops at the shortest column and extra items are dropped.
Drop empty cells
Trim each cellWhen off, spaces and indentation inside cells are kept as-is.

Merged text

Each line joins the Nth item of every column with the column separator; lines are joined with the row separator.

Paste at least one column of content to see the merged result

Rows

0

Columns

0

Cells

0

Empty cells filled

0

What this tool does

  • Copy columns out of a spreadsheet or database, paste each one into its own box, and get one line per record ready for Excel, CSV or SQL
  • Add a per-column prefix (for example id= or phone:), or align columns by display width so Chinese and Latin text line up when you check them by eye
  • Short columns are padded automatically so rows never shift; the row, column and filled-cell counts tell you immediately whether the data is misaligned

Example

Input

Column 1:
Zhang
Li

Column 2:
Beijing
Shanghai

Output

Zhang, Beijing
Li, Shanghai

Both columns are pasted into separate boxes (column 1 = Zhang/Li, column 2 = Beijing/Shanghai) and joined with the default “, ” separator, so each row pairs one item from each column.

Frequently asked questions

How is this different from “TXT file merger”?

The file merger concatenates whole files end to end (vertical joining); this tool joins across columns: it takes one item from each column, builds a line, and repeats. One produces a longer text, the other produces one line per record.

What does “pad short columns with empty cells” do?

It is on by default: with 3 items in column 1 and 2 in column 2 you get 3 rows and the second cell of the last row is empty (rendered as “Wang, ”). Turn it off and the output stops at the shortest column, dropping the extra items; the “filled cells” statistic drops too.

How is the alignment width computed?

By display width: CJK characters, full-width punctuation and common emoji count as 2 columns, everything else as 1, and each cell is padded with the fill character (a space by default) up to the widest cell in its column. It is the usual terminal-width approximation, so rare characters can be off by one column; pick “No padding” when exact alignment does not matter.

How many columns can I add, and can I use files?

Up to 32 columns. Besides pasting, you can pick several text files at once and each file becomes one column appended to the list; a single file is limited to 1 MiB and its content is split into cells by line.

Can the result really be a single line?

Yes. The row separator defaults to a newline (\n); set it to a single space (or comma, semicolon) and every record is joined into one single-line string, which is handy for inputs that reject line breaks.

Keywords:merge columns into rowscombine column textcolumn text mergertxt-mix

Related tools