On Windows, I'd like to be able to edit some HTML that's been stripped of whitespace. So I would like some sort of HTML beautifier feature, syntax highlighting and tab indenting would be nice.

Not after any drag and drop / WYSIWYG features as I'd be handcoding. The lighter/smaller the better. Oh, and free/open source.

  • 1
    If you're using Firefox: There's an addon (HTML Validator) which has a "cleanup" function including re-formatting/beautifying. You could export the results to continue in a different editor then. Just saying in case there are only options without the "cleanup/reformat" included, so you could combine.
    – Izzy
    Aug 26, 2014 at 21:06
  • Although not free or open source or small, but Visual studio (and I maybe WebMatrix which is small and free) can auto-format and usually does it on paste. The free version of VS should be able to do this.
    – CobaltHex
    Aug 28, 2014 at 4:35
  • As a quick alternative (which I use), on linux, you can install tidy from the repos, then just tidy -im filename which will prettify with indents and modify the original filename. Aug 28, 2014 at 14:59

3 Answers 3


SynWrite, free and open-source. It has HTML beautify, call menu item HTMLHTML TidyTidy - reformat only.

Other HTML items in Tidy menu - for different tasks, more choices of reformatting. JS/CSS beautify also exists: just see Python plugins site.

Synwrite interface: HTML menu


You can use Eclipse + Eclipse Tidy (Marketplace):

  • free and open source
  • cross-platform
  • HTML beautifier feature:

enter image description here

enter image description here


Sublime Text has a plugin called HTMLBeautify which you can install through the Sublime Package Manager. It is a beautiful editor, but just an editor and no more.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.