5 Ways To Combine or Merge Multiple Text Files

Most users will come into contact with text files in Windows on a daily basis. Whether it’s reading a Readme file, viewing system or application logs, editing configuration files or creating your own text based files. Text files can easily be viewed, created and edited using the built in Windows Notepad or more advanced programs like Notepad++ and making your own text file requires no coding or programming knowledge as it’s just plain text.

If you have a number of text files spread across your computer it can become a bit inconvenient to keep opening different files to look for or edit specific text. What would make things easier is being able to merge a number of text files into one single file, this makes the files easier to handle, the data faster to read through and more efficient to search. This is especially useful for multiple logs or report files which could otherwise be spread across dozens or even hundreds of files.

Here we list 5 different tools and methods for you to be able to merge or combine multiple text based files into a single file to hopefully make things a little easier.

1. TXTcollector

One advantage TXTCollector has over many other tools of this type is it’s ability to optionally include all the files inside subfolders and not just the main folder when merging. It also has a text filtering drop down box which can automatically add files of a specific type, which are BAT, LOG, XML, TXT, DAT, TAG, REG, INI, INF, HTM, CFG and CSV.


After installing TXTCollector, run it and browse for the folder containing your files, optionally include subfolders. All you have to do then is decide whether you want, and what type of separator to use, or whether to add a simple line break between each text file, or nothing at all. Pressing Combine all files will ask you where to save the merged text file and what name to give it.

By default TXTCollector cannot select all files but only those with a specifically selected file extension. You can add custom extensions by clicking “Extensions and Separators” at the bottom and opening Extensions.txt in Notepad. Enter an asterisk (*) on its own line and then save the file. Selecting the extension drop down will now have a * which will select all files for merging. You can also add you own custom separators by editing the Separators.txt.

Download TXTcollector

Tip: TXTCollector requires installation but you can create a portable version by using Universal Extractor. Download and unpack setup.exe with Universal Extractor, go to the extracted {sys} folder, copy all the files inside and paste them into the {app} folder. TXTCollector is now portable, however, Separators.txt and Extensions.txt will still be created in AppData\Roaming on program launch.

2. Text File Merge

While Text File Merge is an old tool dating to 2002, joining text files together isn’t complicated or operating system dependant and it still works fine today. It is a portable executable but comes as a Zip self extracting executable, so you need to browse for a folder and unzip the Text File Merge program before using it.

text file merge

After browsing for the folder containing the text files using the drive and folder boxes, you can either select everything by pressing the Select All button, drag the mouse over a range of names or use Ctrl/Shift+Click to multi select. The box just below is for using a different extension filter such as *.log. The other options are for stripping lines from the top of text files or adding line spacing to the bottom, the amount of lines can be specified in the number boxes. Each merged text file will be saved in the same folder with the name “merged file[number].txt”.

Download Text File Merge

3. Text File Joiner

The website and developer of Text File Joiner is no longer around but the program still works and is simple enough to use meaning the chances of any remaining bugs causing trouble is quite small. It’s only a 38KB standalone executable however the .NET Framework 4 is required which will need to be installed on Windows 7 and below operating systems.


The user interface is set up a little like a wizard style and is simple to use, press button 1 to select and load the files and then button 2 to choose where to save the text file and what to call it. The order of files can be altered with the up and down buttons, you can also insert each file’s name and separate each text file with a space. Note that it will place each file on its own line by default and the space option adds an extra break, also you have to select files to load and not whole folders so will have to select everything in a folder by using Ctrl+A. The download link is via Softpedia.

Download Text File Joiner

4. Use Notepad++ to Combine Multiple Text files

While the option to merge a number of text files into a single text file is not available as a standard feature in Notepad++, it can be added in by making use of the internal plugin system. It also works in a different way because only text files which are opened as tabs inside Notepad++ will be combined.

To do that download Notepad++ and install it or extract the portable version, run the program and go to the Plugins menu > Plugin Manager > Show Plugin Manager. Find the Combine plugin, check its box and click Install. After a compulsory restart of Notepad++ open all the files you want to merge and then go to Plugins > Combine > Start.

notepad++ combine plugin

The Combine window will pop up and offer to insert the filename and a line of dashes before each text file and a line of asterisks with optional line feed after. By pressing OK a new text file will be created in Notepad++ with all opened text files combined, save it out as a new .TXT file. To rearrange the merged text you can drag around the file tabs to the preferred order, they’re ordered left to right is top to bottom. Combine has a webpage where you can read more, download the plugin DLL separately or possibly make a donation if you find it useful.

Visit Combine Plugin Webpage

5. Merge Text Files Using Built-in Windows Tools

It might come as a surprise to some but Windows already has some methods to join multiple files together using command line tools such as Type and Copy. All you have to do is supply the right syntax to the command. For instance, open a Command Prompt, CD to the folder containing the text files and type:

Type *.txt > Combined.txt

That very simple command will read the content of all the text files in the current folder and output it all to the combined text file. You can also do a similar thing with Copy:

Copy /b *.txt Combined.txt

The above will simply join all .txt files together into one file called Combined.txt and has the same result as the Type command. The Copy command is quite powerful for joining files and you can join together just about anything including archives and video files. One drawback is if the text files don’t each have a line break at the end they will append directly onto the text from the previous file.

join text files onto single line

To stop that happening and split the text from each file with a line break you need to use something a bit more advanced:

For %f in (*.txt) do type "%f" >> Combined.txt & echo. >> Combined.txt

jopined text files on separate lines

The above command will add an echo. after each file is copied into the text file which makes sure all text files start on a new line.

Final Note: You might notice that if your files are numbered, sometimes they are not sorted in the proper numeric order. For example, the command line and some tools will order the files as file1, file10, file2 while Windows Explorer will order them as file1, file2, file10. The workaround is to pad the numbering with zero’s as file01, file02, file10 etc, which will add the files to the combined text file in proper numeric order.

3 Comments - Write a Comment

  1. Jayden 1 year ago
  2. Ivan 2 years ago
  3. selcuk 2 years ago

Leave a Reply

Your email address will not be published. Required fields are marked *

Note: Your comment is subject to approval. Read our Terms of Use. If you are seeking additional information on this article, please contact us directly.