Whitespace Remover
Remove or tidy spaces and tabs while keeping line breaks.
Line breaks are not changed. To remove those too, use Line Break Remover.
Remove spaces and tabs, collapse runs to one space, or tidy the ends of each line. You can include full-width spaces without changing line breaks. Your text is processed in this browser only.
For repeated lines, use Duplicate Line Remover.
How to use
- Paste your text.
- Choose a mode and whether to include full-width spaces.
- Check and copy the result.
Examples
Collapse runs · Trim each line
For “ A B ”, Collapse runs gives “ A B ”, while Trim each line gives “A B”.
FAQ
Are line breaks removed?
No. The position and type of each line break are kept. Use Line Break Remover to remove them. Line Break Remover
What is a full-width space?
It is the wider U+3000 space. Turn on Include full-width spaces to process it too.
Can I remove only tabs?
Yes. Remove tabs only leaves ordinary and full-width spaces unchanged.
How do collapse and trim differ?
Collapse reduces runs inside each line too. Trim removes spaces only from the ends of each line.
Are other special spaces removed?
No. Only ordinary spaces, tabs and optionally full-width spaces are processed. Other characters, such as non-breaking spaces, remain.
Is my text saved?
No. It stays in this browser and disappears on refresh.