Remove Extra Spaces
Collapse squeezes internal spaces and tabs after trimming each line. Trim only strips line edges. All deletes spaces and tabs and keeps newlines. Nothing is sent to CZNull.
Rated 4.7 out of 5 based on 418 reviews
How to remove extra spaces
- Paste text in Input.
- Choose collapse to squeeze repeats, trim to cut line edges only, or all to drop every space and tab.
- Read the cleaned text. Newlines stay in every action.
- Copy the result. Nothing is sent to CZNull.
Whitespace
Spaces and tabs on each line
| Collapse | Trim each line, then squeeze runs of spaces and tabs to one space |
|---|---|
| Trim | Trim each line. Internal gaps stay. |
| All | Delete spaces and tabs. Newlines stay. |
| Tabs | Treated with spaces in collapse and all |
| Newlines | Kept in every action |
| Upload | None |
What each action does
Collapse trims a line then replaces two or more spaces or tabs with one space. Trim only runs trim on each line. All removes every space and tab character and leaves line breaks.
Space, tab, and line break
This page does not convert tabs to a width. That is tabs to spaces. Joining lines is remove line breaks. Substituting a string is find and replace. Counts are word count.
Use cases
Pasted paragraphs with double spaces, ragged indented logs you want trimmed, or packing tokens by deleting all spaces while keeping rows.
Limits
Other Unicode spaces are not listed as a separate action. Invalid input is unusual here. Work stays in this tab.
Runs in this browser
The engine reads the textarea on this device. CZNull does not receive the text.