Local StudioDEVELOPER TOOLS HTML Formatter
100% Offline Download Tool Tools Catalog

HTML Formatter

Adjust HTML source layout and compare the result with the original. Choose document or fragment mode before formatting.

Choose HTML and Style

Preserve Text formats attribute layout. Block indentation adds line breaks in plain block-only containers.

Instructions

  1. Select an HTML file or choose Paste HTML. Set HTML Fragment or HTML Document.
  2. Choose Preserve Text or Indent Block Layout, then compare the original and formatted source.
  3. Use Copy HTML or Download HTML to save the complete result.

UTF-8 HTML documents and ordinary HTML fragments up to 512 KiB, 75,000 parsed nodes, and 128 parsed element levels. Formatted text is limited to 2 MiB.

Security Check

HTML Formatter

Format HTML source locally as text. Links stay inert.

  • Keep Text and Raw ContentPreserve inline spaces, preformatted text, comments and templates.
  • Set HTML LayoutSelect fragment or document checking and choose two or four spaces.
  • Save Checked SourceCopy or download the full result after a parse check.

Local Security Check

Checking This Tool

Checking the launch, browser policy, and resources.

    These checks cover this tool page. Website links open only when selected.

    File Access

    The browser reads HTML as source text. File and paste contents stay on this device.