Remove Line Breaks

Remove all line breaks and newlines from text instantly. Free online tool - convert multi-line text to single line.

๐Ÿ”’ Your text stays in your browser - nothing is sent to our servers
Input
0Characters
0No spaces
0Words
0Sentences
0Lines
< 1 minRead time
Result
How to Use

Three steps to get started

1

Paste multi-line text

Paste any text with multiple lines - paragraphs, lists, or wrapped text.

2

Line breaks removed

All newline characters are removed, joining lines into continuous text.

3

Copy the result

Click Copy and paste into your target field or document.

About This Tool

Join multi-line text into a single line

A line break is an invisible control character that tells software to start a new line. There are two of them in common use, and the distinction is the source of most formatting headaches: LF (line feed, U+000A, written\n) is the newline on Linux and macOS, while Windows and most internet protocols use the two-character pair CRLF (\r\n). Both are leftovers from mechanical teletypes, where carriage return moved the print head back and line feed advanced the paper.

The breaks you usually want gone are hard breaks - ones physically stored in the text because a PDF, an old email client, or a fixed-width terminal wrapped the content at 72 or 80 columns. Those are not real paragraph boundaries, and they fight with any modern layout that reflows text on its own.

Practical scenarios:

  • Cleaning PDF-extracted text, which typically breaks every 60โ€“80 characters wherever the page column ended
  • Flattening a value into a single CSV cell, since an unescaped newline inside a field will split one row into two on import
  • Reflowing quoted plain-text email that arrived hard-wrapped at 72 columns per RFC 2822 convention
  • Preparing a single-line string for a JSON field, a SQL INSERT, or an environment variable
  • Stripping the returns that make Slack, WhatsApp, or a chat box send your message prematurely

Which of the two modes should you pick?

Remove Line Breaks substitutes a space for every newline. Use it for prose, where the break sat between two whole words and deleting it outright would fuse them into thelast word. Remove & No Spacedeletes the newline with no replacement, which is what you want for text split mid-word - a PDF that hyphenated inter- / national across a line, or a long token like a URL, a hash, or a base64 blob that was chopped for display and must rejoin as one unbroken string.

Both modes normalize all three historical conventions, so \r\n,\n, and the classic Mac OS 9 lone \r are handled the same way - useful when a file has passed through several operating systems and ended up with mixed endings. If the result contains runs of doubled spaces, that means your source had consecutive blank lines; a whitespace collapse pass afterward cleans it up.

The replacement happens in your own browser with a regular expression. Nothing is uploaded, so pasting a contract clause or an internal email here carries no exposure.

FAQ

Frequently Asked Questions

Related Tools