Clean text & lists

Remove Line Breaks & Clean Text Online

Join unwanted line breaks, preserve paragraphs, and tidy spaces or a list in one workspace.

Work stays in your browserLocal tool processing

Add copied text and choose cleanup rules. Review changes before replacing your draft.

Work stays on this deviceInput is processed in this page, not uploaded or saved. Downloads are yours to keep; refreshing clears the workspace.
Your workspace

Choose exactly what changes

Each input: up to 1 MB of UTF-8 text and 20,000 lines. Line endings are normalized to LF.

Text settings

Options
Keep two or more line breaks as paragraph separators. No paragraph or hyphenation guessing.
After selected cleanup; keep the first copy. Lines must match exactly.
Ctrl / ⌘ + Enter to run

Result

Your cleaned text

Run the task to review a counted result here.

Load the example to try the complete workflow.
Limits and next steps

Cleanup cannot infer meaning, recover missing words or reliably undo PDF hyphenation. Significant whitespace in code, poetry and tables should be preserved. Copy/download the reviewed text, or change the options and run again.

Reset this workspace?

This clears your input and result. Keep your draft if you still need it; chosen options remain selected.

Get a result you can use

Instructions and examples

From input to output

  1. Paste copied text or load a UTF-8 TXT file.
  2. Choose a task in Text settings and review the options that appear.
  3. Select Clean text, compare the result and change counts, then copy or download TXT.

Settings and result behavior

  • Joining removes isolated line breaks but keeps paragraph gaps. Trimming and collapsing spaces can alter meaningful layout.
  • Other tasks remove duplicates or blanks, sort, reverse, add affixes or remove chosen characters. Duplicate matching is exact; sorting uses UTF-16 order.
  • Prefix and suffix apply to every line, including empty lines, and can expand the output.

A worked example

Input
A clear result
starts with useful tools.

Keep this paragraph.
Settings
Clean copied text; Join single line breaks on; keep blank lines.
Expected result
A clear result starts with useful tools.

Keep this paragraph.

Supported input and limits

Type or paste text, or use the TXT import control for a UTF-8 text file. PDF and Word documents cannot be imported into this text workspace. Text output is capped at 4 MB.

Cleanup follows your selected rules, not the original document’s meaning. Review poems, tables and hyphenated words. Up to 1 MB and 20,000 lines.

If the result is unexpected

  • If a table or poem loses structure, switch off joining and spacing changes, or select only the needed task.
  • Hyphenated PDF lines need manual review. The tool cannot infer whether a hyphen is part of the word.

Check before using the result

Read paragraphs and names, check meaningful spaces and confirm nothing was discarded. A long preview is shortened; copy/download contains the complete result.

Report a problem with this tool. Include a nonsensitive example and your browser details.

Questions about this tool

Can I remove PDF line breaks but keep paragraphs?

Paste selectable text copied from the PDF, then enable Join single line breaks. Blank-line paragraph separators remain. Check tables, poetry and hyphenated words manually; this workspace does not import PDFs or perform OCR.

Should I join lines before removing duplicates?

For one-item-per-line lists, keep line joining off. Choose the deduplication mode and review whitespace rules so that each line remains a separate item.