Skip to content
عُدّةUDDAH

Trim line whitespace

Remove spaces, tabs and invisible spaces from the start and end of each line or from the two ends of the whole text, without touching what is between words.

In your browser

How to use

  1. 1Paste the text or list.
  2. 2Choose the scope: each line or the whole text, and the side: start, end or both.
  3. 3Copy or download the trimmed text.

FAQ

Are spaces between words removed?

No, only spaces at the ends of lines are removed. To collapse repeated spaces between words use the remove extra spaces tool.

Is Trim line whitespace free?

Yes, Trim line whitespace is completely free and needs no account.

Are my files uploaded to a server?

No. The tool runs entirely inside your browser, and your files and text never leave your device at any point.

Does it work on mobile?

Yes. It works in any modern browser on a phone or computer, with no app to install.

Related tools

Word counterCount words, characters, sentences, paragraphs and reading time for any Arabic or English text, with the most frequent words.
Case converterConvert English text to uppercase, lowercase, Title Case, camelCase, snake_case and more in one click.
Remove duplicate linesRemove duplicate lines from any list while keeping the first occurrence, ignoring letter case, spaces and diacritics if you like.
Sort linesSort lines alphabetically in Arabic and English, naturally by numbers, by length, or reverse or shuffle them.
Text cleanerClean text of extra spaces, empty lines, HTML tags, emoji and links, and normalize punctuation.
Find and replaceSearch the text and replace a word or phrase everywhere, with case matching, whole word and regular expressions.