Text cleaner

Paste messy text, get a clean version — trimming and empty-line removal happen in your browser.

Always applied

  • Remove spaces and tabs at the start and end of each line
  • Remove empty lines (lines that are empty or contain only whitespace)

How to use

  1. Paste your text into the box above.
  2. Choose any optional rules (by default, only line trimming and empty-line removal are applied).
  3. Select “Clean text”, compare the before/after previews, then copy or download the result.

Example

Input

  Hello world   

Nice to meet you.   
  
Bye!

Output

Hello world
Nice to meet you.
Bye!

4 lines became 3; trailing spaces were trimmed. Case, accents and punctuation were left untouched.

Scope and common mistakes

  • Your text is never rewritten silently: letter case, accents and Unicode forms are preserved as-is.
  • Full-width spaces (U+3000) count as whitespace, but the “squeeze spaces” rule only targets regular spaces (U+0020).
  • This tool does not deduplicate lines — use the line dedupe tool for that.
  • Very long inputs may take a moment; nothing is uploaded either way.

You may also need: