Convert HTML Unordered Lists to Markdown Bullet Lists
Convert HTML <ul> and <li> elements to Markdown bullet lists using dash (-) syntax. Covers nested lists, list items with multiple paragraphs, and mixed content.
Detailed Explanation
HTML Unordered Lists to Markdown
HTML unordered lists (<ul> with <li> children) convert to Markdown bullet lists using -, *, or + as markers. Most converters default to -.
Basic Unordered List
<ul>
<li>Apples</li>
<li>Bananas</li>
<li>Cherries</li>
</ul>
Converts to:
- Apples
- Bananas
- Cherries
Nested Unordered Lists
<ul>
<li>Fruits
<ul>
<li>Apples</li>
<li>Bananas</li>
</ul>
</li>
<li>Vegetables
<ul>
<li>Carrots</li>
<li>Peas</li>
</ul>
</li>
</ul>
Converts to:
- Fruits
- Apples
- Bananas
- Vegetables
- Carrots
- Peas
Each nesting level is indented by 2 or 4 spaces (depending on the converter's configuration).
List Items with Rich Content
<ul>
<li><strong>Item one</strong> — with emphasis</li>
<li>Item two with <a href="https://example.com">a link</a></li>
<li>Item with <code>inline code</code></li>
</ul>
Converts to:
- **Item one** — with emphasis
- Item two with [a link](https://example.com)
- Item with `inline code`
Inline elements within list items are converted recursively.
List Items with Paragraphs
<ul>
<li>
<p>First paragraph of item.</p>
<p>Second paragraph of item.</p>
</li>
<li>
<p>Another item.</p>
</li>
</ul>
Converts to a loose list with blank lines between paragraphs, indented under the list marker.
Handling Empty or Whitespace-Only Items
Empty <li> elements are typically skipped or output as empty markers. Leading and trailing whitespace in list items is trimmed.
Use Case
Unordered list conversion is needed when migrating navigation menus, feature lists, sidebar content, and any bulleted content from HTML to Markdown. It is one of the most common structural elements encountered during web content migration.
Try It — HTML to Markdown
Related Topics
Convert HTML Ordered Lists to Markdown Numbered Lists
Lists & Tables
Convert Deeply Nested HTML to Clean Markdown
Real-World HTML
Convert HTML Tables to Markdown Pipe Tables
Lists & Tables
Convert HTML Bold and Italic to Markdown Emphasis
Text Formatting
Convert HTML Links and Images to Markdown Syntax
Media & Links