Trim Whitespace
Trim extra whitespace from text lines.
Changed lines
Removed chars
Why use this tool
01Remove leading/trailing whitespace and optionally drop empty lines.
Trim Whitespace cleans pasted text before export or comparison.
Use options to control how aggressively whitespace is removed.
How to use
02Quick checks before you copy
03Confirm the input is the format you intended.
Scan the result before using it in a document, URL, config, or message.
Copy only the output you need.
FAQ
04Can I keep empty lines?
Yes. The empty-line removal is optional.
Does it remove whitespace inside a line?
No. It only trims leading and trailing whitespace from each line, not internal spaces.
Does it work on Windows-style line endings?
Yes. CRLF line endings are normalized before processing.
Related tools
03Remove Duplicate Lines→
Remove repeated lines while preserving order.
Sort Lines→
Sort text lines alphabetically with common options.
Find and Replace Text Online→
Replace every match in pasted text — case-sensitive toggle, instant match count, nothing leaves your browser.