Space
Lines are joined with a single space, turning a wrapped block back into flowing text. The best choice for prose and sentences that got split across lines.
The quick↵
brown fox↵
jumpsAfterThe quick brown fox jumpsFlatten multi-line text into a single line and choose exactly how the lines are joined, with a space, a comma, or your own separator. Everything runs in your browser, so your text stays on your device.
This tool takes text that is spread across many lines and merges it into a single continuous line. You decide what sits between the lines, whether that is a space for flowing prose, a comma for a list, or a custom character for something more specific. It is the fast way to turn a vertical list into a comma separated line, pull a wrapped block back into one line for a form field, or prepare values for a spreadsheet or a bit of code.
Lines are joined with a single space, turning a wrapped block back into flowing text. The best choice for prose and sentences that got split across lines.
The quick↵
brown fox↵
jumpsAfterThe quick brown fox jumpsEach line is separated by a comma and a space, which is ideal for turning a vertical list into a comma separated line for CSV, tags, or a quick array.
red↵
green↵
blueAfterred, green, blueJoin lines with a semicolon or a pipe when a comma would clash with your data, such as email lists, shell values, or fields that already contain commas.
one↵
two↵
threeAfterone; two; threeSet your own separator, like a dash or an arrow, or choose None to glue the lines together with nothing between them at all.
abc↵
def↵
ghiAfterabcdefghiA few common jobs need quotes around each item before the lines are joined. Use the add prefix and suffix tool first, then join the result here:
| You want | Step 1: prefix and suffix | Step 2: join with | Result |
|---|---|---|---|
| SQL IN list | ' and ' | Comma | 'red', 'green', 'blue' |
| JSON array items | " and " | Comma | "red", "green", "blue" |
| Hashtags | # and nothing | Space | #red #green #blue |
In Excel and Google Sheets you can do the same join with a formula: =TEXTJOIN(", ", TRUE, A1:A10) joins a column with commas and skips empty cells.
Flattening text to a single line comes up more often than you might think. Here are the most common reasons people use it: