Writing & text

Trim each line

Remove leading and trailing whitespace from each line of pasted text.

How to use
Free. Always.Inputs stay in your browserNo sign-up

Your saved tools stay in this browser.

Trim each line — workspace

Loading your tool…

How to use: Trim each line

  1. Start with the example, or replace it with your own values.

  2. Review Text or data, then select “Get result”.

  3. Read the result, then copy or download it. Edit any input to try again.

What you can do

  • Remove leading and trailing whitespace from each line of pasted text.

What you get

  • A result you can review, copy or download. Numeric tools show labeled calculations; text tools show the transformed output.

What you need

Text or data
Enter or paste your value, or start with the example.

Try an example

Text or data
  hello WORLD.

Visit https://example.com 👋  
Try it in the tool

Good to know

  • Use a current browser with JavaScript enabled. Available formats and speed depend on your browser, device and input size.

Your work stays on your device

Your files and entered values are processed in your browser and are not uploaded for processing. The website and any required processing engines still download from the site.

Questions & answers

Is Trim each line free?

Yes. Trim each line is free to use and does not require an account.

Are my files or entered values uploaded?

Your files and entered values are processed in your browser and are not uploaded for processing. The website and any required processing engines still download from the site.

What result can I save?

A result you can review, copy or download. Numeric tools show labeled calculations; text tools show the transformed output.

What should I check before using the result?

Use a current browser with JavaScript enabled. Available formats and speed depend on your browser, device and input size.

Keep going with another tool

Word counter Check words, characters and reading time at a glance.Case converter Switch between uppercase and lowercase in a click.Text cleaner Tidy extra spaces and blank lines. Keep your paragraphs.Sort lines Put lists in alphabetical, reverse or natural number order.Remove duplicate lines Keep one copy of each line, in its original order.