How to Convert Markdown to reStructuredText or AsciiDoc Without Losing Structure
Move docs between Markdown, reStructuredText and AsciiDoc: what each format does differently, how headings, code and tables map, and what to check by hand.

How to Convert Markdown to reStructuredText or AsciiDoc Without Losing Structure
Sooner or later most software projects outgrow a single README. The quick start grows into a manual, the manual moves to Sphinx or Antora, and suddenly text written in one markup language has to live in another. The three formats look similar from a distance because all of them are plain text with a few symbols, but the details differ enough that copy and paste never works. This guide explains the differences that matter and shows how to move a document with the free Markdown, reStructuredText and AsciiDoc Converter.
Three formats, three habits
Markdown marks headings with hash signs, wraps code in three backticks and writes links as text in square brackets followed by the address in round brackets. It is the default on GitHub, GitLab, most static site generators and many note-taking apps.
reStructuredText, usually shortened to RST, is the format of Docutils and Sphinx, and therefore of Read the Docs and most Python documentation. Headings are underlined with a row of punctuation, and the level depends on the order in which underline styles first appear in the file. Code blocks are directives that start with two dots, and links put the address inside angle brackets within backticks, ending with an underscore.
AsciiDoc is used by Asciidoctor, Antora and many technical book publishers. Section titles start with equals signs, source blocks combine an attribute line such as [source,java] with a dashed fence, and links put the visible text in square brackets right after the address.
What converts cleanly
The everyday building blocks have a direct equivalent in every format. Headings keep their level. Paragraphs, bold, italic and inline code are trivial. Bullet and numbered lists nest the same way, although RST insists on blank lines between levels and on indentation that lines up with the parent item's text. Code blocks keep their language, which matters because syntax highlighting depends on it. Pipe tables in Markdown become grid tables in RST and pipe-fenced tables in AsciiDoc. Block quotes stay quotes, and admonitions such as note and warning, which Markdown lacks, become a quote that starts with a bold label.
Step by step
- Open the converter and paste your text into Source, or drop the file on the upload box. Several files at once are converted together into a ZIP.
- Leave From on Detect. The tool looks for directive lines, underline headings and AsciiDoc titles to guess the format. Pick the format yourself if the guess is wrong.
- Choose the target under To.
- Switch between Converted text and Preview. The preview renders the structure, so a list that suddenly becomes a paragraph stands out at once.
- Read the conversion report. It counts headings, lists, code blocks and tables, and names any line it could not translate, such as an include line, raw HTML or an unknown directive.
- Copy or download the result. Swap turns the output into the new source if you want to keep editing or convert onward.
Things to check by hand
Every converter has gaps, and it is better to know them before publishing. Footnotes and definition lists are not translated by this tool. Tables with merged cells cannot be expressed in Markdown at all. Sphinx-only features, such as the toctree that builds navigation or cross-reference roles for classes and functions, have no meaning outside Sphinx and are skipped or reduced to plain text. AsciiDoc conditionals and includes need the original build environment.
Links between pages also need attention. A Markdown link to install.md should usually become a document reference in Sphinx rather than a link to a file, and the anchors that headings produce differ between renderers. After converting, run the site build once and read the warnings; they point to exactly the places that need a manual fix.
A practical workflow for migrations
When moving a whole docs folder, convert everything in one batch first, commit the raw result to a branch, and then fix the warnings file by file. Keeping the automatic conversion and the manual fixes in separate commits makes review much easier, because reviewers can see which changes were mechanical and which were decisions.
If you maintain the same text in two places, for example a Markdown README on GitHub and an RST page in the manual, pick one as the source and regenerate the other. Editing both by hand guarantees that they drift apart within a few releases.
Privacy
The conversion runs entirely in your browser. Internal documentation, unreleased product names and customer examples stay on your computer, and the last source text is kept only in local storage so a reload does not lose it.



