Checked on 2026-11-19.
How to use it
Paste HTML into the box: a snippet, an email template, or the whole source of a page. The Markdown appears below and follows every change you make. Pick the heading style, the bullet character, the code block style and what to do with links; the result changes at once. Copy Markdown puts it on your clipboard and Download .md saves it as a file.
The converter works on the HTML you give it and on nothing else. It does not fetch pages: paste a web address and it tells you so. To convert a page you are reading, open its source in your browser, copy it and paste it here.
The options
The options are those of Turndown, the open-source library that does the conversion, except dropping links, which is a rule this page adds to it. Every choice writes a form that the CommonMark specification defines:
| Option | Choices | What it writes |
|---|---|---|
| Headings | ATX or setext | ATX headings start with one to six #. Setext headings are underlined with === or ---, which CommonMark defines for levels 1 and 2 only, so h3 to h6 are written with # either way. |
| Bullet | -, * or + | The character in front of each item of a bulleted list. Numbered lists keep their numbers. |
| Code blocks | Fenced or indented | Fenced blocks sit between lines of three backticks, with the language when the HTML names it (class="language-bash"). Indented blocks are indented by four spaces. Code in a GitHub-style highlight-source-… block is fenced either way: the GFM plugin's rule for it does not look at this option. |
| Links | Inline, at the end, or dropped | Inline is [text](url). At the end writes [text][1] and lists the addresses after the text, Turndown's referenced style. Dropped keeps the link text and leaves out the address. |
Bold, italics, inline code, quotes, images and line breaks are converted too, with Turndown's defaults: **bold**, _italics_ and  for an image.
Tables, strikethrough and task lists
These are not part of CommonMark. GitHub Flavored Markdown adds them as extensions, and this page always writes them in its form, with the turndown-plugin-gfm plugin for Turndown. There is no option to turn them off. A renderer that knows only CommonMark shows the result as plain text: a table as lines with pipes, strikethrough with its tildes.
- Tables with a header row become pipe tables. The GFM spec defines a table as "a single header row, a delimiter row separating the header from the data, and zero or more data rows", so the first row has to be a header: a row in
<thead>, or a first row made only of<th>cells. Analignattribute on a header cell becomes a colon in the delimiter row (:--,:-:,--:); alignment set in CSS is not read. - Tables without a header row have no GFM form, and the plugin keeps them as HTML in the Markdown. This page removes scripts, styles and the other dropped elements from that HTML. Everything else stays as the browser read it, which can add a
<tbody>that the original did not have. - Cells hold one line in a pipe table, so line breaks and paragraphs inside a cell become spaces, and a
|inside a cell is written\|, as the GFM spec asks ("Include a pipe in a cell's content by escaping it"). A cell that spans columns is written as one cell, so its row is shorter than the header. A<caption>becomes a paragraph above the table. One-line cells, escaped pipes and the caption paragraph are this page's additions; the plugin alone writes cells as they come. - Strikethrough:
<del>,<s>and<strike>become~text~. The GFM spec allows "a matching pair of one or two tildes". - Task lists: a checkbox directly inside a list item becomes
[x]when it is ticked and[ ]when it is not.
How it works
Turndown, by Dom Christie and released under the MIT license, turns each HTML element into its Markdown form and keeps the text of elements it has no rule for. This page runs version 7.2.5 in your browser, with turndown-plugin-gfm 1.0.2, by the same author and under the same license. Turndown reads the HTML with your browser's own parser; MDN's page on DOMParser.parseFromString() says that scripts in HTML parsed that way are "marked as non-executable", so nothing you paste runs.
Before converting, the page tells Turndown to remove some elements with everything inside them: script and style, noscript and template blocks, the page's title, embedded frames and objects, SVG drawings and canvases. Without that, the code inside a script would come out as text.
You may see backslashes in the result. Turndown's README explains that it escapes characters that Markdown would otherwise read as formatting: the text of <h1>1. Hello world</h1> becomes 1\. Hello world, so that it is not read as a list item.
Where it stops
- It does not fetch pages, and it does not run the page's JavaScript. A page that builds its content in the browser sends little HTML; paste the HTML as the browser built it, not the source the server sent.
- Tables without a header row stay HTML, and cells that span rows or columns are not spread out, as described above.
- A
<pre>without<code>inside is not treated as a code block: Turndown's code block rules look for that pair. - Relative links stay relative. A link to
/aboutis written as/about, because the converter does not know which site the HTML came from. - It converts everything you paste. Menus, cookie notices and footers are HTML like the article, so they come out as Markdown too. Paste only the part you want, or use the API below, which drops menus.
Get the data automatically
To turn pages into Markdown from code, by their address, the page content endpoint fetches one page and returns its content as Markdown, or as text with format=text. Headings, lists, quotes, tables, code blocks and links are kept. Scripts, styles, forms, buttons and images are dropped, and so are menus: blocks made almost entirely of links, and the short link fragments above the first heading and below the last.
import os
import requests
res = requests.get(
"https://pipefetch.com/v1/web/content",
params={"url": "https://docs.apify.com/academy", "format": "markdown"},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
timeout=90,
)
if res.status_code == 404:
# not_allowed, needs_javascript, no_content, page_not_found, website_blocked
# or website_unreachable: not charged
print(res.json()["error"]["code"])
else:
res.raise_for_status()
page = res.json()["data"]
print(page["title"], page["wordCount"], "words")
print(page["content"])It reads the page as plain HTML and does not run JavaScript either: a page that builds its text in the browser comes back with needsJavaScript true. Next to content you get the title, headings, wordCount and an estimated tokenCount. A request costs 1 credit, and none of the 404 answers above costs anything.
Questions
Can it convert a web page from its address?
No. It converts the HTML you paste and fetches nothing. Open the page, view its source, copy it and paste it here. To convert pages by address from code, use the page content endpoint.
Does it keep tables?
Yes, as GitHub Flavored Markdown pipe tables, when the table has a header row: a <thead>, or a first row of <th> cells. A table without one has no pipe-table form and is kept as HTML in the Markdown, with scripts and styles removed. Line breaks inside a cell become spaces, and a | in a cell is escaped.
Why are there backslashes in the Markdown?
Turndown escapes characters that Markdown would read as formatting, such as a number followed by a full stop at the start of a line or an asterisk around a word. The backslashes keep the text as it was.
Are the scripts in the HTML run?
No. Script and style elements are removed with their contents, and the browser parses the HTML into a separate document in which scripts are marked as non-executable.
Which heading style should I choose?
ATX (# Heading) works for all six levels. Setext underlines only levels 1 and 2, so a document with deeper headings mixes both styles. If the Markdown joins other documents, pick the style they already use.
Does this tool send my HTML anywhere?
No. The conversion runs in your browser. Nothing you paste leaves the page, and the .md file is made on your computer.
Need this for many accounts, or in your code? The Pipefetch API returns the data as JSON, one GET request at a time. Get an API key with 100 free credits, no card needed.
APIs that return this data
Guides
More free tools
- Instagram engagement rate calculator
- TikTok engagement rate calculator
- YouTube engagement rate calculator
- X (Twitter) engagement rate calculator
- LinkedIn engagement rate calculator
- Facebook engagement rate calculator
- SRT to VTT converter
- VTT to SRT converter
- Subtitle file to plain text
- YouTube video ID finder
- YouTube timestamp link generator
- YouTube thumbnail downloader
- Email extractor
- X API cost calculator
- JSON to CSV converter
- CSV to JSON converter
- cURL to Python converter
- cURL to JavaScript fetch converter
- robots.txt tester
- Google search snippet preview
- Meta title and description length checker
- Instagram profile viewer
- Instagram profile picture viewer