Text Formatter

Format common code, data, markup, and document languages locally in your browser.

Plain-text clean-up options

Tick the fixes you want: trim trailing spaces, collapse repeated spaces, keep at most one blank line between paragraphs, remove spaces before punctuation, add a missing space after commas, semicolons and colons, and capitalise sentence starts. With the default options, Hello , world ! followed by three blank lines and Bye becomes Hello, world!, one blank line, Bye.