---
title: HTML to Markdown Converter — Bidirectional Online Tool
url: https://varstatt.com/toolkit/html-md
description: Convert between HTML and Markdown instantly. Configurable heading style, list markers, and link format. Copy or download the result.
section: Developer Toolkit (https://varstatt.com/toolkit)
tags: markdown
related: Markdown (https://varstatt.com/toolkit/md), HTML ↔ MD (https://varstatt.com/toolkit/html-md), MD to PDF (https://varstatt.com/toolkit/md-pdf), MD to DOCX (https://varstatt.com/toolkit/md-docx)
---
# HTML ↔ Markdown

Convert between HTML and Markdown instantly. Configurable heading style, list markers, and link format. Copy or download the result.

## How It Works

1. **Choose direction** — Toggle between HTML → Markdown and Markdown → HTML conversion.
2. **Enter content** — Paste or type in the left panel. The right panel updates with the conversion.
3. **Configure and export** — For HTML-to-Markdown, adjust heading style, list markers, link format, and more. Copy or download the result.

## FAQ

### Is the conversion lossless?

Mostly, but some HTML constructs (custom classes, inline styles, complex layouts) may not have Markdown equivalents and will be simplified.

### What library is used?

HTML-to-Markdown uses Turndown (the same library used by many popular tools). Markdown-to-HTML uses the marked library with GFM support.

### Does it handle tables?

Markdown-to-HTML handles GFM tables. HTML-to-Markdown converts simple tables. Complex nested tables may need manual cleanup. You can preview your Markdown output with the [Markdown preview tool](https://varstatt.com/toolkit/markdown).

## Usage

This tool runs entirely in the browser — visit the URL above to use it.

Prefill inputs via URL parameters:

- `https://varstatt.com/toolkit/html-md?input=...`

## Related Tools

- [Markdown](https://varstatt.com/toolkit/md)
- [HTML ↔ MD](https://varstatt.com/toolkit/html-md)
- [MD to PDF](https://varstatt.com/toolkit/md-pdf)
- [MD to DOCX](https://varstatt.com/toolkit/md-docx)
