When a list has been copied from a document or assembled from several emails, its entries can contain leftover indentation, tabs, and blank rows. The TinyToolbox Whitespace Remover trims the ends of each line, replaces internal runs of whitespace with one space, and removes empty lines. The surviving entries stay in their original order.
This works well for a straightforward list of room names, labels, or checklist items. First confirm that every nonblank line is an item you want to keep and that its internal spacing is incidental. A list of display labels and a tab-separated table can look similar in a text box, but they need different handling if the tabs delimit data.
Clean a small list before running the full paste
- Open the Whitespace Remover.
- Paste a short sample into Input text.
- Select Run tool.
- Compare the resulting lines with the source.
- Select Copy result when the output matches your intent.
For example, start with this list. The first line is indented, the second contains three spaces between its words, and the last entry begins after a blank line.
North gate
East entrance
West loading bay
The output is:
North gate
East entrance
West loading bay
The tool keeps the three entries, their capitalization, and their order. It removes the first line’s indentation, changes the three internal spaces to one, and removes the separator row. Save the source if someone will need to compare the result with the document it came from.
Understand the three changes applied to each list
The tool first splits the input at line breaks. It accepts line feeds and carriage-return-plus-line-feed pairs as separators. It trims whitespace from the start and end of each line. Then it replaces each remaining continuous run of whitespace with an ordinary space. Finally, it discards entries that are empty after trimming and joins the rest with line feeds.
| Source pattern | Result |
|---|---|
Two spaces before Gate 2 |
The line starts directly with Gate 2 |
A tab between Gate and 2 |
Gate 2, with one ordinary space |
| Three spaces between words | One ordinary space between them |
| A line containing only spaces or tabs | The line disappears |
| Two nonblank lines separated by a blank line | Both entries remain on separate adjacent lines |
The cleaner does not remove spaces between all words. A label such as West loading bay still has two word separators. It also leaves punctuation attached to whichever side it was already on. For example, Item , ready becomes Item , ready, with a space remaining before the comma. Editing punctuation is a separate step if the label needs to follow a publication style.
A long line that merely wraps in the input box remains one line. If you press Enter inside a label, the resulting two nonblank lines stay separate. Check the source in a text editor if it is unclear whether a visible break is a real newline or simply an on-screen wrap.
Notice when invisible spaces carry meaning
A copy from a web page can include nonbreaking spaces. The cleaner treats these as whitespace and replaces an internal run with an ordinary space. For a plain list, that may be the desired result. In a designed document, a nonbreaking space could deliberately keep a number and its unit together. Cleaning that text can change where a line is allowed to wrap even though the words look the same immediately afterward.
Some invisible characters are outside the whitespace rule. A zero-width space, for example, can survive. If an identifier still fails to match after cleanup, examine the actual characters in a suitable text editor. Comparing two visible renderings can miss punctuation or Unicode differences that matter to a search or import result.
One useful test is to copy a troublesome label into an editor that can display whitespace and compare it with a manually typed copy. If the number of visible letters is the same and the labels still differ, check tabs, nonbreaking spaces, and other invisible characters separately. The Character Counter can help confirm whether two versions have different lengths, though a matching count by itself cannot prove the characters are identical.
Keep formatting that describes data or structure
Suppose a copied list contains names in its first column and room numbers in its second. If a tab separates those values, changing the tab to a space removes the original column boundary. That matters when a name itself includes a space. West hall followed by a tab and then 14 will appear as West hall 14, where all the spaces look alike. Clean each column separately in a spreadsheet when you need both fields to remain available.
Indentation can also identify levels in an outline or carry meaning in code. Cleaning a block changes the position of each line’s first nonwhite character, even when the words on that line are unchanged. Use a copy of the data and inspect a sample before applying this operation to anything that relies on indentation, such as a configuration file. For a numbered plain-text checklist that already includes its numbers, the labels themselves stay, while their indentation is removed.
For prose, blank lines may separate paragraphs. The cleaner removes them and leaves one line break between the surviving lines. If paragraph boundaries need to remain, process one paragraph at a time and keep its separators in the destination document. This approach also works for a checklist divided by topic, where a blank line helps readers see which items belong together.
Clean a handoff list and review the remaining duplicates
Imagine two teams contribute labels for the same facilities list. The first team writes West gate, and the second types West gate . After cleanup, both display as West gate. Both still appear in the result because this operation changes spacing only. That gives you a chance to review which repeat entries actually refer to the same place.
If you need distinct labels and the two lines really are duplicates, pass the cleaned list to Remove Duplicate Lines. It keeps the first exact match. Do that after cleanup if extra whitespace should be ignored in the comparison. Removing duplicates before cleanup would keep the spaced version and the plain version as distinct strings. Keep the original list if you still need to know how many times an item was submitted.
Capitalization is another separate decision. West gate and west gate remain different after whitespace cleanup. If the target system compares names without regard to case, decide how to normalize comparison keys while preserving readable display labels. Apply one rule consistently and review exceptions such as two numbers with different padding that identify distinct locations.
Verify the result before replacing the source
Check the first and last entries and inspect the places where blank lines or indentation disappeared. Compare the number of surviving items with what you expected. A blank line containing only a tab should have gone away, while an item containing a digit or punctuation should remain. If a meaningful separator is missing, restore it in the final document or clean the groups individually.
For a pasted import, test a few representative lines before using the whole set. Choose one with an internal tab, one with ordinary spaces, and one that used to sit next to an empty row. Reopen the imported result and check where each value went. A successful paste can still put two fields into one column if the cleanup removed a delimiter.
Keep the new copy tied to its intended use. A note such as “room labels trimmed, internal spacing reduced to single spaces, blank rows dropped, order preserved” explains the changes a colleague will see. If another team needs the layout, indentation, or exact bytes of the original, the source remains available. For the next revision, start from the newest source and check the same representative lines so changes in the export do not get mistaken for formatting changes.