Tidy whitespace Text Tools
Runs in your browser
English

Tidy spaces, tabs, and line breaks

Tidy full-width spaces, non-breaking spaces, tabs, and runs of spaces. Make the text easier to paste or reuse.

Choose settings for everyday writing, a one-line form, code that needs its spacing, or French writing that uses non-breaking spaces.

Your browser tidies the text without sending it to a server.

Tidy the whitespace

Tidy the spaces around your text. You can convert Japanese full-width spaces or keep the spacing that matters in multilingual writing or code.

How to use

  1. Paste the text you want to tidy.
  2. Pick a preset or decide what to do with full-width spaces, repeated whitespace, and line breaks.
  3. Select “Tidy whitespace” and review the summary and changes.
  4. Copy or download the result. To edit it again, use it as the input.

Examples to try

Tidy full-width spaces in Japanese

Input
Company overview  Finite Field, Inc.
Output
Company overview Finite Field, Inc.

Put text on one line for a form

Input
John   Doe\nSenior\tEngineer
Output
John Doe Senior Engineer

Keep French non-breaking spaces

Input
Bonjour !  Comment allez-vous ?
Output
Bonjour ! Comment allez-vous ?

FAQ

Where is the text I paste processed?

Your browser tidies the text without sending it to a server.

Can I change just the full-width spaces?

Yes. Turn on “Convert full-width spaces” and turn off the other rules that combine whitespace.

Can I turn several spaces into one?

Yes. Turn on “Combine repeated whitespace.” If you're working with code or a table, you can use the “Code and tables” preset.

How do I keep spaces in code and tables?

The general writing preset can combine spaces. Use “Code and tables” to keep the spaces used in code, tables, or logs.

Can I keep the non-breaking spaces used in French?

Yes. Choose “Keep French non-breaking spaces” to protect the spaces used in French while tidying other whitespace.

Can I put the whole text on one line?

Yes. Choose “Put on one line” to turn line breaks into regular spaces.

Can I share the settings on their own?

Yes. A share link includes your settings only.

Notes

  • Spaces can matter in passwords, signatures, tokens, Base64 text, code, and Markdown tables.
  • If you're working in French or another language where non-breaking spaces matter, use a preset that preserves them.
  • People who open the share link can see your settings. The link keeps your text private.