A lot of good text starts life as HTML: a page in your browser, an old blog post, a help topic, a newsletter. Moving it into Markdown by hand means deleting tags, rebuilding lists and retyping links. This guide shows how to do it in a few clicks on Windows with Rons Markdown Edit, and how to go the other way when you need HTML or plain text again.
Clean Markdown is also the format AI assistants and agents read most easily. If you collect web content to give to ChatGPT, Copilot or an agent working on a folder of files, converting it to Markdown first keeps the headings, lists and links and drops everything else. See Why Is Markdown More Important Than Ever in the World of AI?
Paste a Web Page as Markdown
- In your browser (or in an email or another editor), select the text you want and copy it with Ctrl+C. Windows puts it on the clipboard as HTML.
- In Rons Markdown Edit, open or create a document and place the caret where the text should go.
- Right-click in the text and choose Paste HTML as Markdown.
Headings, bold and italic text, lists, links, images and quotes arrive as Markdown marks instead of tags. Turn on HTML Preview to check the result beside the text.
Convert an HTML File, or Tidy a Mixed Document
Many older Markdown files contain pieces of HTML: a <b> here,
a <br> there, a table pasted from somewhere else. Edit
→ Format Convert reads a Markdown document, including any HTML in it,
and writes it back as formatted Markdown.
Format Convert also works on an HTML file: open the .html file in
Rons Markdown Edit and choose Edit → Format Convert to turn it
into Markdown.
To tidy a document without converting anything, use Edit → Format, which formats the whole document in its current format (Markdown, HTML or plain text).
Check the Result
Conversion is never perfect for every page, especially for complex layouts. After pasting:
- Look at the HTML Preview to see that headings and lists are where you expect.
- Open tables in the table editor to check the columns; you can sort rows, remove empty or duplicate rows and size the columns there.
- Run Edit → Links to check that every link still works. See How to Find Broken Links in a Folder of Markdown Files.
- Check images: an image copied from a web page still points at that site. To keep a copy, save the image next to your document and drop the file on the text, which opens the image editor with that file already chosen.
Going the Other Way: Markdown to HTML or Plain Text
When the document is ready, you can take it back out in the form you need:
- Copy as HTML puts the selection on the clipboard as HTML, ready for a web editor, a CMS or an email.
- Copy as Readable Text copies the selection with the Markdown removed, for the plain-text version of an email.
- Choose HTML in the preview style list to see the generated markup.
- Prepare Post writes the title, the text and the images to a folder as Markdown, HTML or plain text, ready to publish.
To make many documents from a table of data, such as one page per row, Rons Data Merge can use a Markdown template, and you can open and check the results in Rons Markdown Edit.
Other Ways to Convert
There are other good tools for this job. Online converters work in a browser, but check what happens to the text you paste before using them for private documents. Command-line tools such as Pandoc convert whole files and suit scripts and batch work. Microsoft PowerToys offers a paste-as-Markdown option too. Rons Markdown Edit is the simple route when you want to paste, see the result, fix it and save it, all in one place on your own computer.
Try It
Paste HTML as Markdown and Format Convert are included in the free Lite edition, which has every editing feature and no time limit (it saves documents of up to 7,500 characters): download Rons Markdown Edit.