Line Break Remover
Remove line breaks from text and join the lines back together — space-separated by default, with paragraphs (double line breaks) preserved. Optionally strip HTML tags, capitalize each paragraph, and normalize spacing.
Input
By default, paragraphs (double line breaks) are preserved.
Choose how to handle multiple spaces/tabs in the text.
Output
Guides
Join the line breaks in a block of text back into flowing paragraphs — handy for text copied from a PDF, an email, or a script where every line wraps at a fixed width instead of at the end of a sentence.
How to use it
- Paste your text into the input box.
- By default, single line breaks inside a paragraph are joined with a space, while blank lines between paragraphs are kept — so paragraph structure survives.
- Adjust the settings below as needed, then copy or download the result.
Settings
- Remove all line breaks — join every line break, including the blank lines between paragraphs, into one continuous block. Off by default, which preserves paragraphs.
- Capitalize first letter of paragraphs — uppercase the first character of each paragraph after joining.
- Remove HTML tags — strip anything that looks like
<tag>before joining lines — useful for text copied out of a web page or HTML email. - Join lines with — the character inserted where a line break used to be: a space (default), nothing, or a punctuation mark (dot, comma, semicolon, dash, underscore, slash, pipe).
- Normalize spacing — after joining, optionally collapse repeated spaces/tabs to one ("Remove extra spaces") or strip them entirely ("Remove all spaces").
What counts as a "paragraph"?
Any run of text separated from the next by a blank line (two or more consecutive line breaks). With "Remove all line breaks" off, single line breaks within a paragraph are joined, but the blank line between paragraphs is preserved — so your paragraph breaks survive even though the wrapping inside each one doesn't.
Privacy
Everything runs entirely in your browser. Your text is never uploaded to a server.
Use it from code
From 3 credits per callREST API
curl -X POST https://api.iotools.cloud/v1/tool/line-break-remover \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"originalText": "Line one\nLine two\n\nSecond paragraph line",
"removeAllLineBreaks": "",
"capitalizeParagraph": "",
"removeHtmlTags": "",
"joinLinesWith": " ",
"normalizeSpacing": "none"
}'Swap in your own key from your account. The tool's fields are the body — no wrapper.
Ask an AI agent
Use the IOTools `line-break-remover` tool (Line Break Remover) on this input:
YOUR_INPUT_HEREPaste this at any agent connected to the IOTools MCP server, then add your input.