JSON 到 Markdown

将 JSON 数组转换为文档和自述文件的 Markdown 表。

免费在线 JSON 到 Markdown 表转换器

将 JSON 数组数据转换为 GitHub 风格的 Markdown 表格,您可以将其粘贴到 README 文件、wiki 和问题评论中。每个对象成为一行;键成为列标题。

选择列对齐方式,可以选择添加行号,然后复制结果。嵌套对象在单元格中序列化为 JSON 字符串。所有处理都发生在您的浏览器中。

Frequently Asked Questions

What JSON format produces a Markdown table?
An array of objects with consistent keys: [{"name": "Alice", "role": "Admin"}, {"name": "Bob", "role": "User"}]. Each object becomes a row; keys become column headers. All objects should share the same property names for clean columns.
Does the output work on GitHub?
Yes. Generated tables use standard GitHub Flavored Markdown syntax with pipe separators and a header row. They render correctly on GitHub, GitLab, Notion, and most Markdown editors.
Can I align columns?
Yes. Dokall supports left, center, and right column alignment using Markdown alignment syntax (:---, :---:, ---:). Alignment affects rendering in viewers that support it, like GitHub.
How are nested values displayed?
Nested objects and arrays are serialized as inline JSON strings within table cells. For readable nested data, flatten the JSON first or use separate tables for nested collections.
Can I add row numbers?
Yes. Enable the row numbers option to prepend a numbered index column. Useful for referencing specific rows in documentation or issue comments.