Join text that has been broken into short lines, for example after copying from a PDF, an email or a terminal. The cleaned text updates as you type. Runs in your browser; nothing is uploaded.
Three modes
- Replace line breaks with spaces (default): every line break, and any spaces or tabs around it, becomes a single space. Leading and trailing whitespace is trimmed. Best for turning a PDF paragraph back into one line.
- Remove line breaks entirely: breaks are deleted with nothing in their place. Use this for data such as long IDs or Base64 that was wrapped across lines.
- Keep paragraph breaks: single line breaks inside a paragraph become spaces, while blank lines between paragraphs are kept (as one blank line). Best for articles and reports.
Typical uses
Cleaning text extracted with PDF to text, preparing copy for a form or CMS field that does not accept line breaks, or tidying a prompt before you paste it into an AI chat. Hyphenated words split across lines are not re-joined, so check those by hand.
Related
PDF to text · AI text cleaner · Markdown to text · Character counter · All tools
How we check
The behaviour described on this page was checked against the tool’s source code on 2026-11-19 (Asia/Colombo). Spotted a mistake? Contact us.