HTML to Markdown

HTML to Markdown

Convert HTML headings, paragraphs, nested lists, links, emphasis, and code into Markdown. HTML is read in a detached, inert template and returned as source text.

Input and results are processed in browser memory. This tool does not upload or save their contents. Shared site advertising, visitor analytics, and aggregate tool-use events may operate separately; those events do not include your input.

Comments & questions

HTML to Markdown

Move HTML document fragments into a Markdown editor. The converter preserves basic document structure such as headings, paragraphs, lists, quotes, emphasis, links, and code. It does not recreate CSS styling or page layout, and the result is Markdown source rather than a rendered preview.

Key features

  • Convert H1–H6 headings, paragraphs, quotes, emphasis, and nested lists.
  • Use delimiters longer than the backticks inside code to preserve code spans and fenced blocks.
  • Keep web, mail, and relative links while excluding active schemes such as javascript and data.
  • Choose Markdown image references or alternate text only.

How to use

  1. Paste an HTML fragment. Entering a webpage address alone does not fetch its contents.
  2. Choose whether images become Markdown references or alternate text only.
  3. Run, copy the source, and check formatting and links in your destination Markdown editor.

Use cases

  • Turn an HTML guide into a README draft
  • Preserve headings, lists, and links from an HTML article
  • Migrate HTML documentation containing code examples

Frequently asked questions

Does conversion execute scripts or load images?

No. The HTML is read inside a template that is never attached to the live page. Script, style, embedded-content, and hidden-attribute elements are excluded. Image URLs can remain in the output, but the converter does not fetch the images.

What happens to unsupported formatting?

CSS, interactive forms, JavaScript, and complex table layouts are not reproduced. Remaining text is generally kept, and tables are simplified into text rows. Strikethrough uses the ~~ extension and requires a compatible Markdown editor.

Are list numbering and code whitespace preserved?

Code blocks preserve spaces and blank lines, and nested lists use indentation. Ordinary HTML text whitespace is collapsed. Ordered-list start numbers are supported, but reversed lists and number jumps from individual li value attributes are not reproduced.

Which link and image URLs are supported?

HTTP, HTTPS, mailto, relative references, and fragments are supported. Other schemes and URLs containing control characters are omitted while display text remains. Relative links are not resolved against the original website, so check them in the new document location.

Why can a result be empty or conversion be limited?

Input containing only scripts, styles, or embedded content may produce an empty result. Input is limited to 100,000 UTF-16 code units and output to 1,000,000. Excessive nesting or node counts are also limited.

Privacy

Input and results are processed in browser memory. This tool does not upload or save their contents. Shared site advertising, visitor analytics, and aggregate tool-use events may operate separately; those events do not include your input.

Related Tools

Markdown PreviewHTML Tag RemoverHTML Entity ConverterDOCX Style AuditorCitation ManagerDocument Search IndexSigned PDF InspectorPDF/A Archival PreflightPrint Preflight AuditorSearchable Scan PDF MakerPublication Accessibility AuditorResearch Evidence MatrixPDF Form DesignerPDF Annotation StudioPDF Object InspectorPDF Outline EditorEPUB Authoring WorkbenchDocument Version ComparatorBooklet Imposition DesignerSensitive Text RedactorHanja Reading WorkbenchGrammar Production LabDialogue Script EditorBook Index BuilderBilingual QA CheckerText Diagram EditorANSI Art StudioEmail Thread ExplorerPDF Redaction StudioRich Text SanitizerFixed Width Record DesignerPresentation Rehearsal StudioText Tokenization LabThree Way Text MergeKorean & English Braille ConverterText to SpeechTyping speed testKorean Text Pattern ReviewKorean Spelling QuizFont Preview and ComparisonMojibake RepairSort LinesFind & ReplaceReverse TextRoman Numeral ConverterHangul Jamo ConverterKorean Initial ConsonantsAdd or Remove Line NumbersNumber to Korean WordsMorse Code ConverterROT13 & Caesar ConverterURL Slug GeneratorEmoji CollectionCharacter CounterUnit ConverterFile Size ConverterColor Code ConverterText DiffPDF Merge/SplitBusiness Day CalculatoriCalendar Rule LabvCard Address Book EditorJPG to PDFKorean Name RomanizerOrganize PDF PagesFancy Font GeneratorContrast CheckerColor Palette GeneratorPDF to JPGLorem Ipsum GeneratorText Template WorkbenchKorean-English Typo ConverterText CleanerOnline NotepadWord Cloud GeneratorPDF UnlockEnglish Address ConverterPDF Compressor
Explore all Text/Convert tools →Image/Media →Life/Fun →Dev Tools →