Does HTML to Markdown remove script and style tags automatically?
Yes. Script, style, link, and meta elements are stripped automatically so only readable content, headings, links, code blocks, and tables remain.
Turn raw HTML pages, structured XML files, and minified JSON payloads into clean, readable Markdown locally in your browser.
Uses the browser DOMParser to walk HTML trees while discarding <script>, <style>, <link>, and <meta> tags; walks XML hierarchy into nested Markdown headings and bold leaf nodes; and pretty-prints JSON into fenced syntax-highlighted blocks.
Raw HTML pages are often 80%+ markup, inline scripts, and CSS classes. Stripping non-content tags before prompting an LLM cuts token usage dramatically and eliminates noise from RAG embeddings.
# api-docs
## Authentication
Send a Bearer token in the `Authorization` header on every request.
| Header | Required | Purpose |
| --- | --- | --- |
| Authorization | Yes | Scoped session token |
| Content-Type | Yes | application/json |
Need to convert live browser tabs or AI chats in one click? Install the free MarkItDown Companion browser extension. Download MarkItDown for Windows or read the Supported Formats documentation.
Yes. Script, style, link, and meta elements are stripped automatically so only readable content, headings, links, code blocks, and tables remain.
XML trees are walked recursively into headings and bold field labels, while JSON is pretty-printed inside a fenced json code block.
Yes. Install the MarkItDown Companion browser extension for Chrome, Firefox, or Edge to capture active pages and AI conversations directly.