Normalize line endings to LF, strip trailing whitespace and collapse trailing blank lines. Whitespace Normalizer is a free online tool from the ToolsRift Code Formatters collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.
Windows (CRLF) and old Mac (CR) line endings are converted to Unix LF, trailing spaces and tabs are removed from each line, and blank lines at the end collapse to a single newline.
No. Only trailing whitespace is stripped, so your code indentation and intentional leading spaces stay intact.
Consistent line endings and no trailing spaces prevent noisy diffs, satisfy linters and avoid cross-platform text glitches.