HTML to Markdown Converter

Sumber HTML

Baris: 0 · Karakter: 0

Output Markdown

Baris: 0 · Karakter: 0

Markdown akan muncul di sini

Tempel HTML, unggah file, atau ambil URL untuk membuat Markdown.

Opsi lanjutan

Semua pemrosesan berjalan lokal di browser Anda. Data Anda tidak pernah dikirim ke server kami.

What is HTML to Markdown?

HTML to Markdown Converter turns pasted HTML, uploaded .html files, or fetched webpages into clean Markdown for docs, README files, blog drafts, changelogs, and AI prompts. Paste and upload workflows run locally in your browser, while URL mode uses a guarded server fetch endpoint so pages can be converted without browser CORS issues.

How to use

1. Choose Paste, URL, Upload, or Sample mode. 2. Add HTML directly, upload a .html or .htm file, or fetch a page URL. 3. Adjust formatting, cleaning, main-content extraction, image handling, and relative URL options. 4. Review raw Markdown, rendered preview, statistics, and conversion warnings, then copy or download the result as .md or .txt.

Formatting options

The converter supports ATX or Setext headings, -, *, or + bullets, fenced or indented code blocks, backtick or tilde fences, emphasis and strong delimiters, inline or reference links, GitHub Flavored Markdown tables, and configurable image handling.

Cleaning and extraction

Cleaning options can remove scripts, styles, comments, nav, header, footer, empty tags, and noisy whitespace before conversion. Readability mode uses a deterministic main-content heuristic to prefer article, main, role=main, and high-text content blocks for webpage-like HTML.

URL fetch safety

URL mode accepts only HTTP and HTTPS URLs, follows a small number of validated redirects, blocks localhost and private network ranges, caps HTML input at 2 MB, and times out after 10 seconds. Some sites block server-side requests or require JavaScript rendering; paste the page HTML when that happens.

Limitations

Markdown cannot represent every HTML layout. Complex tables with merged cells are flattened, unsupported tags become plain content when possible, scripts are not executed, CSS layout is ignored, and generated Markdown may still need light editing for highly designed webpages.