The only reason the very keyboard unfriendly WordPress Gutenberg editor can be a block editor is that it inserts tons of HTML comment elements starting with <!-- wp: in the code like for instance <!-- wp:paragraph -->…<!-- /wp:paragraph -->.
That makes the HTML even heavier than it already is, and getting rid of it wasn’t easy to find but is easy to do.
I wanted a JavaScript based solution, but could not find any quickly enough so for now these website based solutions work OK-ish when enabling the “clean comments” checkbox and then perform a clean action:
- Website: [Wayback/Archive] HTML Cleaner – Online Beautifyer and Word Converter
- Website: [Wayback/Archive] Clean HTML Code Cleaner | Remove Unwanted Styles & Tags
More links:





