Markdown, reStructuredText and AsciiDoc Converter

Paste or open a document in one lightweight markup language and get the same structure in another, with a live preview and a report of anything that needs a manual touch.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Paste or open a file

    Paste text into Source or drop a .md, .rst or .adoc file on the box.

  2. 2
    Check the source format

    Leave From on Detect or choose the format yourself.

  3. 3
    Pick the target

    Choose Markdown, reStructuredText or AsciiDoc under To.

  4. 4
    Review the result

    Switch between Converted text and Preview to check structure.

  5. 5
    Read the report

    Fix any construct listed under Conversion report by hand.

  6. 6
    Save it

    Press Copy or Download, or Swap to keep editing the result as the new source.

About this tool

Documentation lives in three plain-text formats. Markdown is what GitHub, GitLab, static site generators and most note apps expect. reStructuredText is the native language of Sphinx and Read the Docs, so most Python projects write their manuals in it. AsciiDoc powers Antora sites, many Java and Red Hat manuals, and books written with Asciidoctor. Moving a README into a Sphinx manual, or a chapter from an Asciidoctor book onto a Markdown blog, normally means rewriting every heading underline, every code block marker and every link by hand. This converter reads all three formats into one document tree and writes that tree out again in the format you pick. Headings keep their levels, bullet and numbered lists keep their nesting, fenced code keeps its language, pipe tables become grid tables or AsciiDoc tables, block quotes stay quotes, and admonitions such as note and tip become a quote that starts with a bold label. Links, images, bold, italic and inline code are carried across in each format's own syntax. Everything runs in your browser, so internal docs never leave your computer.

How the conversion works

Each format has its own parser. Markdown follows the CommonMark block rules with the GitHub table extension. reStructuredText headings are recognised by their underline and optional overline characters, and levels are assigned in the order the styles first appear, which is how Docutils itself decides. Named hyperlink targets such as .. _Docs: https://example.org are collected first, so a later reference written as Docs with a trailing underscore becomes a real link. AsciiDoc section titles use equals signs, source blocks use the [source,lang] attribute line followed by a dashed delimiter, and tables use the pipe-equals fence.

Writing reStructuredText that Sphinx accepts

The writer uses an overline and underline for the document title and plain underlines for lower levels, picks the width from the title text (counting wide characters twice), and leaves blank lines around nested lists because Docutils needs them. External links are written as anonymous hyperlinks with a double underscore, which avoids the duplicate target warnings you get when two links share the same text. Inline images are turned into substitution references with matching image directives under the paragraph.

The report

Below the output you see how many headings, paragraphs, lists, code blocks, tables and notes were found. Constructs that the converter does not translate, such as unknown directives, include lines or raw HTML, are listed with their line number so you can deal with them yourself instead of discovering a gap after publishing.

Limits

This is not a full Pandoc replacement. Footnotes, definition lists, multi-line grid table cells, merged cells, Sphinx roles beyond code and literal, and AsciiDoc conditional blocks are not converted, and Sphinx toctree and contents directives are skipped because the site generator builds them. Very long documents convert in well under a second on a laptop, but phones may feel slow above a few thousand lines.

Worked example

A team moves the 140-line README of a command-line tool into a Sphinx manual. With From set to Detect and To set to reStructuredText, the report shows 9 headings, 21 paragraphs, 6 lists, 7 code blocks and 1 table. The pipe table with 3 columns and 5 rows becomes a grid table with a double rule under the header row, and the 7 fenced bash blocks become code-block directives with the bash language kept. One raw HTML line holding a badge image is flagged. After replacing the badge with an image directive, the team pastes the result into index.rst, runs sphinx-build and gets no warnings.

Quick facts

Frequently asked questions

Which direction should I start from?

Any of the six directions works. Leave From on Detect and the tool guesses the source format from typical markers, such as directive lines for reStructuredText or a level-one equals title for AsciiDoc. Set it by hand if the guess is wrong.

Does it keep code block languages?

Yes. A fenced block marked python becomes a code-block directive with python in reStructuredText and a [source,python] block in AsciiDoc, and the language is read back the same way in the other direction.

What happens to notes and warnings?

reStructuredText admonitions and AsciiDoc NOTE, TIP and WARNING blocks become block quotes whose first words are a bold label, which is the usual way to show them in Markdown.

Can I convert a whole docs folder?

Drop several files at once. They are converted to the target format together and downloaded as one ZIP, with a log file that lists every warning per file.

Why does the reStructuredText output use grid tables?

Grid tables can hold any cell content and need no column alignment rules for the header, so they survive editing better than simple tables. Sphinx and Docutils read both kinds.

Is my text sent to a server?

No. Parsing and writing happen in JavaScript on this page, and your last source text is kept only in this browser's local storage.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages