Skip to content

Remove Whitespace

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

Mode

Input

27 chars2 lines

Result

Type or paste on the left — the result updates as you type.

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.

Format references

Tool page updated: