Remove line breaks
Turn many lines into one line in a click.
Editor
Remove line breaks: what it does
Paste text that is broken into many lines and get a single line back. It helps with text copied from a PDF or an email, with a list that must fit into one cell, or with a long address. Choose “Join lines” to use a comma or another separator instead of a space.
Remove line breaks: how to use it
- Paste the text that has unwanted line breaks.
- Choose the tool: remove line breaks, or join lines with a separator.
- Select Apply and copy the result.
Remove line breaks: when to use it
- Fix text copied from a PDF or an email where every line ends with a hard break.
- Turn a column of values into one comma-separated line for a formula, a query or a form field.
- Merge a list of keywords or tags into a single line before pasting it somewhere that accepts one line only.
Remove line breaks: examples
Input
This sentence was broken by a PDF but it is one thought
Result
This sentence was broken by a PDF but it is one thought
Input
red green blue
Result
red, green, blue
Remove line breaks: questions and answers
Does it remove paragraph breaks too?
Yes. Every line break becomes one space and empty lines are dropped. To keep paragraphs, use Remove empty lines with the option that keeps one empty line.
Can I join the lines with a comma?
Yes. Choose Join lines and pick the separator you need: comma, space, pipe, semicolon, tab or nothing.
Does it keep the spaces inside my lines?
Yes. Only the line breaks are replaced; the words of each line stay exactly as they were.
Can I get the lines back afterwards?
Use Undo right after the change. Later, Split text into lines can cut the text again at the separator you used.
Is my text sent to a server?
No. Everything runs in your browser on your own device, so your text never leaves it.
Related tools
Tools people often use together with this one.
- Remove empty lines
Delete blank lines from your text in one click.
- Split text into lines
Put every word or list item on its own line.
- Remove extra spaces
Clean up double spaces and stray whitespace.
- Add a blank line between lines
Double-space your text with one empty line between lines.
- Convert tabs to spaces
Swap tab characters for spaces, or the other way round.
- Remove HTML tags
Strip HTML tags and keep only the text.
- Add quotes around each line
Wrap every line in quotes, brackets or any text.