Trim Every Line

Need to remove leading and trailing whitespace per line? Trim Every Line does it in the browser, in a couple of clicks. All counting, matching and rewriting happens in JavaScript on the page itself, so even long confidential drafts stay in your browser. It is used most by students checking an essay against a strict word limit. Works on documents of tens of thousands of words without lag. Nothing is gated: no signup wall, no trial period, no upgrade prompt.

Key features

  • Works on documents of tens of thousands of words without lag.
  • Line endings from Windows, macOS and Linux are all understood.
  • Works on desktop, tablet and phone — no separate app to install.
  • Built to do one job properly rather than twenty jobs badly.

How to use Trim Every Line

  • Paste your text: Paste or type into the box above. It accepts anything from a sentence to a full manuscript.
  • Choose what you need: Set the options that match your task — the result updates as you change them.
  • Copy the result: Copy the output with one click and paste it wherever you are working.

Frequently asked questions

  • Is my text stored when I use Trim Every Line? — No. Trim Every Line processes the text in the page itself. Nothing is transmitted or saved, which matters for unpublished or confidential writing.
  • Is there any signup? — None. Trim Every Line has no account, no email capture and no usage cap.
  • Can I use it offline? — Once the page has loaded, yes — the work happens locally, so a dropped connection will not interrupt you.
  • Will formatting be kept? — No. Pasted content is treated as plain text, so bold, colours and links are dropped.

Related text tools