DevKitBase
ToolsAboutPrivacy

Remove line breaks when the paste came from a PDF or email

Modes: join to one line; collapse blank lines; trim each line; normalize spaces.

chars: 29
Input
Output

When to use

Fixing broken paragraphs from email, squashing logs, or preparing one-line regex tests.

Examples

Input
line one
line two
line three
Output
line one line two line three

How it works

Replaces \r?\n by mode; optional collapse of multi-spaces.

Common pitfalls

  • You may destroy meaningful line structure in code/CSV.
  • Windows \r\n vs Unix \n both appear.
  • Paragraph vs hard-break intent differs — choose mode carefully.

How this differs

Line cleanup only. Diff compares two texts; Formatter pretty-prints JSON with new lines.

FAQ

Keep paragraph breaks?
Mode: collapse only single newlines.
Windows vs Unix newlines?
Normalize to `\n` first.
Uploaded?
No.
Related?
Diff Checker, Regex Tester.

Related tools

Runs in your browser. Nothing is uploaded. Not a security product —hashes and JWT decode are for debugging, not password storage or auth advice.