Trim Lines
Trim whitespace on each line by side.
Trim start, end, or both sides of every line. Empty lines stay empty.
What Trim Lines does
Trim start, end, or both sides of every line. Empty lines stay empty.
Practical limit for Trim Lines: Side: both / start / end. Max 200,000 characters. That is why output can differ from heavy desktop Text software. Read the tool-specific note again: Trim start, end, or both sides of every line. Empty lines stay empty.
How to use Trim Lines
- Keep this tab on Trim Lines (/trim-lines). Pasting into the wrong Text tool (for example Collapse Whitespace) changes the job.
- Paste or type the input Trim Lines expects. Path hint: trim lines. Trim whitespace on each line by side.
- Apply the Trim Lines action only. Remove Empty Lines is a different transform (Drop blank lines or collapse runs to one.). Trim start, end, or both sides of every line. Empty lines stay empty.
- Copy the output of Trim Lines if you need it elsewhere. Size/complexity still follows: Side: both / start / end. Max 200,000 characters.
- If the text job is actually Squeeze spaces/tabs; optional end trim., leave Trim Lines and open Collapse Whitespace.
When not to use Trim Lines
Skip Trim Lines when a neighbor tool matches better — start with Collapse Whitespace or Remove Empty Lines — or when the description already warns the job will fail. In the tool’s own words: Trim start, end, or both sides of every line. Empty lines stay empty.
Questions about Trim Lines
- What does Trim Lines do that other Text pages on this site do not?
- Trim start, end, or both sides of every line. Empty lines stay empty. Short version: Trim whitespace on each line by side.
- Does Trim Lines upload my file or text to Tool-You servers?
- No. Trim Lines runs in this browser tab. Files stay on the device. Limit note: Side: both / start / end. Max 200,000 characters.
- Should I use Collapse Whitespace instead of Trim Lines?
- Use Trim Lines when you need Trim whitespace on each line by side. Use Collapse Whitespace when you need Squeeze spaces/tabs; optional end trim. They share a category (Text) but not the same job.
- What are the limits of Trim Lines?
- Side: both / start / end. Max 200,000 characters. Also: Trim start, end, or both sides of every line. Empty lines stay empty.