Writing utility
Whitespace Cleaner
Remove invisible formatting problems without rewriting the words. Clean spaces, tabs, indentation, and blank lines while keeping the original text available for review.
Original text
Paste the text and choose only the spacing rules you need.
Cleaned text
Review the result before replacing or sharing the original.
Before
After
No cleanup has been run yet.
Your text is processed directly in this browser by this tool. This tool does not upload the text you enter to Mycelgrid for processing.
How to use Whitespace Cleaner
- Paste the text containing spacing or blank-line problems.
- Choose the cleanup rules that fit the source.
- Keep Preserve line indentation enabled when indentation may carry meaning.
- Select Clean whitespace.
- Review the before-and-after statistics and the cleaned text.
- Copy the result or download the local TXT file.
Examples
Clean text copied from a PDF
Remove trailing spaces, repeated spaces, and unnecessary blank lines without changing the words.
Normalize pasted AI output
Convert tabs, reduce extra blank lines, and preserve meaningful indentation before saving the text.
Prepare plain-text notes
Trim invisible line-end characters and remove blank lines at the end of a document.
Frequently asked questions
Does this rewrite my sentences?
No. The tool changes selected whitespace characters only. It does not change wording, punctuation, capitalization, spelling, or grammar.
What does Preserve line indentation do?
When enabled, the tool keeps leading spaces at the start of non-empty lines. This is safer for outlines, code-like text, nested lists, and sources where indentation may carry meaning.
Can repeated spaces inside indentation be collapsed?
No when Preserve line indentation is enabled. The cleaner separates each line's indentation from its text body and collapses repeated spaces only in the body.
Why are cleanup statistics shown?
They make invisible changes inspectable. You can compare characters, lines, blank lines, tabs, repeated spaces, and trailing-space lines before using the result.
Is my text uploaded?
No. This tool processes the entered text in the browser and does not upload it to Mycelgrid for processing.
Method and limitations
The cleaner normalizes line endings, optionally converts tabs to a selected number of spaces, trims line starts or ends, separates preserved indentation from line content, collapses repeated body spaces, reduces repeated blank lines, and removes trailing blank lines.
Whitespace can carry meaning in source code, Markdown, YAML, tables, poetry, and fixed-width documents. Use Markdown Cleaner or another structure-aware utility when formatting rules are significant, and review the result before replacing the source.
The original pasted text remains in the input surface until you clear or replace it.