Trim Whitespace

Remove leading/trailing spaces, collapse repeated spaces or delete blank lines.

About this tool

Cleans pasted text from PDFs, emails and spreadsheets. Trim strips each line ends; collapse also squeezes repeated spaces and tabs.

Related: JSON Formatter & Validator · Base64 Encode & Decode · URL Encoder & Decoder · SHA-256 / SHA-1 Hash Generator · Unix Timestamp Converter