Text & Writing
Remove Line Breaks
Join broken lines into flowing text — fix copy-pasted PDF and email text while keeping paragraph breaks if you want.
How to use
- 1Paste text with unwanted line breaks.
- 2Choose whether to keep paragraph breaks, then copy the cleaned result.
Frequently asked questions
Why does text from PDFs have line breaks everywhere?
PDFs store each visual line separately, so copying adds a hard break at the end of every line.
Will my paragraphs be merged together?
Not if 'Keep paragraphs' is on — blank lines between paragraphs are preserved and only single breaks are joined.
What happens to hyphenated line endings?
Words split across lines with a hyphen (like 'impor-\ntant') are rejoined into one word.
A worked example of the hyphen-rejoining rule
"very impor-\ntant" becomes "very important" — the tool specifically looks for a lowercase letter, a hyphen, a line break, and another lowercase letter, and when it finds that pattern it deletes both the hyphen and the break to rejoin the word. This is deliberately narrow: it only fires when both sides of the hyphen are lowercase letters, so a line ending in an actual hyphenated compound word, or a hyphen followed by a capital letter (which usually signals the start of a new sentence or proper noun, not a continued word), is left alone rather than incorrectly merged.
Why PDFs are the main source of this problem in the first place
A PDF doesn't store "paragraphs" as a concept the way a word processor does — it stores the exact visual position of each line of text on the page, because its entire job is reproducing a fixed layout. When you copy text out of a PDF, your clipboard gets a hard line break at the end of every visually-wrapped line, not just at actual paragraph ends, because the PDF never recorded the distinction between "this line wrapped because the page is 8.5 inches wide" and "this is the end of a paragraph." Removing line breaks is really an attempt to recover information (where paragraphs actually end) that the PDF format itself didn't preserve.
Why 'Keep paragraphs' relies on blank lines specifically
With paragraphs kept, the tool only joins single line breaks within a block of text and leaves a blank line (two consecutive breaks) as the paragraph boundary — "one\ntwo\nthree\n\nfour\nfive" becomes "one two three" and "four five" as two separate paragraphs. This only works correctly if the source actually used a blank line to separate paragraphs in the first place; if your copied text has no blank lines at all (common with some PDF exports that just hard-wrap every line with no paragraph spacing), turning 'Keep paragraphs' off and joining everything into one flowing block, then re-adding paragraph breaks by hand, is often the more reliable approach.
Extra blank lines collapse, and spaces after the hyphen still rejoin
Keep paragraphs starts turned on. A run of several blank lines is treated as one paragraph gap, and a paragraph that is only whitespace is dropped, so I do not get a stack of empty blocks. Inside a paragraph, leftover double spaces collapse to one space and the edges are trimmed. The hyphen rule still fires if there are spaces after the line break, so a word split as impor- then a break then spaces then tant still becomes important, as long as both letters are lowercase. A capital after the break is left alone. Turning Keep paragraphs off joins the blank lines too, which is how one, two, and three become a single line even when a blank line sat between them.
Related tools
- Bullet & Line Formatter
Add bullets, numbers, a prefix or a suffix to every line of a list — or strip existing bullets and numbering.
- Accented Letters & Special Characters
Copy accented letters (é, ñ, ü, ç) and special symbols, with their HTML codes, Unicode values and Windows Alt codes.
- Reverse & Upside-Down Text
Reverse text backwards, reverse word order, or flip it upside down (ʇxǝʇ uʍop ǝpısdn) to paste anywhere.
- Fancy Text Generator
Turn plain text into 𝐛𝐨𝐥𝐝, 𝑖𝑡𝑎𝑙𝑖𝑐, 𝓈𝒸𝓇𝒾𝓅𝓉, 𝕕𝕠𝕦𝕓𝕝𝕖-𝕤𝕥𝕣𝕦𝕔𝕜, s̶t̶r̶i̶k̶e̶ and more Unicode styles to paste into bios, posts and names.
- PDF to Text / Markdown
Extract the text from a PDF as plain text or Markdown — keeping lines and paragraphs, with headings detected — to copy, search or reuse.
- Redact PDF (Black Out Permanently)
Permanently black out sensitive text and images in a PDF — the redacted pages are re-rendered so the hidden content is truly gone.