Trim Whitespace from Each Line

Remove the extra spaces and tabs at the start and end of every line in your text.

1 Paste or type your text

2 Your answer

Your answer shows here as you type.

How to use the Trim Whitespace from Each Line

  1. Paste your text.
  2. Read the cleaned-up lines in the result.
  3. Copy the result from the box.

Frequently asked questions

Does it remove spaces between words?

No. It only removes spaces and tabs at the start and end of each line.

Is my text uploaded?

No. It is cleaned up in your browser.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.