Text copied from PDFs
PDFs often end every visual line with a break. Join them so the text flows properly in your document again.
Paste text that is split over many short lines, such as something copied from a PDF or an email, and get it back as one clean block. You can replace each break with a space, a comma or your own text, keep real paragraph breaks and tidy spaces at the same time. Your text stays in your browser.
What line breaks are and how to get clean text out of broken lines.
A line break remover takes text that is split over many lines and joins it into one continuous line or paragraph. It is the quick fix for text copied from PDFs, emails, chat apps and terminals, where every line ends with a hard return.
This tool replaces each line break with a space, nothing, a comma or any text you choose. You can keep real paragraph breaks, tidy up spaces at the same time and see how many breaks were removed.
PDFs often end every visual line with a break. Join them so the text flows properly in your document again.
Turn a column of names, IDs or email addresses into a comma separated line for a form, a query or a spreadsheet cell.
Remove the hard wraps that mail clients and chat apps add so the text reflows on any screen width.
A line break is a real character in the text: LF on Linux and macOS, CRLF on Windows and a lone CR in very old Mac files. This tool treats all of them, plus the Unicode line and paragraph separators, as line breaks. Soft wrapping, where your editor folds a long line to fit the window, adds no character, so there is nothing to remove.
A paragraph break is usually two line breaks in a row, which looks like a blank line. With Keep paragraph breaks switched on, each block of text between blank lines is joined on its own and the blocks stay separated by one blank line. With it off, every line break is replaced, blank lines included.
Rejoin words split by a hyphen is for text hyphenated by a page layout, such as inter at the end of one line and national at the start of the next. It removes the hyphen and joins the pieces when the next line starts with a lowercase letter. Leave it off if your text has genuine hyphenated words at the end of lines, like well and known.
Your text is processed in your browser by JavaScript on this page. It is not uploaded, stored or logged, and the downloaded file is created on your device.
Very large texts of several megabytes can feel slow on older phones. Poems, addresses and code rely on their line breaks, so review the result before you use it. Hyphen rejoining is a best guess based on a lowercase letter on the next line.
Paste your text into the box. The result appears straight away with every line break replaced by a space. Copy it or download it as a text file.
Switch on Keep paragraph breaks. Each block of text separated by a blank line is joined on its own, and a single blank line is kept between the blocks.
Yes. Choose Comma for a comma and a space, Nothing to join the text with no gap, or Custom to type any separator such as a pipe, a semicolon or a dash.
A PDF stores text positioned line by line rather than as flowing paragraphs, so copying it often gives you a hard return at the end of every visual line. Removing the breaks lets the text flow again.
When a line ends with a hyphen and the next line starts with a lowercase letter, the two parts are joined into one word without the hyphen. It is meant for text hyphenated by a page layout, so turn it off if your text has real hyphenated words at the end of lines.
Yes. It handles CRLF, LF and CR line endings, as well as the Unicode line and paragraph separators, so text from any system is cleaned the same way.
Only if you ask it to. Trim each line removes spaces at the start and end of every line, and Collapse repeated spaces turns runs of spaces and tabs into a single space. Both are on by default and you can switch them off.
No. The conversion happens in your browser, and your text never leaves your device.
The homepage features dozens more free tools that don't require an API key.
No matching question.
Share your thoughts on this tool with other visitors.