Skip to content
XUtilHub

HTML to Markdown Converter Online

Convert HTML to clean Markdown: headings, links, lists, code blocks, emphasis and tables, ready for README files, docs and static sites.

  • Free, no sign-up
  • Runs in your browser, nothing uploaded
HTML
Markdown

About the HTML to Markdown

Convert web pages and HTML snippets into clean Markdown for README files, documentation, wikis and static site generators. Scripts and styles are removed.

Key features

  • Headings, paragraphs, bold and italics
  • Links and images
  • Bulleted and numbered lists, including nested ones
  • Fenced or indented code blocks
  • Simple tables become Markdown tables
  • Scripts and styles removed

Convert HTML to clean Markdown

Moving content from a website, CMS or rich-text editor into a README, docs site, wiki or static blog? Paste the HTML and get tidy Markdown you can edit as plain text.

Example

<h2>Install</h2>
<p>Run <code>npm install</code>, then see the <a href="/docs">docs</a>.</p>
<ul><li>Fast</li><li>Free</li></ul>

becomes

## Install

Run `npm install`, then see the [docs](/docs).

- Fast
- Free

Options

OptionChoices
Headings# ATX style, or underlined (Setext) for h1 and h2
Bullets-, * or +
Code blocksFenced (```) or indented

Markdown to HTML, HTML to text, and HTML formatter.

How to use the HTML to Markdown

  1. Paste your code into the input box, upload a file, or click Sample to try it out.
  2. Choose the options you want, such as indentation, line width or dialect.
  3. The result appears instantly in the output panel. Syntax errors are shown with their line and column.
  4. Click Copy to copy the result, or Download to save it as a file.

Frequently asked questions

Which Markdown flavor is produced?

Standard Markdown (CommonMark), plus GitHub-flavored tables. It works on GitHub, GitLab, most static site generators, Notion imports and documentation tools.

How are complex tables handled?

Simple tables are converted to Markdown tables. Markdown can't represent merged cells, so tables with rowspan or colspan are flattened into plain rows.

What happens to elements Markdown doesn't support?

Their text content is kept and the tags are removed. Scripts, styles and noscript blocks are removed entirely.

Can I convert a whole web page?

Yes. Paste the page's HTML. For the cleanest result, copy just the main content area instead of the full page with navigation and footer.

Is my code uploaded anywhere?

No. Every developer tool runs entirely in your browser, so source code, configuration files and passwords never leave your device.

Which formatter do you use?

HTML, CSS and JavaScript are formatted with Prettier, the most widely used code formatter, so the output matches what most projects use. SQL uses sql-formatter, and minification uses Terser and CSSO.

Is there a size limit?

There's no fixed limit. Very large files (several megabytes) can take a few seconds, depending on your device.

Last updated:

Related Dev tools