Trim Whitespace

Remove leading and trailing whitespace from each line of text.

Lines: 0 | Words: 0 | Characters: 0

Lines: 0 | Words: 0 | Characters: 0

How to Use

  1. Paste your text in the input area
  2. Leading and trailing spaces will be automatically removed from each line
  3. Spaces within the text are preserved
  4. Line breaks are maintained

Use cases: Cleaning indented text, removing copy-paste artifacts, formatting code or lists.