Neatbo.

Clean whitespace

Tidy extra spaces and empty lines without losing useful breaks.

Browser-local processingInputTextOutputText
  1. 1Add input
  2. 2Adjust settings
  3. 3Get your result

Tool input and files are processed in this browser without being uploaded.

Your input

Inputs are kept temporarily in this tab when switching tools. Refreshing or closing clears them; large results may need to be regenerated.

⌘ / Ctrl + Enter to run
0 characters · 0 bytes
Options

Complete the required options first. You can keep the defaults for the rest.

Preparing the tool…

Before you start

Clean pasted text while keeping useful line and paragraph breaks. Remove trailing spaces, optionally reduce spaces and tabs inside lines, and choose how many blank lines to retain.

How to use this tool

  1. Paste text into “Text”, or load the example to try it.
  2. Choose trailing-space removal, space/tab collapsing, and the maximum consecutive blank lines (0 removes all).
  3. Review paragraph spacing, then copy or download the complete result.

Supported inputs and limits

Paste up to 1 MiB. This tool does not join wrapped lines into paragraphs; review the spacing before using the result.

Trailing cleanup removes tabs and Unicode space separators. Space/tab collapsing leaves other characters intact; malformed Unicode is rejected. Mixed CR, LF and CRLF breaks use the first detected style.

Worked example

Example input

A  


B	 
Example options
{}

Example output

A

B

When something does not work

Keep the source text. If paragraph gaps disappear, raise the blank-line maximum; if indentation changes unexpectedly, turn off space/tab collapsing. Shorten input above 1 MiB and retry.

Frequently asked questions

Are my files uploaded?

No. Files and tool input are processed in your browser. Moving around the site can keep a temporary workspace in the same tab. Refreshing or closing the tab clears it, so download results you want to keep.

What should I check in this result?

Lines containing only whitespace count as blank and retained blank lines become truly empty, even when trailing-space removal is off. Ordinary line breaks stay; the space/tab option only collapses runs within a line.

Documentation & further reading

Related tools