Your result will appear here
Fill in the details on the left and press the button. You will see the answer right here, without the page reloading.
About this tool
Replace runs of spaces, tabs and special space characters with a single space, trim line edges, and optionally drop empty lines. Your text is processed for this request only and is never stored.
Frequently asked questions
What does it remove?
Repeated spaces and tabs, and extra spaces at the start and end of lines, so the text is tidy.
Will it change my line breaks?
Follow the options shown on the tool. Line breaks are kept unless you choose to remove empty lines.
Is it safe for code?
Be careful with code where spacing matters, such as Python or Markdown. Use a formatter for code instead.
Guides and tutorials
Related tools
Word Counter
Count words, characters, sentences, paragraphs and reading time in any text.
Markdown Preview
Write Markdown and see the formatted result as you type. Copy clean HTML or download it. Done in your browser: your text is never uploaded.
Character Counter
Count characters with and without spaces, letters, digits, lines and bytes.
Case Converter
Change text to UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case and more.