Developer
Developer

Whitespace & Line Ending Fixer

Paste code or open a file to fix line endings, indentation and stray whitespace.

Private by design

Your inputs stay on your device and are not sent to our servers. Optional usage analytics does not receive your files or tool inputs.

Preparing tool

How to use Whitespace & Line Ending Fixer

  1. Paste your text or open a file (open a file to keep its original line endings).
  2. Choose the line ending, indentation and cleanup options.
  3. Check the change summary, then copy or download the result.
Read the detailed guide →

What are the limits of Whitespace & Line Ending Fixer?

Browsers turn pasted line breaks into LF, so open a file if you need to detect CRLF in it. Tab conversion works on leading indentation unless you choose all tabs. It does not understand code, so it may touch spaces inside multi-line strings. Your text stays on your device.

YOUR BROWSER, YOUR CHOICE