Fixing text copied from a PDF
PDF copy often breaks every visual line. This joins them into flowing paragraphs without the words colliding.
Remove line breaks from text in your browser, collapsing it into a single line without merging words.
Maintained by Roshan.
Converts text with line breaks to one line in this tab, with nothing sent anywhere.
Find related browser-local tools for nearby tasks without starting another search.
Browse all text toolsText often arrives broken across lines when you want it in one continuous flow - a paragraph copied from a PDF where every line ends with a hard break, an email quote, a code comment reflowed by an editor, a message pasted from a narrow column. Removing those breaks sounds like simply deleting the newlines, but doing that naively causes a specific, annoying problem: where a line ended without a trailing space, the last word of one line runs straight into the first word of the next. This tool collapses each break to a single space instead of deleting it, and tidies the spacing around it, so the text becomes one clean line with the words correctly separated rather than jammed together.
PDF copy often breaks every visual line. This joins them into flowing paragraphs without the words colliding.
A reply quote wrapped at a narrow width becomes one readable line again.
Because where a line had no trailing space, deleting the break fuses two words. Replacing the break with a space avoids that.
No. It joins everything into a single line. Keeping paragraph gaps is a more selective task.
No. Whitespace created by the join is collapsed to single spaces.
No. It only reflows the text; the words are untouched.
Remove extra spaces from text in your browser, collapsing runs and trimming each line.
Sort lines of text alphabetically in your browser, with natural numeric ordering and a reverse option.
Remove duplicate lines from text in your browser, keeping the first occurrence and the original order.