Trim lines & remove blanks
Strip leading/trailing Unicode whitespace per line (incl. ideographic and non-breaking spaces); optional blank-line removal, inner-whitespace collapsing, left-only/right-only trimming. EOL style and trailing newline are preserved explainably.
Inputs and parameters
input— Input textsteps— Step order (comma-separated; blank = this op only)trimLeft— Trim line starttrimRight— Trim line enddropBlank— Drop blank linescollapseInnerWhitespace— Collapse inner whitespace runs to one spacelineEnding— Output line endingkeepTrailingNewline— Trailing newline (blank = mirror input)includeBom— Include UTF-8 BOM on download
Real example
apple
香蕉
café
→ apple
香蕉
café (blank line kept by default; check "drop blank lines" to remove line 3)
Limits and failure handling
Plain-text whitespace only: no HTML/CSV quote parsing, no AI rewriting, no subtitle timecodes. Blank lines are kept by default (only dedup collapses repeated blanks); inner-whitespace collapsing replaces tabs/ideographic spaces with a single ASCII space and is an explicit switch. Limits 2 MiB / 100 000 lines, rejected before processing and cancellable.
FAQ
What about CRLF or mixed line endings?
CRLF / LF / lone CR are all parsed as LF; output mirrors the dominant input style and trailing-newline state by default. Mixed input is flagged as mixed in result metadata. LF or CRLF can be forced.
Are emoji or combining marks changed?
No. Only whitespace is touched; ZWJ emoji sequences and combining marks such as e+acute are never rewritten.