Trim Lines
Strip leading spaces, trailing whitespace, or trim both sides of every line in your text or code.
Preserve empty lines
Before Trim (0 chars)
1 lines
After Trim (0 chars)
1 lines outputReady to copy
Leading Whitespace
Removing leading whitespace flushes all code lines, markdown lists, and paragraphs left against margin zero, eliminating accidental indentations.
Trailing Whitespace
Trailing whitespace creates dirty Git diffs, linter warnings, and unwanted invisible bytes. Stripping trailing characters keeps your repository clean.
Exact Character Tracking
Real-time character counters track exactly how many bytes were removed, allowing instant verification before copying to production environments.