Text Trimmer

Remove extra whitespace from text

Input

Settings

What is Text Trimmer?

Text Trimmer cleans up messy text by removing extra whitespace — leading and trailing spaces, multiple consecutive spaces, blank lines, and tabs. It handles common formatting issues from copy-pasting text from PDFs, emails, or web pages.

How to use

  1. Paste text with unwanted whitespace into the input area. Choose which types of whitespace to remove: extra spaces, blank lines, leading/trailing spaces, or tabs.
  2. Click Trim to clean the text instantly. A before/after comparison shows exactly what changed, with a count of removed characters.
  3. Copy the cleaned text or download it as a file. Re-paste and adjust options if you need a different level of trimming.

Result

Paste text copied from a PDF with double spaces between every word and extra blank lines — Text Trimmer reduces it to clean, single-spaced text.

Related Tools