⚙ Text Mechanic

Join / Merge Text Line by Line

Combine two separate lists line-by-line using a custom separator or delimiter. Perfect for creating key-value pairs, URLs, or SQL statements.

How to Use Join / Merge Text Line by Line

  1. Paste List A & List B: Enter your first list in Input A and your second list in Input B.
  2. Set Separator: Define the joining delimiter (comma, tab, colon, hyphen, or custom string).
  3. Copy Merged List: The two lists are merged line-by-line in real time.

Key Features & Capabilities

  • Dual Workspace Inputs: Side-by-side inputs for clear visualization of both data sources.
  • Custom Glue String: Join items with any separator like ` = `, `,`, ` -> `, or tabs.
  • Mismatched Length Handling: Handles lists of unequal lengths cleanly without truncation.
  • 100% In-Browser Privacy: Your text never leaves your device or touches an external server.

Common Use Cases

  • Key-Value Pairing: Combine a list of keys with a list of values to create JSON, YAML, or query parameters.
  • URL Construction: Join a list of base URLs with a list of query paths or slugs.

Frequently Asked Questions

What happens if List A has more lines than List B?
Lines from List A will still be printed, with the separator and an empty value for List B.
Can I join lines from a single text file into a single line?
Yes, check out the Add / Remove Line Breaks tool to unwrap single lists with custom separators.

Related Text Utilities

Lists Comparison Tool
Compare two lists to inspect Common items, Unique to A, Unique to B, or Union
Add Prefix & Suffix into Line
Append or prepend custom text or sequential index to every line
Split Text by Delimiter
Split single string into lines based on custom delimiters or symbols
Add / Remove Line Breaks
Convert newlines to single line or add line breaks at specific character intervals