Trim Text Pro
Clean your content by removing unnecessary leading and trailing whitespace
Processed Output
Strip the invisible padding from the edges of your text
Leading and trailing whitespace is the kind of clutter you cannot see but software can. A space after a username makes a login fail, a trailing tab throws off a spreadsheet lookup, and indentation copied from a PDF makes a list ragged. Trim Text Pro removes whitespace at the edges of your text, or of each individual line, and leaves everything in the middle of a line alone.
How to trim
- Paste your content into the Source Text box. A count of characters and words appears beneath it, and Clear resets the field.
- Under Processing Options, pick Trim Start & End, Trim Each Line, or keep both, which is how they start.
- Click Clean & Trim Text.
- The Processed Output section shows the text with three figures: Original Chars, Cleaned Chars and Spaces Removed.
- Take the result using Copy Result or Save TXT, which downloads trimmed_text.txt.
Choosing the right mode
- Trim Each Line strips whitespace from the start and end of every line. Use it for lists, addresses, CSV-style rows and anything where each line is its own record.
- Trim Start & End works on the text as a whole: it removes whitespace, including blank lines, from the very beginning and the very end of the entire passage. Leave Trim Each Line off if you want to keep indentation inside the text but still tidy its edges.
Where it comes in handy
- Cleaning form values or imported cells before comparing them.
- Fixing a copied block of text that starts with several blank lines.
- Removing the indentation from lines copied out of an email reply.
- Checking whether hidden padding is inflating a character count.
What it leaves alone
Only the edges are trimmed. Double spaces between words, blank lines in the middle of the text and tabs inside a line are untouched, so pair it with a spacing or blank-line tool if you need those fixed too. Whitespace here means anything the browser regards as whitespace, which includes spaces, tabs, line endings and non-breaking spaces at the edges. Spaces Removed is the character difference between input and output, so it includes removed line ends at the edges. The trimming is done with JavaScript in your browser page.
Related Tools
Related Tools