Remove Line Breaks
Remove line breaks from text copied from PDFs and emails. Keep paragraph breaks, rejoin hyphenated words and trim extra spaces — free and private.
🔒 Runs entirely in your browser — nothing is uploadedFix text with hard line breaks
When you copy text out of a PDF, an e-book, a plain-text email or a terminal window, every visual line often ends with a hard line break. Pasted into a word processor, a web form or a content management system, the text keeps breaking in the wrong places and refuses to reflow. This tool removes those unwanted line breaks and replaces each one with a space, turning broken lines back into flowing sentences. It is also handy for preparing text for translation tools, spreadsheets, social media posts and prompts, where stray line breaks cause odd results.
Choose Keep paragraph breaks to preserve the structure of the original. Lines within a paragraph are joined, but wherever the source has a blank line, the output keeps a clean paragraph break. Several blank lines in a row are reduced to one. Choose Remove all line breaks when you need everything on a single line, for example for a CSV cell, a meta description or a command-line argument.
Rejoin hyphenated words and tidy spacing
Typeset documents frequently hyphenate long words at the end of a line. Simply removing the line break would leave fragments such as "infor- mation". With Join words hyphenated at line ends enabled, a hyphen directly followed by a line break and a lowercase letter is removed, restoring "information". If the next line starts with a capital letter or a digit, the hyphen is kept because it is probably part of a real compound such as "Jean-Paul" or "COVID-19". Hyphens in the middle of a line are never touched.
Trim extra spaces collapses runs of spaces and tabs into a single space and removes spaces at the start and end of each paragraph, which is useful because PDF text often contains indentation and padding. Turn it off if you need to keep the original spacing exactly.
Private and instant
All processing happens locally in your browser as you type, and the counter under the output shows how many line breaks were removed. Your text is never uploaded, so you can safely clean contracts, research papers, private emails and other sensitive documents.
How to use
- Paste your textAdd text copied from a PDF, email, e-book, terminal or subtitle file.
- Pick a modeKeep paragraph breaks between blocks of text, or remove every line break for a single line.
- Tune the cleanupRejoin words hyphenated at line ends and collapse extra spaces if needed.
- Copy the resultCopy the reflowed text or download it as a .txt file.