Code Robo
Java Code Complience
Virtual Service
HTML Formatter Online
       Talk to EasyAssistant

HTML is the mother language for internet. It is used in all web applications. Very frequently to debug an issue we take HTML from log or view source of browser which is unformatted. Formatter is required to format the HTML captured from browser.

This Easycodeforall online HTML formater tool has the capbility of formating an HTML string and displaying in HTML format with proper indentation and colouring. Its free and available online! This HTML formater format HTML string with 4 space indentation by default. But you can choose different indentation. Just need to provide the HTML string content as input. No need to download the tool. It supports very bix HTML upto 2 MB

It has following features:

  • Provides option to remove comments while formattiong
  • Supports multiple indentation (2 space, 3 space, 4 sapce and tab)
  • Provides option for multiple line length / width
  • Display formatted HTML highlighting the HTML syntax
  • It keeps spaces and tabs between content tags such as div and span .
  • User can copy the formatted HTML and/or download it by just a button click

Click Here To Watch A Demo On It(

XML:(* Required): It is required.
Indentation : Mode :
Remove Comments. Line Width :

How It Works:
User Comments:
annonymous (2022-04-15) :
Doesn't work with special characters, should add an option for charsets
anonymous: (2022-04-21)
Thanks for using easycodeforall! We will try to add character set option in the UI.
    Reply (2023-08-17) :
Hello, I really appreciate the tool that you guys have provided. I'm using it regularly. Today i have encountered an issue: i was trying to format a large document (1 531 054 characters - minified version). The result tab is blank. I think it is related to the size of the doc. Can you lplease ook on to that or specify the max size that we can format? Thanks for the great work you are doing,

Dale (2024-04-04) :
I tried the xml format with sort, and I wonder if you might consider extra options. i.e. I want to sort elements by their attributes but I would prefer to have control over whether the attributes themselves are sorted horizontally in the output. So if the first attribute is "name" and that is most important to me, then I don't want it thrown to the end of the node def by attrib sorting. And if the nodes have alphabetically preceding attributes that have varying values I don't want to sort nodes by the sorted attributes list, but by specific nominated attributes (so if I prefer to sort "item" nodes by attribute "name" then "date" perhaps they can be brought to the front of the sorted attributes and sorting of nodes will naturally be correct.
Anyway thanks for reading this far :-)
easycodeforall: (2024-04-27)
Thanks you so much for your feedback! We will provide soon sorting option by Element or Attribute or both!

Post Your Comment:
Name :
Email ( Optional) :
Comments / Suggestion (* Required) It is required: :