Convert HTML to RST
Turn HTML files into reStructuredText. A reStructuredText document with headings, lists, tables, links and footnotes.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop HTML files on the dialor turn it to pick what to do
HTML turned into reStructuredText.Headings, lists, tables, links and footnotes carry over into one RST file.
What you get
One reStructuredText file that holds the structure of the page. Headings, lists, tables, links and footnotes are written in RST markup, ready for Python documentation and Sphinx.
What it leaves behind
Scripts, styles and layout are dropped. RST describes the structure of a document, not how a page looks, so colors, fonts and positioning do not carry over.
Images stay as links. The picture itself is not placed in the RST file, so the file points to it instead.
Going the other way
To turn RST back into a web page, use RST to HTML. For other conversions that start from a web page, see every HTML conversion.
HTML and RST.What each format is.
The formats
HTML
The markup of web pages. Text, links and structure, usually with CSS and images alongside.
- Extensions
- .html .htm
- MIME type
- text
/html - Kind
- Text and data
reStructuredText
reStructuredText, the markup of Python documentation and Sphinx.
- Extensions
- .rst
- MIME type
- text
/x -rst - Kind
- Text and data
In your code.The same HTML to RST conversion through the API, for your app or your agent.
$ cv convert report.html report.rst$ cv convert report.html report.rstQuestions.What people ask about HTML to RST.
Yes. Tables come out as tables in the RST file.
They are dropped. Only the content and its structure are kept.
No. Images stay as links, so the RST file refers to them and does not hold the pictures.
You get one file.