Whitespace Cleaner (trailing spaces, extra blank lines)

Clean up trailing spaces, repeated spaces and blank lines, full-width spaces, tabs and invisible zero-width characters with the rules you choose. Your original text stays intact and a preview marks every change.

  • Runs in your browser (no upload)

Your original text is never changed. The cleaned version appears below (up to 200,000 characters).

Cleaning rules

Cleaned text

10 place(s) cleaned.

  • Spaces removed10
  • Spaces converted1
  • Line breaks removed4
  • Invisible characters removed1

Preview of the changes

  • · removed
  • · converted to
  • · half-width space
  • □ full-width space
  • → tab
  • ¦ invisible character
  • ↵ line break
Today's plan·· ↵ 10:00 Team meeting (online)··· 12:00 ·Lunch→ ↵ ↵ 15:00 Review the ·slides¦ 18:00··Head home↵ ··

How to use

  1. Paste your text into "Original text".
  2. Choose the rules: trailing spaces, repeated spaces, blank lines, full-width spaces, tabs and more.
  3. Check the preview (red = removed, green = converted), then copy or save the cleaned text.

FAQ

Is my original text changed?

No. The original stays as it is and the cleaned version appears in a separate box. The preview marks the changes on top of the original.

Will indentation be removed?

Not by default. It is removed only when you turn on "Remove spaces at the start of lines". Collapsing repeated spaces also leaves indentation alone.

Are tabs converted?

Tabs are kept by default so that tab-separated data pasted from a spreadsheet stays intact. You can convert them to spaces or remove them.

Notes & limitations

  • What you enter is processed only on this page and is not sent to YUCTS servers.
  • Works on plain text up to 200,000 characters. Formatting from word processors (bold, tables) is not kept.
  • Special line separators such as U+2028 and U+2029 are not treated as line breaks and are left as they are.
  • Zero-width spaces are used as word separators in some languages (such as Thai); turn that rule off for such text.