Skip to content
DoItJag

HTML to Markdown

Convert HTML into Markdown for README files, wikis, notes apps and static websites. Paste HTML code, open an .html file, or copy part of a web page and paste it here: its headings, links, lists and tables come across as Markdown.

Markdown style

About HTML to Markdown

HTML to Markdown rewrites web markup as tidy Markdown text. Headings become hash lines, bold and italic become asterisks, links become square brackets followed by the address, and lists, quotes and code blocks keep their structure. Tables are turned into GitHub pipe tables with their column alignment, deleted text becomes strikethrough, and ticked checkboxes in lists become task-list items.

You do not need to see any code to use it. Select part of a web page, an email, a Word document or a Google Doc, copy it, and paste it into the box: the tool takes the formatted version from your clipboard and converts that. Bold and italic copied from Google Docs are recognised too. Scripts, style sheets, forms and buttons are dropped because Markdown has no place for them.

When to use it

  • You are moving old blog posts or help pages into a Markdown-based site or wiki.
  • You want to save an article as clean notes in Obsidian, Notion or a README.

Worked example

Copy a short web page section that has a level-two heading “Opening hours”, a sentence with “every day” in bold and “Monday” struck through, a two-column table of Day and Hours (Hours right-aligned, one row: Sat, 10–6) and a link reading “our site”. After Convert to Markdown, the result is:

## Opening hours / We are open **every day** except ~~Monday~~ Tuesday. / | Day | Hours | / | --- | ---: | / | Sat | 10–6 | / Book at [our site](https://example.com/book).

Good to know

  • Choose the style your project uses: hash or underlined headings, hyphen or asterisk bullets, fenced or indented code, and inline or numbered links.
  • Merged table cells cannot be expressed in Markdown, so the extra columns are left empty. A table inside a table stays as plain text.
  • Image links are kept but the images are never downloaded.
  • Everything runs in your browser, and pasted content is not stored.

How to use HTML to Markdown

  1. Paste HTML or formatted text, or open an .html file.
  2. Pick your Markdown style: headings, bullets, code blocks, bold, italic and links.
  3. Select Convert to Markdown, then copy the result or download a .md file.

Privacy: how it works

Everything happens in your browser. Your text is not sent to any server.

Frequently asked questions

Can I paste straight from a web page or Google Docs?

Yes. With “keep its formatting” ticked, pasting takes the formatted version from your clipboard, so headings, bold text, links and tables are converted rather than lost. Untick it to paste plain text only.

What happens to scripts, styles and forms?

They are left out. Markdown has no place for them, and dropping them keeps the result clean. Images keep their links but are not downloaded.

Are tables converted?

Yes, into GitHub-style pipe tables, with column alignment kept. Merged cells cannot be shown in Markdown, so they become empty cells, and tables inside tables stay as plain text.