Convert YAML to DOCX
Turn YAML files into DOCX. A Word document with the default styles, with Word headings, lists and tables.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop YAML files on the dialor turn it to pick what to do
Your YAML as a Word document.Keys and values become headings, lists and tables in default Word styles.
What you get
A Word document with the default styles. Each object lists its plain values first as key: value. Smaller objects and lists of plain values are nested under their key.
Larger parts follow under Word headings named after their keys, down to six levels and as nested lists below that.
Lists and 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 YAML file holds several documents, they become a numbered list.
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 stay text. Values such as yes, on, 0755, ~ and 2024-03-01 appear as they are, and a custom tag such as !Ref stays in front of its value.
Aliases are expanded. A merge key (<<) stays an ordinary key. Comments are dropped.
When it stops
A file with more than 100,000 values fails with
resource_limit. A key repeated in one mapping fails withinput_corrupted.
YAML and DOCX.What each format is.
The formats
YAML
YAML configuration and data files.
- Extensions
- .yaml .yml
- MIME type
- application
/yaml - Kind
- Text and data
Word Document
Word's default document format since 2007. A zip of XML parts with the text, styles, images and tracked changes.
- Extensions
- .docx
- MIME type
- application
/vnd .openxmlformats -officedocument .wordprocessingml .document - Kind
- Documents
In your code.The same YAML to DOCX conversion through the API, for your app or your agent.
$ cv convert report.yaml report.docx$ cv convert report.yaml report.docxQuestions.What people ask about YAML to DOCX.
No. Long numbers are not rounded and dates stay text. Every value is written exactly as the file has it.
No. Comments are dropped. Keys and values are kept.
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.