HTML -> MARKDOWN · Local tool
HTML to Markdown
Convert HTML into clean Markdown, without the scripts and styles.
Last updated
How do I convert HTML to Markdown?
Paste the HTML into filetity's converter and clean Markdown appears beside it, in the browser tab with nothing uploaded. One default is deliberately changed from the underlying library's: script, style and noscript elements are removed entirely rather than having their contents kept as text, which is how a copied web page normally produces a Markdown file with a stylesheet sitting in the middle of the prose. You can pick the bullet character, the heading style and whether code blocks are fenced or indented, which matters when the result is going into a repository that lints its Markdown. Things HTML can express and Markdown cannot, such as a table with merged cells, come through as raw HTML rather than losing their structure silently.
01 / Your device
the file stays here
02 / Browser memory
the work runs locally
03 / Back to you
saved on this device
When you would use this
Situations, not settings.
- An article you want as clean notes
- Scripts and stylesheets are removed rather than left as text in the middle of the prose, which is the usual complaint about this conversion.
- Moving content out of a CMS into a repository
- Pick the bullet character, heading style and code block style your project's linter expects, rather than fixing them afterwards.
- A page with a table you need to keep
- Simple tables become Markdown tables. Anything with merged cells comes through as raw HTML instead of quietly losing its structure.
How it works / no cloud
A conversion engine, not an upload form.
Converted with turndown, with one change to its defaults: script, style and noscript elements are removed rather than having their contents kept as text. Left alone, a copied web page produces a Markdown file with a stylesheet pasted into the middle of it, which is the usual complaint about this conversion.
- Offline ready
- Installable app
- No file limit queue
Straight answers
No accordion. Nothing hidden.
- Is it free?
- Yes, with no watermark and no page limit.
- Does it need an account?
- No. There is no account system.
- Is my file processed on my device?
- Yes. The file is read by your browser and never uploaded. There is no server to send it to.
- What formats are supported?
- HTML in, whole pages or fragments. Markdown out, with a choice of bullet character, heading style and code block style.
- What are the 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.
- Does it work on mobile?
- Yes, on any modern mobile browser. Large files are limited by the memory the phone gives the browser.
- Does it work offline?
- Yes, once the page has loaded. The tool keeps working with no network connection.
- 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.
Keep working locally
3 available · more coming