HTML to Markdown Converter — Lists, Code and Simple Tables

Convert pasted HTML to Markdown in your browser. Preserve headings, nested lists and code; convert simple tables and inspect the text before copying.

🔒 Local processing
⚡ Free to use
🌐 Runs in your browser
📦 See output options
⚡

HTML to Markdown Converter — Lists, Code and Simple Tables

Tool workspace

Ready

Loading tool...

  1. Paste HTML source, up to 100,000 UTF-16 units.
  2. Click Convert.
  3. Review the Markdown, especially tables, links and code blocks.
  4. Copy the result and preview it in your destination editor.

Convert an HTML snippet into editable Markdown

Paste HTML source to turn headings, paragraphs, emphasis, nested lists, blockquotes, links, images and code into Markdown text. Conversion runs in the browser. This is useful when moving a documentation fragment into a Markdown editor. It does not fetch a web address or reproduce a page’s visual design.

What the output preserves

Headings use # markers, lists retain nesting, and preformatted code uses fenced blocks. A language class on a code element, such as language-python, supplies the fence label. Inline code containing backticks receives a suitable delimiter. Literal Markdown punctuation in ordinary text is escaped. CSS layout, fonts, colors, scripts, event handlers and interactive controls are not preserved as a working webpage.

How tables are handled

Rectangular tables without merged or nested cells become pipe tables. An all-th first row becomes the header; otherwise an empty header is added so that the first data row remains data. A pipe inside a cell is encoded as &#124; and a line break becomes <br>. Table alignment and styling are discarded. Merged, nested or uneven tables fall back to rows of readable text with cells separated by a slash. Review these against the source; Markdown cannot express every HTML table structure.

Use and inspect the result

  1. Paste source markup, not a URL. The input limit is 100,000 UTF-16 units; some emoji use two units.
  2. Click Convert. The first conversion may need to load a local conversion module from this site.
  3. Check the resulting text. The totals count retained headings, links with href attributes and images with src attributes, after sanitization.
  4. Copy and preview in your destination. Clipboard permissions can prevent automatic copying; selecting the output remains available.

Changing the input clears the previous output and statistics. Conversion does not run automatically as you type. Clear removes the input and result.

Images, links and safety limits

The source is parsed in an inert template and sanitized before conversion. The tool displays text rather than rendering the pasted page. Image elements become Markdown references; image files are not embedded or downloaded by this conversion step. Relative URLs stay relative, so they may need a new base path when moved. Your destination preview may load linked images. Review destinations before publishing; conversion is not a certification that every link is safe.

The conversion code does not upload the pasted source. Loading this website and its modules still involves network requests, and offline availability is not guaranteed. Browser HTML parsing can repair malformed markup, but that does not guarantee it recovers your intended structure. Split unusually complex input into smaller sections if conversion fails.

Review in the target editor

Table and strikethrough support varies between Markdown renderers. Preview the final document with your publishing system; this tool does not claim full conformance to every Markdown dialect. For a local rendering check, use Markdown Preview. Keep the original HTML when layout, forms or complex tables matter.

Frequently asked questions

Can I enter a webpage URL?

No. Paste the HTML source; this tool does not fetch pages.

Are merged table cells preserved?

No. Tables with merged, nested or uneven cells become readable text rows, so review their structure manually.

Are image files included in the output?

No. The output contains references to their original source paths. A destination preview may load those images.

Does editing the input update the result automatically?

No. Editing clears the old result; click Convert again.