1xA2ZOne Data. Any Format.
Live syncLocal-first · no data upload

Convert Markdown to reStructuredText

Paste Markdown into the left editor and the reStructuredText tab on the right gives rST code. This format is output only: the right box is read-only and cannot be read back into the document.

Runs entirely in your browser. Your data is never uploaded. Tiếng Việt

01

Editor

DocsWordGmailNotionMarkdown
0 words
Ready · LocalPaste here from Google Docs, Word, Gmail, Notion
02

Live Output

Markdown
SyncedEdit the code here; the editor on the left updates itself
0 characters
Every change is processed right in your browserUTF-8 · by xuanhieu.org

When you need to convert Markdown to reStructuredText

Python documentation, Sphinx and Read the Docs use reStructuredText, while Markdown is what you already have. Converting by hand goes wrong easily because rST is sensitive to indentation, blank lines and the length of a heading underline. The tool writes rST from the structure of the Markdown and works those details out for you. Because there is no rST reader, this is a one-way format: you export, you do not paste back.

How to do it

  1. Paste Markdown into the Editor editor on the left, or press Import file to open an .md file.
  2. Open the reStructuredText tab on the right (selected on this page). The result box is read-only; make edits in the left editor.
  3. Press Copy result or Download file to get an .rst file.
  4. Build it with your own Sphinx or docutils to confirm it renders correctly before adding it to the repository.

A real example

A level 1 heading is underlined with equals signs and level 2 with hyphens, each as long as the text. The numbered list becomes 1. lines, the code block becomes .. code-block:: bash indented by three spaces, the link becomes backtick form with the address in angle brackets, and the table becomes a grid table with a header separator row.

Input · Markdown

# Weekly report, week 47

This week the team finished **two** main items and has *one* waiting for approval.

## Results

- Launched the product landing page
- Fixed the mobile layout bug
  - Screens under 360 px
  - Dark mode

## Numbers

| Metric | Last week | This week |
| :-- | --: | --: |
| Visits | 4,120 | 5,380 |
| New sign-ups | 96 | 131 |

Details are in the [tracking sheet](https://example.com/tracking).

Result · reStructuredText

Weekly report, week 47
======================

This week the team finished **two** main items and has *one* waiting for approval.

Results
-------

- Launched the product landing page
- Fixed the mobile layout bug

  - Screens under 360 px
  - Dark mode

Numbers
-------

+--------------+-----------+-----------+
| Metric       | Last week | This week |
+==============+===========+===========+
| Visits       | 4,120     | 5,380     |
+--------------+-----------+-----------+
| New sign-ups | 96        | 131       |
+--------------+-----------+-----------+

Details are in the `tracking sheet <https://example.com/tracking>`__.

Options worth changing

This tab has no options of its own: the result follows the structure of the document.

Common problems

Limits

Frequently asked questions

Why can I not edit the result box?

The tool has no reStructuredText reader, so it cannot update the text from rST code. Edit in the Editor editor or on the Markdown tab and come back to this tab.

Does it work with Sphinx?

The code uses standard rST syntax and the code-block directive, but you need to build it with your own Sphinx, because the tool has not been tested directly against it.

Do images come across?

An image with a web address becomes an image directive with alt text. An image embedded as data leaves only its description text.

Is my data sent anywhere?

No. Every step runs in your browser.

Related conversions

1xA2Z · Guide

Document statistics

Most frequent words