Trim Line Edges
Trim Line Edges lets you remove leading and trailing whitespace independently from every line. Enter your own values or load the worked example.
- Copy or download the computed result
- Adjust input text
- See the processing method and limits
Method and calculation
Remove leading and trailing whitespace independently from every line.
Inputs and settings
Trim Line Edges accepts Input text.
Worked example
Trim Line Edges example — Input text: "Hello world\nA second line\nHello world". Computed output: Hello world A second line Hello world
Output and limitations
This cleanup is useful for pasted identifiers with accidental padding. It trims each row independently while retaining interior spaces and every blank separator. Fixed-width reports can depend on indentation, so avoid applying it when the leading columns encode alignment.
Technical references: JavaScript Unicode normalization
Trim Line Edges FAQs
Trim Line Edges applies the following rule to your input: Remove leading and trailing whitespace independently from every line. The worked example on this page uses the same processor as the result button.
Trim Line Edges has these boundaries: Input is treated as plain text; it is never executed. Start by checking the input text field against the units or format shown.
Trim Line Edges provides this sample: Hello world A second line Hello world. Use the sample button to reproduce it, then replace the inputs with your own values.