AiLounge Tools

Text Cleanup & List Tools

Deduplicate lines, trim whitespace, sort, change case and count Unicode — all locally in your browser, never uploaded.Processed locally · no backend

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.

Run in browser

Inputs and parameters

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.