Tool guide
About this tool.
- Joining turns several lines into one line with a separator between them. Splitting does the opposite: it cuts text at a separator, or into pieces of a fixed length, and puts each piece on its own line.
- Both directions can trim every item and drop empty ones. Everything runs locally in your browser or editor.
- Join a column of values into a comma separated string for a config or a query.
- Split a semicolon or pipe separated string into one value per line.
- Cut a long token or string into fixed-length pieces for fixed-width formats.
- Join with a tab by typing \t as the separator.
Choose Join to merge lines or Split to cut text apart.
In join mode every line becomes one item and the items are glued together with the separator. An empty separator concatenates them.
In split mode choose Separator to cut at every occurrence of the separator, or Length to cut into pieces of a fixed number of UTF-16 units. Each piece ends up on its own line.
Trim removes surrounding whitespace from every item and Drop empty items removes blank ones. Turn the latter off to keep the empty pieces between adjacent separators.
Copy the result, insert it into the editor, or save joined.txt or split.txt.
- Join with ", ": alpha, beta and gamma on separate lines → alpha, beta, gamma.
- Join with " | ": one, two, three on separate lines → one | two | three.
- Split on ";": red; green;blue → red, green and blue on separate lines.
- Split into 10-character pieces: abcdefghijklmnopqrstuvwxyz → abcdefghij, klmnopqrst, uvwxyz.
- Escaped tab: separator \t joins id, name, email with real tab characters.
- Input is limited to 100,000 UTF-16 units and the result to 100,000 items.
- The separator is 0 to 32 characters when joining and 1 to 32 when splitting. The sequences \n and \t mean newline and tab.
- The piece length must be a whole number from 1 to 10,000. A surrogate pair stays in the earlier piece, so a piece can be one unit longer.
- Lines are split on LF, CRLF and CR. Browser textareas normalize line endings to LF.