Join Two Values with Separator
Pair lines from two inputs in real time with a custom delimiter. Paste lists, get instant results, and copy with one click.
About This Line-by-Line Joiner
What it does and how it works, with clearly formatted examples.
What this tool does
This utility combines two multi-line inputs line-by-line using a chosen separator, producing one consolidated list in real time. It's ideal for merging names with emails, SKUs with quantities, or any pair of aligned lists without manual editing.
How this tool works
The tool splits each textarea into an array of lines by normalizing line endings and splitting on newline characters. Then it pairs lines by their index and inserts the chosen separator only when both sides have a non-empty value; otherwise it outputs the non-empty side or a blank line if both are empty.
Examples
Example 1: Equal length lists
Input 1:
Alice
Bob
Charlie
Input 2:
[email protected]
[email protected]
[email protected]
Separator: ,
Output:
Alice,[email protected]
Bob,[email protected]
Charlie,[email protected]
Example 2: Uneven lengths
Input 1:
1
2
3
Input 2:
A
B
Separator: |
Output:
1|A
2|B
3
Example 3: Preserving blank lines
Input 1:
alpha
gamma
Input 2:
x
y
Separator: -
Output:
alpha-x
gamma-y