Remove line breaks from text and join the lines
Paste text with broken lines and this line break remover joins it into clean, flowing text. Text copied from a PDF, an email or a chat often has a hard line break at the end of every line, and one click removes all of them while keeping the real paragraphs apart.
Join lines with a space, a comma or any separator
Choose to join lines into one line with a space, with nothing, with a comma or with your own text. You can also collapse repeated spaces, trim each line, remove empty lines and repair words that were split with a hyphen at the end of a line. The tool treats Windows, Mac, Linux and Unicode line endings alike, so it does not matter which system the text came from.
How to use Remove Line Breaks
- Paste the text with the line breaks into the box.
- Choose how to join the lines and tick the cleaning options you need.
- Solve the security check and press Remove.
- Check the counts, then copy the text or download it as a text file.
About Remove Line Breaks
A line break is the invisible character that ends a line. Windows uses a carriage return plus a line feed, Mac and Linux use a line feed, and some programs use the Unicode line and paragraph separators. This tool treats all of them as line breaks. In the keep paragraphs mode, lines inside a paragraph are joined and a blank line between paragraphs is kept, which is the best choice for text copied from a PDF or an email. The hyphen fix joins a word that ends with a hyphen at the end of a line with the next line when the next line starts with a lower case letter, so exam- at the end of one line and ple at the start of the next become example, while a line that ends with a hyphen and is followed by a capital letter is left alone.
Purpose of Remove Line Breaks Tool
Use it to clean text copied from PDFs, scanned documents, emails and chats, to turn a list into one line, to prepare text for a form field that does not allow new lines, to remove line breaks before translating or counting words, and to fix text pasted from code comments.
Limitations of Remove Line Breaks
- The hyphen fix cannot know whether a hyphen at the end of a line belongs to the word or was added only to split it, so check names and compound words.
- Joining without a separator can glue words together when the lines do not end with a space, so use a space for normal text.
- Tables and lists lose their layout when their lines are joined.
- Text over 2 million characters is refused to keep the page fast.
Privacy and data
Remove Line Breaks runs entirely in your browser. What you type or select is processed on your own device and is never sent to or stored on our server. See our Privacy Policy for details.
Frequently asked questions
How do I remove line breaks from text?
Paste the text, choose Join with a space, solve the security check and press Remove. The text appears as one line and can be copied in one click.
Can I keep the paragraphs and remove only the other line breaks?
Yes. Choose Keep paragraphs. Lines inside a paragraph are joined and blank lines between paragraphs are kept.
Is the line break remover free and safe to use?
Yes. The line break remover is free to use and runs in your browser, so your text is not uploaded, stored or logged.
How do I fix text copied from a PDF with broken lines?
Join the lines with a space and turn on the option that fixes hyphenated words. Keep paragraphs if you want blank lines between them.
Can I join lines with a comma instead of a space?
Yes. Choose to join with a comma, a space or nothing.
Rate Remove Line Breaks
No ratings yet. Be the first to rate this tool.
Report a bug or give feedback
Popular tools
Morse Code to Text
Decode Morse code made of dots and dashes into readable text, with flexible separators and error marking.
Text ToolsWebpage URL to Text
Turn a web page address, pasted page source or an HTML file into clean readable text without ads and menus.
Text ToolsASCII to Text Converter
Decode decimal, hex or octal ASCII codes into text, with auto-detection, a code table, control-character names and clear errors for bad codes.
Text ToolsBinary to Text Converter
Decode binary into text as UTF-8, 7-bit ASCII or 16-bit UTF-16, with or without spaces, and find exactly what is wrong when it will not decode.
Text ToolsBMI Calculator
Work out your BMI, category and healthy weight range in metric or imperial units.
Health ToolsBullet List Generator
Turn lines, commas or sentences into a bullet, numbered or checklist, with nested levels, as text, Markdown or HTML.
Text Tools