Convert YAML to HTML

Turn YAML files into HTML. A standalone HTML page with simple built-in styles, titled after the file.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop YAML files on the dialor turn it to pick what to do

A readable HTML page from your YAML file.Every key and value is kept, laid out with headings, tables and lists.

  1. What you get

    One standalone HTML page with simple built-in styles, titled after the file. Each object lists its plain values first as key: value. Small objects and lists of plain values are nested under their key.

    Larger parts follow under headings named after their keys, down to six levels and as nested lists below that.

  2. How lists become tables

    A list of objects that hold only plain values becomes one table. It has a column for every key in first-seen order, and numbers are aligned right. A list of lists of plain values becomes a table without a header row. The objects of any other list each get a heading numbered from 1.

    If the file holds several documents, they become a numbered list.

  3. What stays as written

    Every key and value is kept and written exactly as the file has it, so long numbers are not rounded and dates stay text. Values such as yes, on, 0755, ~ and 2024-03-01 appear as they are. A custom tag such as !Ref stays in front of its value.

    Aliases are expanded. A merge key (<<) stays an ordinary key, and comments are dropped.

  4. When it stops

    A key repeated in one mapping stops the conversion with input_corrupted. A file with more than 100,000 values stops it with resource_limit.

    For other conversions, see every YAML conversion or every HTML conversion.

YAML and HTML.What each format is.

The formats

From · YAML

YAML

YAML configuration and data files.

Extensions
.yaml .yml
MIME type
application/yaml
Kind
Text and data
To · HTML

HTML

The markup of web pages. Text, links and structure, usually with CSS and images alongside.

Extensions
.html .htm
MIME type
text/html
Kind
Text and data

In your code.The same YAML to HTML conversion through the API, for your app or your agent.

terminal
$ cv convert report.yaml report.html
$ cv convert report.yaml report.html

Questions.What people ask about YAML to HTML.

01OF 04

No. Comments are dropped. Every key and value is kept.

No. They are written exactly as the file has them. Long numbers are not rounded and dates stay text.

Aliases are expanded. A merge key (<<) is not applied. It stays an ordinary key.

A key is repeated in one mapping. The conversion stops with input_corrupted when that happens.

More conversions.Other ways in and out of YAML and HTML.