Overview
Introduction
A long one-item-per-line list can be awkward to review or paste elsewhere; grouping it into fixed-size rows makes it far more compact and scannable.
This tool lays a list out into rows of a chosen number of items, joining each row's items with a configurable glue, so the result reads more like a wrapped table than a long column.
What Is List to Rows Converter?
A layout tool that groups a flat list into chunks of a fixed size and formats each chunk as one line of output, with items inside the line joined by a chosen glue string.
It's the row-major counterpart to List to Columns Converter's column-major, visually-aligned layout.
How List to Rows Converter Works
The input is split into items using the selected separator, then grouped into consecutive chunks of `itemsPerRow` items each, in original order.
Each chunk's items are joined with the chosen glue string to form one row, and the rows are stacked with a newline between each.
When To Use List to Rows Converter
Use it to compact a long vertical list into a grid, for example laying out 100 tags four per line for easier scanning.
It's also useful for preparing tab-separated rows to paste directly into a spreadsheet as multiple columns.
Often used alongside List to Columns Converter, List Item Joiner and List Separator Changer.
Features
Advantages
- Turns a long single-column list into a much more compact multi-item-per-line layout.
- The glue between items on a row is fully configurable, including tabs for spreadsheet pasting.
- Preserves original item order exactly, filling rows left to right.
Limitations
- The last row can have fewer items than the rest with no padding, which some downstream tools expecting a perfectly rectangular grid may not like.
- Doesn't align items visually into columns, for that, use List to Columns Converter instead.
Examples
Best Practices & Notes
Best Practices
- Use a tab as the glue when the output is destined for a spreadsheet, so each row's items land in separate cells on paste.
- Pick an itemsPerRow value that evenly divides your list length if a perfectly rectangular grid matters for your use case.
Developer Notes
Splits with the shared `splitListItems` helper, then iterates the resulting array in steps of `itemsPerRow` using `Array.prototype.slice()`, joining each slice with the glue and the resulting rows with `\n`.
List to Rows Converter Use Cases
- Compacting a long tag or keyword list into a scannable grid
- Preparing tab-separated rows to paste into a spreadsheet as columns
- Wrapping a list of short codes or IDs into fixed-width rows for a report
Common Mistakes
- Expecting the final short row to be padded with blank items, it isn't; the row is simply shorter.
- Using this tool when column alignment is actually wanted, List to Columns Converter is the right tool for that.
Tips
- Try itemsPerRow values like 3, 4, or 5 for readable grids of short items like tags or codes.
- Combine with List to Excel Converter afterward if you want the grouped rows in a spreadsheet.