JSON to reStructuredText

Convert JSON data to reStructuredText (RST) format. Generate grid tables, list-tables, and field lists for Sphinx documentation and Python projects.

Input JSON
RST Output

Features

📝 Multiple RST Formats

  • Grid table (box-drawing chars)
  • list-table directive
  • Simple table format
  • Field list for single objects

Smart Detection

  • Array of objects → table
  • Single object → field list
  • Auto column width sizing
  • Optional section headers

RST Guide

What is reStructuredText?

reStructuredText (RST) is the standard lightweight markup language used for Python documentation. It is the format of choice for Sphinx, the documentation tool behind the official Python docs, NumPy, Django, Flask, and thousands of other projects. RST supports rich tables, cross-references, code blocks, directives, and section headers — making it ideal for technical documentation.

This tool converts your JSON data into RST-formatted tables or field lists, ready to paste directly into your .rst source files.

RST Table Formats

This converter supports three RST table formats:

  • Grid Table — Uses +, -, and | characters to draw explicit cell borders. Widest compatibility; renders correctly in all RST processors. Best for documentation that may be rendered in multiple tools.
  • List Table — Uses the .. list-table:: directive with bullet-list syntax. Easier to edit by hand and does not require precise column width alignment. Recommended for tables that will be frequently updated.
  • Simple Table — Uses = lines for column separators. Compact and human-readable but limited (no row spans, requires aligned columns). Good for simple lookup tables.

How to Use This Tool

  1. Paste a JSON array of objects (each object becomes a table row, keys become column headers) or a single JSON object (converted to a key/value field list).
  2. Select your preferred table format from the dropdown.
  3. Optionally add a table title — it will appear as an RST section heading above the table.
  4. Click "Convert to RST" to generate the output.
  5. Copy the RST and paste it into your .rst file or Sphinx project.