Skip to main content
WizTools123
Free Online Tools

Tool Categories


Text Tools New Tool

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.

Free Forever Nothing Uploaded Split and merge Word safe wrapping
Free Online Line Splitter and Merger, Split or Join Lines
Share this tool
Advertisement Slot (Top Banner) Google AdSense Unit • Responsive Banner
Line Splitter and Merger Everything happens in this tab. Nothing you paste is sent anywhere.
Your text
0 characters 0 words 0 lines
Result
0 characters 0 lines
What to do
Separator
Size characters
Joining
Tidying

0 lines in 0 lines out 0 longest line 0 empty dropped

Buy Us A Coffee

Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.

Buy Us A Coffee
Sponsored Content (Below Tool) Google AdSense Placement

How to Use Line Splitter and Merger

Step by step, start to finish.

1
Paste the text

One long line if you are splitting, a list of lines if you are joining. A .txt file can be dropped on the box.

2
Pick what to do

The first menu decides everything else. Choosing a separator hides the width boxes, and choosing merge shows the joining options.

3
Set the separator or the width

A separator can be a comma, a tab, a pipe or anything you type. A width is a number of characters, words or columns.

4
Check the counters and copy

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.

Six ways to cut

Separator, character count, word count, word safe wrap, join everything, join in groups.

Word safe wrapping

Moves each break back to the last space so no word is cut, the way a text editor wraps a paragraph.

Any separator

Comma, semicolon, pipe, tab and space are ready, or type your own, including more than one character.

Works both ways

The same page splits and merges, so you can break a list up, edit it, and put it back.

Honest counters

Lines in, lines out, the longest line and how many empty pieces were dropped.

Nothing is uploaded

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.

Choose "something else" in the separator menu and type the whole thing, for example " - " with the spaces, or ", " with a comma and a space. It is matched exactly as typed, so spaces count.

Splitting cuts at exactly that count, even in the middle of a word, which is what fixed width data needs. Wrapping treats the number as a maximum and moves each cut back to the last space, which is what text needs.

Yes, switch on "Keep the separator on the end of each line". Each piece then ends with the separator it was followed by, and the last piece has none because there was none after it.

Because a single word on that line is longer than the width, usually a web address or a long code. There is no space to break at, so the word is left whole rather than cut in a place that would make it wrong.

Only if you choose one. The joining menu decides what goes between, including nothing at all, which is what you want when you are putting a broken code or a long number back together.
Advertisement Slot (Bottom Banner) Google AdSense Unit • Responsive Banner