# HTML to Markdown

Convert HTML to clean Markdown, with scripts and styles dropped rather than left as text. Free, and nothing you paste is uploaded.

Canonical page: https://filetity.com/html-to-markdown

## Capabilities

- Free: Yes, with no watermark and no page limit.
- Account required: No. There is no account system.
- Processed on device: Yes. The file is read by your browser and never uploaded. There is no server to send it to.
- Formats: HTML in, whole pages or fragments. Markdown out, with a choice of bullet character, heading style and code block style.
- Limits: HTML can express things Markdown cannot, such as a table with merged cells or nested formatting. Those come through as the closest Markdown equivalent or as raw HTML, rather than being silently dropped.
- Mobile: Yes, on any modern mobile browser. Large files are limited by the memory the phone gives the browser.
- Offline: Yes, once the page has loaded. The tool keeps working with no network connection.

## Questions

### What happens to scripts and stylesheets?

They are removed entirely, tags and contents. The default behaviour of most converters is to drop the tag and keep the text inside it, which is how you end up with a Markdown file containing a stylesheet or a block of JavaScript in the middle of the prose.

### Will a complex table survive?

A simple one will. Markdown tables have no way to express a merged cell, a nested table or a cell containing a list, so anything using those comes through as raw HTML instead. That is lossless and readable, which beats a table quietly losing its structure.

### Can I choose the bullet and heading style?

Yes, and it matters if the result is going into a repository with a linter. Dashes or asterisks for bullets, and hash headings or the underlined style. Fenced code blocks or four space indentation. Pick what the project you are pasting into already uses.

### Should I paste a whole web page into this?

You can, and you will get everything: the navigation, the footer, the cookie banner. Copying just the article element gives a far cleaner result. The converter has no way to know which part of a page was the content, and guessing would sometimes throw away the thing you wanted.

### Do links and images keep working?

Their addresses are preserved exactly as written, which means a page using relative paths produces Markdown with relative paths in it. Those will break wherever the Markdown ends up, so if the source used them, expect to fix the links.

## Related tools

- [Markdown to HTML](https://filetity.com/markdown-to-html): Convert Markdown to HTML, as a fragment or a whole styled page.
- [HTML formatter](https://filetity.com/html-formatter): Beautify minified or messy HTML into something readable.
