Text Tool
Trim Text
Trim Text helps clean or transform pasted text quickly in the browser. Use it online on EasyTools99.
Tool area
Everything runs in the browser.
Reference results
| Input | Result |
|---|---|
SKU-204 | SKU-204 |
Alpha Beta
Gamma | Alpha Beta
Gamma |
REF-9
| REF-9 |
Room A | Room A |
Room A
Room B | Room A
Room B |
Market Street
| Market Street |
How it works
Trim removes whitespace, including tabs and line breaks, from the two ends of the entire input. Internal whitespace stays in place. Use the function on one field before comparison. For multiline input, it acts only at the outer edges of the whole block.
Using the result
For a stock import, compare the cleaned reference with the source value retained in your sheet. If removing internal spacing would change the reference, use an edge-only operation. A block with several lines is treated as one value, so whitespace on interior lines stays in the resulting text. Review fields that become empty separately from the external-space cleanup: an empty result may represent either missing data or a field that was intentionally blank. Keep leading zeros intact by storing the reference as text.
Worked examples
- Clean a product code copied from a spreadsheet cell. A clerk checks the cleaned code against the stock system before importing it.
- Preserve the spacing inside a block of text. A developer verifies that interior spaces in a fragment spanning several lines are still present.
- Strip invisible padding from a reference copied out of a log. An operator compares the cleaned reference with the stored record.
Common mistakes
- Indentation before the first non-whitespace character is removed.
- To trim each line independently, process each line on its own.
- Keep the original if leading indentation carries structure.
FAQ
How do I remove leading and trailing spaces?
Paste the text and copy the trimmed result.
Does trim remove double spaces between words?
Whitespace between words is preserved.
What if the input contains only whitespace?
Removing whitespace from the outer edges leaves an empty result.
