Neatbo.

HTML to Markdown

Turn HTML source into Markdown text for editing or reuse.

Browser-local processingInputHTMLOutputMarkdownUp to 10 MiB per file · File limit: 1
  1. 1Add input
  2. 2Review and run
  3. 3Get your result

Tool input and files are processed in this browser without being uploaded.

Your input

or drag and drop it here

Files stay on this device. Your originals stay unchanged.

.html · .htm · .txt

Up to 10 MiB per file · File limit: 1

    0 characters · 0 bytes

    Inputs are kept temporarily in this tab when switching tools. Refreshing or closing clears them; large results may need to be regenerated.⌘ / Ctrl + Enter to run

    Preparing the tool…

    Before you start

    Convert headings, paragraphs, emphasis, lists, links and simple tables from HTML source into Markdown. Images become alt text, while scripts, styles and embedded frames are removed. Check the result against the source; page styling and layout are not preserved.

    How to use this tool

    1. Paste HTML into “HTML input”, or select a local HTML or text file. Clear the input box to use the file.
    2. Select “Convert to Markdown” to generate the result.
    3. Compare the Markdown with your source, then copy the complete text or download document.md. Check links, tables and code spacing before using it.

    Supported inputs and limits

    Pasted HTML is limited to 1 MiB of UTF-8 bytes, including spaces and line breaks.

    Choose one UTF-8 .html, .htm or .txt file up to 10 MiB, with a filename of at most 512 UTF-16 units including the extension. Conversion also limits decoded HTML to 1,048,576 UTF-16 units, so a file accepted by the picker may still be too long.

    Nonempty pasted text, including whitespace, takes priority over a selected file. The file still goes through size, filename and read checks. Empty input fails; nonempty source made only of whitespace or discarded elements can produce an empty Markdown file.

    Worked example

    Example input

    <h1>Title</h1><p>Hello <b>bold</b></p>
    Example options
    {}

    Example output

    # Title
    
    Hello **bold**

    When something does not work

    Keep the source HTML. If conversion fails, shorten the input, fix any reported character reference or re-save the file as UTF-8, then run it again. A failed conversion clears the result; file-selection errors or cancellation can leave an older result on screen. After editing, run again and check that the Markdown belongs to the current source.

    Frequently asked questions

    Are my files uploaded?

    No. HTML conversion runs in your browser. This tab can temporarily retain inputs and results while you switch tools, within size and time limits. Keep the original HTML and copy or download anything you need before refreshing or closing the tab.

    Which parts of the HTML are converted?

    The tool reads source markup without calculating CSS visibility or layout. It converts headings, paragraphs, emphasis, lists and code blocks. Links keep supported HTTP(S), email or page-fragment targets; other targets become their label text. Images become alt text. Tables use the first row as a Markdown header and pad shorter rows with empty cells. Merged-cell structure is not retained, and code spacing may change.

    Which input is used when I also select a file?

    Nonempty pasted HTML is used first, including spaces or line breaks on their own. Clear the text box to use the file; its contents must decode as UTF-8, and an initial UTF-8 BOM is omitted. A selected file is still checked and read even when pasted HTML is used, so remove it if you want to work only with pasted text.

    Documentation & further reading

    Related tools