HTML to Markdown
Paste HTML code — or copy straight from a web page, Word or Google Docs — and get clean Markdown as you type. Tables, links and code blocks included; nothing uploaded.
Or drop an .html file, or browse
Markdown
When HTML to Markdown is useful
Moving a blog or a help centre to a static-site generator. Saving an article into Obsidian or Logseq. Giving an AI model the text of a web page without thousands of tokens of markup — Markdown carries the same structure for a fraction of the tokens, which is why RAG pipelines normalise to it. Or simply getting a table out of a web page into a README.
What is dropped on purpose
Styling, classes, inline CSS, scripts and layout wrappers. Markdown describes what text is — a heading, a list, a link — not how it looks, so anything purely visual has nowhere to go. Elements with no Markdown equivalent, such as <video>, are reduced to their text.
Going the other way
Markdown to HTML turns Markdown back into sanitised HTML with a live preview, and Word to Markdown converts a whole .docx file, images included. The Markdown cheat sheet covers the syntax you will see in the output.
Frequently asked questions
Can I paste formatted text instead of HTML code?
Yes, and it is often the quickest route. Select content in a browser, Google Docs, Word or Notion, copy it, and paste it into the box: the formatted version travels through the clipboard as HTML, so headings, links, lists and tables are converted. Pasting HTML source code works too.
What does “Main content only” do?
It removes scripts, navigation menus, sidebars, forms and the page’s own header and footer, and keeps the <main> or <article> element when there is one. For a full saved web page this is the difference between an article and a wall of menu links. Turn it off to convert everything.
Which Markdown flavour does it produce?
GitHub-flavored Markdown: # headings, - bullets, **bold**, *italic*, ~~strikethrough~~, pipe tables, task lists, and fenced code blocks that keep their language when the HTML marks it (class="language-js"). That output works on GitHub, GitLab, Obsidian, Notion imports and static-site generators.
Why did my table come out as plain lines?
Markdown tables are simple grids. A table whose cells contain lists, several paragraphs or other tables, or that uses merged cells, cannot be written as a pipe table. Simple data tables convert cleanly, and a table without a header row gets its first row promoted.
Is the HTML sent anywhere?
No. It is parsed as an inert document in your browser — scripts in it do not run and images in it are not loaded — and converted on the spot. Nothing is uploaded, and the page never fetches the URLs in the HTML.
Can I convert a URL directly?
Not from here: fetching a page would mean sending your request through a server, which this site does not do. Open the page, press Ctrl+S (or Cmd+S) to save it as HTML and drop the file, or select the article text and paste it.
Limitations
- No URL fetching — save the page or copy its content instead.
- Tables with merged cells or block content inside cells cannot become pipe tables.
- Pages that build their content with JavaScript must be copied from the browser, not from “view source”.
- Images are kept as links to their original address; they are not downloaded.
Related tools
- Markdown to HTMLClean, sanitised HTML from Markdown, with a live preview.Markdown (.md) → HTML
- Word to MarkdownTurn a .docx into clean Markdown — headings, lists, tables, images.Word (.docx) → Markdown (.md), ZIP
- PDF to MarkdownClean Markdown from any PDF, with OCR for scanned pages.PDF → Markdown (.md)
- Markdown to PDFA clean PDF from Markdown — with diagrams, math and images.Markdown (.md) → PDF
Guides
- Markdown vs HTML: What Each Is For, and When to ConvertMarkdown and HTML describe the same structure for different jobs. What each is for, what Markdown cannot express, and how to convert safely.
- Markdown Cheat Sheet PDF (Free Download)Free Markdown cheat sheet with every syntax element - headings, lists, links, tables, code - plus GFM extras. Download it as a printable PDF in one click.
- Why LLMs Read Markdown Better Than PDF (ChatGPT & Claude)PDF extraction throws away the structure your model needs. See what breaks, and why Markdown gets better answers out of ChatGPT and Claude.
- PDF to Markdown for RAG Pipelines (Practical Guide)Why clean Markdown improves RAG retrieval quality. Covers chunking strategies, metadata, common PDF extraction pitfalls, and where browser tools fit.