Trim Whitespace from Lines
Clean up copied lists with padding at the start or end of individual lines.
Result
How to use Trim Whitespace from Lines
- Paste your source text in the input box.
- Select Convert to generate the output.
- Review the output before copying it.
How it works
Clean up copied lists with padding at the start or end of individual lines. Trim leading and trailing whitespace separately on each line.
Formula or processing rules
Trim leading and trailing whitespace separately on each line.
Worked example
A line containing two leading spaces before alpha prints as alpha.
| Measure | Value |
|---|---|
| Source text | alpha beta |
| Result | alpha beta |
Pros and cons
Pros
Clean up copied lists with padding at the start or end of individual lines. The sample provides an immediate check of the expected output.
Cons
Intentional indentation is removed. Avoid this tool when leading spaces represent nested structure.
Troubleshooting
Check the input format and compare your case with the built-in sample. Intentional indentation is removed. Avoid this tool when leading spaces represent nested structure.
Frequently asked questions
How do I use the text I get back?
Copy the output into the document, list, or compatible tool where you need it.
How does the transformation work?
Trim leading and trailing whitespace separately on each line.
Can I try a sample first?
A line containing two leading spaces before alpha prints as alpha.
What should I check before using the result?
Intentional indentation is removed. Avoid this tool when leading spaces represent nested structure.
Is my input stored by the tool?
The transformation is computed in the open page. The tool does not save the submitted text.