HTML Formatter
Beautify and indent HTML markup.
OpenClean up line endings and stray whitespace in Markdown without changing a word of the content.
Add a README, changelog or docs page to the input.
CRLF becomes LF and trailing spaces are removed.
Three or more line breaks shrink to a single blank line.
Copy the cleaned text or download formatted.md.
A README has been edited on Windows and macOS, pasted from a chat thread and touched by three contributors. The pull request diff is full of whitespace noise. Running the file through a quick normalizer gives everyone a clean baseline.
The Markdown formatter makes four changes and nothing else. Windows CRLF line endings become LF, trailing spaces and tabs at the ends of lines are removed, runs of three or more line breaks shrink to a single blank line, and the file ends with one newline. Headings, list markers, emphasis, links and code are left exactly as written; it does not renumber lists or reflow paragraphs. Output appears as you type and downloads as formatted.md.
The classic mistake: Markdown treats two trailing spaces as a hard line break, and this tool removes them. If you rely on that, end the line with a backslash instead, which survives the cleanup. Blank-line collapsing also applies inside fenced code blocks. Check the rendered result in the Markdown Preview, and if you are adding tabular data, the Markdown table generator produces aligned pipes. To confirm that only whitespace changed, compare old and new in the text diff tool.
Your draft is cleaned with a handful of string replacements in this page and is never stored or uploaded.
Keyboard shortcut
Answers for this tool. For site-wide help, open the FAQ hub.
No. List markers, numbering and indentation are untouched. The tool only handles line endings, trailing whitespace and blank lines.
They are treated like any other text, so three or more empty lines in a fenced block become one. If exact spacing inside a code sample matters, check that block after formatting.
Only trailing spaces at the end of table rows are removed. Pipes, alignment colons and padding inside each row stay as they were.