HTML to Markdown, locally
Convert HTML source into editable Markdown
Use this HTML to Markdown converter to turn HTML source into a text-first document you can edit and move into a README, CMS, or documentation repository. Paste markup or load one .html or .htm file, convert it in your browser, then copy the result or download converted.md.
Useful for content migration
Start with an existing article, exported page, or documentation fragment and recover its headings, paragraphs, links, lists, emphasis, code, and table structure as editable Markdown. The generated text gives you a clean base for a repository or Markdown-first publishing workflow.
Sanitized before conversion
The source is sanitized locally before it is passed to the Markdown serializer. Unsafe elements and presentation-only details may be removed, so the result represents document structure rather than a pixel-for-pixel copy of the original page.
Review links and structure after conversion
Check heading levels, link destinations, lists, code blocks, and tables before you publish. One HTML file up to 10 MB is supported. This tool does not preserve external CSS, scripts, interactive behavior, or every custom HTML element. To turn the cleaned Markdown back into web output, use Markdown to HTML; for an office document, use Markdown to Word.
Prepare HTML for a better Markdown result
Start with the smallest meaningful fragment. Remove navigation menus, cookie banners, advertising blocks, and repeated footer content when they do not belong in the document you want to migrate. If the source is a full page, identify the article or main content region before pasting it.
Use real heading elements for section titles and ordinary paragraphs for body text. A visual heading created only with a large font may not carry the same meaning into Markdown. Lists should use list elements, and tabular information should use a real table rather than a grid of positioned divs.
Keep a copy of the original HTML before editing. The converter gives you an editable starting point, not an archive of the source page. Save any licensed images, captions, or metadata through your normal content process before replacing the original markup.
If the source page was generated from a database or CMS, note the export method and any filters that were applied. A Markdown file can look complete while a personalized view or paginated result excluded records. Confirm the scope with the content owner before calling the migration finished.
Keep a small, non-sensitive fixture for future checks. Re-running it after a dependency or template change can reveal whether headings, links, tables, or sanitization behavior has shifted. This record makes local conversion easier to trust without turning the browser tool into a hosted content service.
What the serializer preserves
Common headings become ATX-style headings such as # Title and ## Section. Paragraphs remain separated text blocks. Strong and emphasis elements become Markdown markers, links retain their destination and label, and ordered or unordered lists become editable list syntax.
Code blocks and simple tables can transfer when the HTML structure clearly communicates them. The exact output depends on source nesting and supported serializer rules. Review a representative heading, link, list, table, and code example instead of assuming every custom component has a direct Markdown equivalent.
Whitespace and visual spacing are simplified deliberately. Markdown describes document meaning rather than the full cascade of a browser stylesheet. If a line break, indent, or empty cell carries meaning, inspect the result and edit it explicitly before handing the file to another system.
Content migration scenarios
Technical writers can recover documentation from an existing static page and move it into a Markdown repository. Product teams can convert a CMS export into a source file for review. Developers can strip a demo page down to text structure before rebuilding it with a new template.
Editors may use the output to compare an old article with a new information architecture, prepare a README from a rendered guide, or move a public FAQ into a version-controlled source. Keep the original URL and revision date in project notes so the migration remains traceable.
Researchers, educators, and analysts can use the converter for a small article excerpt or report section. Confirm citations, table captions, language metadata, and permissions in the destination workflow. A successful conversion does not certify copyright, attribution, or institutional compliance.
Sanitization and security boundaries
The HTML is sanitized in the browser before it is passed to the Markdown serializer. This helps remove unsafe tags, attributes, and active content, but it is not a substitute for validation at the CMS or deployment boundary that will eventually publish the Markdown.
Scripts, event handlers, embedded objects, iframes, styles, and unsupported custom elements may disappear. Treat that behavior as a safety and portability boundary. If an element is essential, represent its meaning with ordinary text or recreate it deliberately in the approved destination system.
Do not paste credentials, access tokens, private keys, or unnecessary personal information into a test document. Local processing avoids an upload request from this route, but browser extensions, history, downloads, backups, and synchronized folders can still create copies on your device.
Style, links, and asset handoff
Markdown does not carry the original page's CSS design. After conversion, decide how headings, tables, code, blockquotes, and links should look in the destination theme. Add styles through the receiving site rather than copying unrelated inline CSS into the Markdown.
Check every link destination and remove tracking parameters or internal paths that should not be shared. An HTML page may contain navigation links, fragment IDs, or application routes that make sense only in its original site. Replace them with stable, descriptive links for the new context.
Images require separate asset handling. Confirm filenames, licenses, alternative descriptions, and storage locations before adding references back to Markdown. Remote image URLs may contact their hosts when rendered, so follow your team's content-security and privacy process.
Edit and review the Markdown output
Use the output editor to shorten headings, remove boilerplate, repair a list, or clarify a link label. Keep one idea per paragraph and use blank lines to make the source readable. If a table is too wide, split it into smaller tables with headings that explain the relationship between columns.
Search for duplicated titles, navigation text, hidden comments, placeholder labels, and accidental HTML fragments. Check that the first heading is appropriate for the destination page and that heading levels do not jump simply because the original site used a visual style.
When the document is important, compare the converted Markdown with the original HTML section by section. Mark intentionally omitted content, especially images, interactive widgets, form controls, or decorative callouts.
Troubleshoot common conversion issues
If the file is rejected, confirm that it is a real .html or .htm file and no larger than 10 MB. Pasting a small, non-sensitive fragment can help determine whether the problem is filename, encoding, or source structure.
If headings or lists disappear, inspect the original elements and remove layout wrappers that obscure their semantics. If a table is flattened, check whether it is a real HTML table or a CSS grid. The serializer cannot infer relationships that the source markup never expressed.
If the result works in a text editor but not in your CMS, compare allowed Markdown features, link rewriting, front matter requirements, and sanitization rules. Adapt the output to the receiving system instead of repeatedly converting the same page.
Accessibility and destination checks
Use heading levels to express hierarchy, descriptive link text for navigation, and concise table headers. If the original page relied on color or icons to communicate status, rewrite that meaning in words so the Markdown remains understandable without the old stylesheet.
After publishing, test keyboard navigation, zoom, contrast, code readability, and responsive table behavior in the destination. A clean Markdown file can still become inaccessible when a site template introduces poor focus styles, low contrast, or overflowing tables.
Review language attributes, page titles, summaries, and metadata in the destination template. The converter creates content structure; it does not know the canonical URL, author, publication date, or structured data your site requires.
Keep a reliable migration record
Store the original HTML, converted Markdown, source URL, and migration date according to your team's retention policy. Clear filenames make it easier to identify which version was reviewed and which file is authoritative.
When several people review a migration, ask them to comment on the Markdown or destination page rather than creating disconnected copies. Record intentional omissions and manual edits so a future editor can repeat the process without guessing.
For related workflows, use Markdown to HTML for a web handoff,Markdown to PDF for a fixed snapshot, and Markdown to Word for an editable office document. Check the how it works guide for the local-processing model.