Remove extra spaces

Trim lines, collapse repeated spaces and remove blank lines.

Processed on your device
Open a text file
Open a local UTF-8 text file5 MiB maximum. Files open locally and wait for Run tool.Or drop a file here.

Result

How to use this tool

  1. Select the whitespace operations to apply.
  2. Line trimming does not join separate lines.
  3. Copy the cleaned result, which updates as you type.

Things to know

  • Processing happens on your device. Check the result before replacing your original data.
  • Each text input accepts up to 5 MiB. Output is limited to 25 MiB and combined text settings to 1 MiB.
  • Line-based modes accept up to 100,000 lines, including a trailing empty line.

You might also need

More in text & lists