Whitespace Tools

Trim, collapse spaces, and remove line breaks.

Informational only; verify critical results independently.

How to use

  1. Paste or type text into the input.
  2. Use trim to remove leading and trailing spaces from the whole block.
  3. Use collapse to turn multiple spaces (and tabs) into a single space.
  4. Use remove line breaks to join lines into one line (spaces replace newlines).
  5. Combine options as needed; apply and copy the result.
  6. Paste the result into forms, code, or documents.

Examples

  • Trim spaces from the start and end of a pasted paragraph
  • Collapse double spaces between sentences to single space
  • Remove line breaks from an address to put it on one line
  • Clean pasted text that has mixed tabs and spaces
  • Prepare a single-line string from a multi-line list
  • Fix CSV or TSV with extra spaces around fields (then re-split as needed)

FAQ

Tabs?
Tabs are collapsed to a single space when collapse is enabled.
Does trim affect the middle of the text?
No. Trim only removes spaces at the very start and end of the whole input.
What happens to single line breaks?
Remove line breaks turns every newline into a space, so you get one long line.
Can I undo?
Keep the original in another tab or document; we don’t store history.
Why is my text still wrapped?
The tool only changes the text; your editor or viewer may still wrap lines for display.
Is data sent to a server?
No. All processing is in your browser.

Related guides

Related tools

Last updated: 2025-09-15