Happytails.aiFree tools. No account needed.

Trim text

Remove spaces from the start and end of each line.

Spaces inside a line remain untouched. Every line is trimmed separately, including tabs and other surrounding whitespace. Blank lines are retained. Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.

Your result

How to use Trim text

  1. Enter your text in the input field.
  2. The result updates as you type. Adjust the available settings if needed.
  3. Review the result, then use Copy result or a download link when available.

What to expect

Remove spaces from the start and end of each line. Spaces inside a line remain untouched. Every line is trimmed separately, including tabs and other surrounding whitespace. Blank lines are retained.

Try a small example

  A  
 B