Free Online Line Splitter and Merger, Split or Join Lines
Split one long line into many, or join many lines into one, without leaving your browser. Break on a comma, a semicolon or any separator you type, cut every so many characters or words, or wrap to a width without breaking words. The merge side joins everything or works in groups of a fixed size.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Use Line Splitter and Merger
Step by step, start to finish.
One long line if you are splitting, a list of lines if you are joining. A .txt file can be dropped on the box.
The first menu decides everything else. Choosing a separator hides the width boxes, and choosing merge shows the joining options.
A separator can be a comma, a tab, a pipe or anything you type. A width is a number of characters, words or columns.
The counters under the options show how many lines came out and how long the longest one is, which is the quickest way to see that the width worked.
Key Features
What this tool does, and what it does not do.
Separator, character count, word count, word safe wrap, join everything, join in groups.
Moves each break back to the last space so no word is cut, the way a text editor wraps a paragraph.
Comma, semicolon, pipe, tab and space are ready, or type your own, including more than one character.
The same page splits and merges, so you can break a list up, edit it, and put it back.
Lines in, lines out, the longest line and how many empty pieces were dropped.
The splitting happens in this tab, so lists of addresses or customer records never leave your computer.
About Line Splitter and Merger
Text arrives in the wrong shape more often than it arrives in the right one. A list is pasted out of a spreadsheet as one line of commas, or out of an email as forty lines that should be one paragraph. Neither is hard to fix by hand on five items, and both are miserable on five hundred.
The six modes exist because "split" means different things depending on what the text is. A separator works when the data was written with one. A character count works for fixed width records where every field starts in a known column. A word count is how you cut a long passage into even chunks for subtitles or captions. Wrapping is what you want for prose, because prose should not have words cut in half.
The merge side is deliberately not just "join everything". Joining in groups of a fixed size is the awkward one to do by hand, and it is what you need when a record was written across several lines and you want one line per record. The leftover group at the end is kept as it is, because inventing padding to make the last group full would be inventing data.
Frequently Asked Questions
Common questions about this tool.