Convert TOML to HTML
Turn TOML 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 TOML files on the dialor turn it to pick what to do
A TOML file as a readable web page.Keys, values and tables become headings, lists and tables in one HTML page.
What you get
A standalone HTML page with simple built-in styles, titled after the file. You get one 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.
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.
What stays as written
Every key and value is kept and written exactly as the file has it. Long numbers are not rounded, and dates and times stay as text. Numbers keep their underscores and their hexadecimal, octal or binary form.
Tables and keys keep their written order. Dotted keys become nested objects. Comments are dropped.
Limits
A file with more than 100,000 values fails with
resource_limit. The conversion has no options to set.See every TOML conversion or every HTML conversion for other routes.
TOML and HTML.What each format is.
The formats
TOML
TOML configuration files, the format of Cargo and pyproject.
- Extensions
- .toml
- MIME type
- application
/toml - Kind
- Text and data
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 TOML to HTML conversion through the API, for your app or your agent.
$ cv convert report.toml report.html$ cv convert report.toml report.htmlQuestions.What people ask about TOML to HTML.
No. Comments are dropped. Keys, values and their order are kept.
No. Long numbers are not rounded, and dates and times stay as written. Numbers keep their underscores and their hexadecimal, octal or binary form.
A list of objects that hold only plain values becomes one table with a column for each key. Other lists give each object a heading numbered from 1.
It stops with resource_limit when the file has more than 100,000 values.