Free online text tool

Merge Text Or Lists

Merge Text or Lists combines up to three lists line by line. Paste your lists, add a prefix, delimiters and a suffix if you want them, and copy the result. It is free and runs in your browser.

Online Merge Text Tool

Type \t in a box to use a tab. Leave List 3 empty to merge only two lists.

Merge Text Example

Before
List 1: Sofia, Ethan, Luna
List 2: Marie, Alexander, Elizabeth
List 3: Hernandez, Kim, Patel
Prefix: <names>
Delimiter: |
Delimiter 2nd: |
Suffix: </names>
After
<names>Sofia|Marie|Hernandez</names>
<names>Ethan|Alexander|Kim</names>
<names>Luna|Elizabeth|Patel</names>

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Merge Text or Lists do?

This tool merges up to three lists line by line. The first line of every list goes into the first output line, the second lines into the second output line, and so on.

You can add a prefix at the start of each line, a suffix at the end, and a delimiter between the lists. The output has as many lines as your longest list. The words in your lists are not changed.

Use it to join a list of names with a list of emails, to wrap every line in tags or quotes, or to build lines for a spreadsheet, a database or code.

Merge text or lists examples

Each example shows the lists and options used. Items in a list are shown separated by commas, but you type one item on each line.

SettingLists and optionsResult
Three lists with tags
List 1: Sofia, Ethan, Luna
List 2: Marie, Alexander, Elizabeth
List 3: Hernandez, Kim, Patel
Prefix: <names>
Delimiter: |
Delimiter 2nd: |
Suffix: </names>
<names>Sofia|Marie|Hernandez</names>
<names>Ethan|Alexander|Kim</names>
<names>Luna|Elizabeth|Patel</names>
Two lists with a colon
List 1: apple, pear
List 2: red, green
Delimiter: : 
apple: red
pear: green
Prefix and suffix only
List 1: one, two, three
Prefix: [
Suffix: ]
[one]
[two]
[three]
SQL style values
List 1: 1, 2
List 2: Anna, Ben
List 3: Paris, Rome
Prefix: ('
Delimiter: ', '
Delimiter 2nd: ', '
Suffix: ');
('1', 'Anna', 'Paris');
('2', 'Ben', 'Rome');
Lists of different length
List 1: a, b, c
List 2: 1, 2
Delimiter: -
a-1
b-2
c-
Comma between lists
List 1: Anna, Ben
List 2: 10, 20
Delimiter: , 
Anna, 10
Ben, 20

How to merge text or lists

  1. 1
    Add your lists
    Paste your lists into List 1, List 2 and, if you need it, List 3, with one item on each line.
  2. 2
    Set the extras
    Enter a prefix, the delimiters and a suffix if you want them. Leave a box empty to skip it.
  3. 3
    Check the result
    The merged lines appear at once in the result box. Each line joins the same line of every list.
  4. 4
    Copy it
    Click Copy and paste the merged text where you need it.

When to merge lists

Good for

Joining two or three columns that you copied separately, wrapping each line in tags or quotes, and building rows for a spreadsheet, a database or code.

Check first

Lines are matched by position, so the lists must be in the same order. If one list is shorter, the missing spots are left empty. A blank line in the middle of a list counts as an item.

Other tools

To add text to every line of a single list, try Add Text To Each Line or Prefix Suffix. To join the lines of one list into a comma separated line, try Column to Comma.

Merge text or lists FAQ

What does the Merge Text or Lists tool do?

It merges up to three lists line by line. The first line of each list is joined into the first output line, the second lines into the second output line, and so on.

How do I merge two lists?

Paste one list in List 1 and the other in List 2, with one item on each line. Enter a delimiter to put between them, such as a comma or a dash. The merged lines appear in the result box. Click Copy to use them.

What are the prefix and suffix?

The prefix is text added at the start of every output line and the suffix is text added at the end. They are useful for wrapping each line in tags, quotes or brackets.

What are the two delimiters?

Delimiter goes between List 1 and List 2. Delimiter 2nd goes between List 2 and List 3. They can be the same or different.

What if the lists have different lengths?

The output has as many lines as the longest list. When a list has no item for a line, that spot is left empty, but the delimiter is still added.

What if I only use two lists?

Leave List 3 empty. Then Delimiter 2nd and List 3 are left out, and you get List 1 and List 2 joined by Delimiter.

How do I use a tab as the delimiter?

Type \t in the delimiter box and it becomes a real tab. Other characters, including spaces, are used exactly as you type them.

Is this tool free and is my text private?

Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.

Looking for more text tools?

Browse Modify Tools

Last updated: 31 October 2026