Remove Whitespace

Trim spaces around each line or remove all whitespace, including tabs and line breaks. Choose the cleanup you need.

Convert in your browser · No sign-up

Trim mode preserves internal spaces and line boundaries. Remove-all mode also joins words and lines.

Up to 100,000 UTF-16 units per input and 1,000,000 per result. See the supported formats and examples below.

How to use

  1. Trim spaces around each line or remove all whitespace, including tabs and line breaks. Choose the cleanup you need.
  2. Choose the mode or options, then run the tool.
  3. Review the result, then copy or download the TXT file.

Example

  Hello   world  → Hello   world (trim)

Details and limitations

Trim mode preserves internal spaces and line boundaries. Remove-all mode also joins words and lines.

Text stays in your browser; it is not sent to a conversion server.

FAQ

Remove Whitespace — What are the supported inputs and limits?

Trim mode preserves internal spaces and line boundaries. Remove-all mode also joins words and lines.

Format references

Tool page updated: