QQuickKit

Whitespace Cleaner

Clean up messy whitespace: trim line edges, collapse multiple spaces, remove blank lines, strip indentation, or convert full-width spaces to regular spaces.

About This Tool

Clean up messy whitespace in any block of text using five independent options. Trim leading and trailing spaces from each line, collapse multiple consecutive spaces into one, remove blank lines, strip all leading indentation, or convert full-width spaces (used in CJK text) to standard half-width spaces — apply any combination in one pass.

Features

  • Five Independent Options — Trim line edges, collapse spaces, remove empty lines, remove indentation, convert full-width spaces — mix and match.
  • Non-destructive by Default — No options are applied unless you explicitly enable them. Your text is never altered without intent.
  • Full-width Space Support — Detects and converts U+3000 ideographic spaces ( ) commonly found in CJK documents.
  • Live Preview — Output updates instantly as you toggle options.

FAQ

What is a full-width space?
A full-width space (U+3000, ideographic space) is a wide space character used in Chinese, Japanese and Korean typography. It looks like a regular space but is a different Unicode code point and can cause issues in code or data parsing.
Will "Collapse spaces" affect spaces inside words?
Yes. It replaces any run of consecutive spaces (and tabs) anywhere on a line with a single space — including spaces within text, not just at the start or end.
What is the difference between "Trim line edges" and "Remove indentation"?
"Trim line edges" removes spaces from both the start and end of each line. "Remove indentation" only strips leading whitespace (start of line), preserving any trailing spaces. Use "Trim line edges" for general cleanup, "Remove indentation" when you only want to unindent code.