Join Lines into One
Merges several lines into one line with a separator of your choice, keeping paragraph breaks if you like. Fixes text copied from a PDF with broken lines.
Loading tool...
Runs in your browser. Nothing is sent anywhere.
When to use it
Use this when text copied from a PDF or email breaks mid-sentence, or when you need to turn an Excel column of order IDs or phone numbers into one comma-separated line for a search box.
With paragraph breaks kept, blocks separated by a blank line stay apart and only lines within the same paragraph are joined. Leading and trailing spaces on each line are trimmed first, so you do not end up with double spaces.
How to use
- Paste your text into the left box.
- Choose the joining character and whether to keep paragraph breaks.
- Click Copy or Download.
Frequently asked questions
Is my text sent to a server?
No. The tool runs entirely in JavaScript in your browser, and the text you paste never leaves your device.
Related tools
More Text tools
Add Text to Start and End of LinesAdds a prefix and a suffix to each line, for example a bullet, a trailing comma or quotes around each line.Wrap Text at a Set Line LengthBreaks long text into lines of no more than the number of characters you choose, without cutting words.Show Hidden Characters and WhitespaceShows spaces as dots, tabs as arrows, line breaks as pilcrows, and points out non-breaking spaces and zero-width characters.Normalize Vietnamese UnicodeConverts Vietnamese text in decomposed form (separate accent marks, common when copying from macOS or PDF) to precomposed form so search and sorting work correctly.Find and Replace TextFinds and replaces text in bulk, with case-sensitive matching, whole-word matching and regular expressions.Vietnamese Tone Mark Style ConverterMakes the placement of tone marks consistent for the vowel groups oa, oe and uy, switching between the old style and the new style.
See all text tools