Remove line breaks
Turn text that wraps mid-sentence back into running paragraphs.
Related tools
-
Remove duplicate lines
Paste a list, get every line once, with the removed duplicates counted. -
Word counter
Live word, character, sentence and paragraph count as you type. -
Case converter
Ten cases, converted as you type: sentence, Title, camelCase, snake_case and more. -
Character counter
Live character count with a progress ring for every platform limit. -
Reverse text
Reverse characters, words or lines, or turn the text upside down. -
Lorem ipsum generator
Placeholder text by paragraphs, sentences or words, ready to paste.
Text copied out of a PDF, an email or a terminal carries a line break at the end of every visual line, so it arrives full of ragged breaks that were never in the writing. Paste it here and those breaks disappear: the lines become running text again, the blank lines between paragraphs stay where they are, and words the layout split with a hyphen are put back together. Windows, Mac and Unix line endings are all handled, and the odd spaces a PDF leaves behind become ordinary ones. Everything happens in your browser; the text never leaves the page.
How to use
- Paste the text that breaks in the wrong places into the left box.
- Leave "Keep paragraph breaks" on to keep the blank lines between paragraphs, or turn it off to get one single line.
- Switch off any other option you do not want, such as rejoining hyphenated words in a text full of compound names.
- Read the result on the right and copy it with the Copy button or Ctrl+Shift+C.
What it handles
- Reads Windows (CRLF), Unix and old Mac line endings, plus the Unicode line and paragraph separators, so a file from any system gives the same result.
- Rejoins a word a PDF split across two lines: "inter-" followed by "national" becomes "international".
- Leaves the hyphen alone when the next line starts with a capital or a digit, so "Anglo-Saxon" and a year range are not glued together.
- Turns non-breaking, narrow and en spaces into ordinary spaces and drops the zero-width characters and byte-order marks that survive a copy out of a PDF.
- Joins Chinese and Japanese lines without adding a space, because those languages do not put one between words. Korean, which does, gets the space.
- Text over 100,000 characters is processed in a background thread with a progress reading, so the page stays responsive.
FAQ
How do I remove line breaks but keep my paragraphs?
That is the default. "Keep paragraph breaks" treats a blank line as a real paragraph break and keeps it, while every single line break inside a paragraph becomes a space. A run of several blank lines becomes one. Turn the option off when you want the whole text on a single line, for a spreadsheet cell or a form field.
Why does text copied from a PDF break in the middle of sentences?
A PDF stores where each piece of text sits on the page, not where sentences end. When you copy, the reader adds a line break at the end of every visual line, and long words that the layout split across two lines keep their hyphen. This tool undoes both: it joins the lines and removes the hyphen that only existed because of the line width.
Will it join words that are meant to stay hyphenated?
A hyphen is only removed when the next line starts with a lowercase letter, which is how a wrapped word looks. "Anglo-" followed by "Saxon" and "2019-" followed by "2020" are left as they are. A lowercase compound split across lines, such as "well-" and "known", is the one case that comes back joined; switch off "Rejoin hyphenated words" for a text full of them.
Is my text uploaded anywhere?
No. The whole thing runs in your browser, so a contract, a medical letter or an unpublished draft never leaves your device. Nothing is logged or stored on a server. The only copy kept is in your browser's local storage on this device, so you find your text again when you come back, and Clear removes it.
Is there a limit on how much text I can paste?
There is no fixed limit. Up to 100,000 characters the result appears as you type; above that the work moves to a background thread and a percentage is shown while it runs, which takes a fraction of a second for a megabyte. The copy kept in your browser stops at 200 KB, so a very large text is processed but not remembered.
Does it work offline?
Yes. Once the page has loaded, nothing else is fetched and no connection is needed. You can turn off Wi-Fi and keep pasting. The joining, the counts and the copy button all run from the script already in the page, which is also why the result appears without a round trip to a server.
Updated