Skip to content
Document tools

HTML to Markdown Converter

Turn web pages and HTML snippets into clean, readable Markdown.

Convert your document

Converted on our server
This conversion runs on our server. Your text is sent over HTTPS, converted with Pandoc and deleted as soon as the result comes back to you. We never keep a copy.
Free tool · No account needed

How it works

  1. Paste HTML or choose a filePaste up to 2 MB of HTML, or upload an .html file.
  2. Agree and convertConfirm the upload and press Convert.
  3. Copy or downloadCopy the Markdown from the page, or download the .md file.

Supported formats

Any of these can be converted into any other. Old .doc files and PDFs are not supported.

DOCXODTRTFEPUBHTMLMDTXTTEXRSTADOCORGWIKI

About this tool

Moving content out of an old website, a CMS export or an HTML email? Paste the HTML or upload a saved .html file, and you get GitHub-flavoured Markdown that is easy to read and edit: headings, paragraphs, emphasis, links, lists, tables, code and images.

Scripts, styles and layout wrappers such as div and span tags are dropped, so you are left with the content. Images keep their links, and a table with merged cells stays as an HTML table so nothing in it is lost. The conversion runs on our server with Pandoc after you agree to the upload, and nothing is kept afterwards.

Questions people ask

Can I convert a page by its address?
No. Save the page from your browser, or copy its HTML, and upload or paste that. The converter never downloads anything itself.
What happens to menus and footers?
They come across as ordinary text and links, because HTML does not mark which part is the article. Paste only the part you need for the cleanest result.
Which Markdown flavour do I get?
GitHub-flavoured Markdown, which works on GitHub and GitLab, in Obsidian and VS Code, and in most static site generators.
Good to know

Getting clean Markdown from HTML

Paste the article, not the page

Menus, sidebars and footers come across too. Copy just the main content for the cleanest Markdown.

Make links absolute

Links such as /about stay relative. Replace them with full addresses if the Markdown will live on another site.

Watch embedded images

Images built into the HTML as data stay in the Markdown as very long lines. Save them as files and link to them if people will edit the Markdown by hand.

Know your formats

HTML vs Markdown

HTML and Markdown compared
HTMLMarkdown
Full nameHyperText Markup Language, the format of web pagesMarkdown plain-text formatting (GitHub flavour)
Formatting it keepsHeadings, lists, links, tables and images; the look comes from CSSHeadings, bold and italic, lists, links, images, tables and code; no fonts or page layout
Best forPublishing on the web and pasting into website editorsREADME files, documentation, notes apps and static websites
Works withEvery web browser, content management system and email editorGitHub, GitLab, Obsidian, Notion, Jekyll, Hugo and any text editor