Free tool
Remove and Add Line Breaks
Turn a text into a single line, keep only the paragraphs, or split the text into shorter lines by number of characters, words or sentences.
Characters: 0 · Lines: 0
Characters: 0 · Lines: 0
Everything is processed in your browser. What you type is not sent to any server or stored.
How it works and what it does with your text
It's a small, straightforward utility: you paste, choose options and copy the result.
It runs in your browser
The text is transformed by this page's code, on your device. No sign-up or installation needed.
We don't store what you type
We don't send your text to any server or store it. You can check this in the Network tab of your browser's developer tools.
Free and unlimited
Use it as often as you like. It works the same on mobile and on desktop.
Tips to get the most out of it
Text copied from a PDF
When you copy from a PDF, every line usually ends with a line break. Use “Remove line breaks but keep the paragraphs” to get continuous paragraphs without merging them all together.
Preparing text for a spreadsheet
To turn several lines into a single comma-separated list, remove the line breaks and type “, ” as the separator. For the opposite, add a line break after the comma.
Character limit per line
Every N characters is useful for plain-text emails, code comments or fixed-width screens. Keep the option to not split words ticked so you don't cut in the middle of one.
Sentences on separate lines
“After each sentence” puts every sentence on its own line: useful for reviewing a text sentence by sentence or for translating it with translation memories.
Frequently asked questions
How do I remove the line breaks from a text?
Paste the text, keep the “Remove all line breaks” option and copy the result. Each line break is replaced by the separator you set, a space by default.
How do I remove the line breaks from a Word text?
Copy the text from Word and paste it here. Paragraph breaks and manual line breaks are treated the same. To keep the paragraphs, use the second option.
What is the difference between Windows and Mac line breaks?
None for this tool: it recognizes the three usual types (\r\n, \n and \r) and treats them all the same.
How do I add a line break every certain number of words?
Choose “Add a line break every N words” and enter N. The tool counts the words in each line of the original text.
Related tools
Remove extra spaces
Remove leading and trailing spaces, double spaces or all the spaces in a text.
Remove empty lines
Delete the blank lines from a text or list, or leave just one between paragraphs.
Extract a column from CSV text
Pull a specific column out of text separated by commas, tabs or semicolons.
All free tools
Passwords, texts, lists, codes and more.
Do you manage lists, texts or keywords at scale?
We help with SEO strategy and with custom tools that save you hours of manual work. Tell us what you do today.