Paste your HTML and click Prettify to format it with clean indentation, or Minify to compress it by collapsing whitespace. Void tags like <br>, <img>, and <input> are handled correctly. Everything runs locally in your browser. Writing a scraper or a test locator? Try your selector against the page source in the XPath tester.
HTML Prettify / Minify
Format or compress HTML
Output will appear here...Get weekly dev tools and tips