HTML to YAML Converter

Your workspaceProcessed on your device
HTML parsing
A few things to know.

Up to 250,000 UTF-16 code units and 20,000 parsed nodes. The output records the HTML parser tree, including implied elements, normalized line endings and decoded entities. Script and style bodies stay as text. The export describes structure and retains no original attribute quoting or byte layout.

  1. Paste or open an HTML file. Choose Full document for head and doctype data, or choose Fragment and set the surrounding element context.
  2. Choose the indentation and whether to include comments and indentation-only lines. Convert to YAML and check the counts and parser notices.
  3. Copy or download the YAML and open it with a YAML parser to inspect the nodes, attribute strings and child order.