Skip to content

Merge lines from multiple lists

Combine lists line by line, so the first line of each list ends up together on one row, joined by the separator you choose. Works with up to six lists.

  • Free, no limits
  • No sign-up
Everything happens in your browser; your data is never uploaded.
  • ✓ Free
  • ✓ No sign-up
  • ✓ Nothing uploaded

Next step

What to do next

How to use it

  1. Paste each list into its own box (add more with “+ Add list”).
  2. Choose a separator.
  3. Pick what happens when the lists have different lengths.
  4. Copy or download the merged lines.
Try it now

How merging works

Merging joins the lists like a zipper: line 1 of list A with line 1 of list B, line 2 with line 2, and so on.

List AList BMerged (separator -)
Anna Smithanna@example.comAnna Smith - anna@example.com
Bob Jonesbob@example.comBob Jones - bob@example.com
Carol Leecarol@example.comCarol Lee - carol@example.com

You can add up to six lists. The separator goes between the parts; quick buttons offer space, comma, semicolon, tab, dash, equals or nothing, or type any separator you like.

Line start and Line end add fixed text to every merged row, for example ( and ), to build SQL value rows, or <option value=" … "> for HTML.

Lists of different lengths

If the lists don't have the same number of lines, the tool shows the lengths and handles the difference the way you choose:

  • Leave missing parts empty (keep separator). Rows keep the same structure: David Brown - . Best for CSV or tab-separated output where columns must line up.
  • Skip missing parts and their separator. David Brown without a dangling separator.
  • Stop at the shortest list. Extra lines in longer lists are dropped.
  • Repeat shorter lists from the top. Handy when one list is a short pattern, like assigning three team colors across a long roster.

Trim spaces removes stray spaces around each item, and Skip empty lines drops blank lines before merging so the rows don't shift out of sync.

Example: building SQL rows

Lists: A = 1, 2, 3; B = 'Anna', 'Bob', 'Carol'.

Settings: separator , , line start (, line end ),.

Result:

(1, 'Anna'),
(2, 'Bob'),
(3, 'Carol'),

Paste the rows after INSERT INTO people (id, name) VALUES and change the final comma to a semicolon. To add the quotes around the names in list B automatically, run it through add prefix and suffix first.

Common uses

  • Contact lists: names and email addresses that came from two different columns or files.
  • Spreadsheet columns: merge with a tab separator, and paste back into Excel to get the columns side by side.
  • Key-value pairs: keys and values with = or : in between, for config files or translations.
  • SQL and code: build ('value1', 'value2'), rows using quotes in the separator and line start/end.
  • Product feeds: SKU, title and price from three separate lists.

To split merged data back apart, use extract columns. To produce every combination of items rather than pairing them line by line, use the keyword combiner.

Tips

  • Check the line counts shown on each box before you copy the result; a single extra blank line in one list shifts every row after it. Skip empty lines prevents that.
  • Sort both lists the same way first if the order was different, or the wrong items end up paired.
  • The tab separator shows as ⇥ in the separator box so you can see it.

Everything runs in your browser; the lists are not uploaded.

Frequently asked questions

How do I combine two lists line by line?

Paste one list in box A and the other in box B, choose a separator, and copy the merged result.

What if the lists have different lengths?

Choose whether to leave missing parts empty, skip them, stop at the shortest list or repeat the shorter list.

Can I merge more than two lists?

Yes, up to six. Click “+ Add list”.

How do I merge columns for Excel?

Use the tab separator, then paste the result into a spreadsheet; each part lands in its own column.

Is my data uploaded?

No. The merge happens in your browser.

Last updated: November 12, 2026

Recommended

Similar tools

If Merge lines helped, you may need these too.

See all in category →

People also use