HTML to Markdown Converter
Your input stays in your browser and is never sent.Convert HTML files (.html / .htm) or pasted HTML to Markdown, keeping headings, tables, lists, links and code. Conversion runs entirely in your browser.
What the HTML to Markdown Converter Can Do
This free online tool converts HTML files (.html, .htm) or pasted HTML code to Markdown entirely in your browser. The HTML you load is never sent anywhere, and headings, tables, lists, links, code blocks and other main formatting carry over to the Markdown.
- Load HTML files (.html, .htm)
- Drag and drop or click to choose saved .html, .htm or .xhtml files and convert them to Markdown. Several files can be converted at once and the results saved together as a ZIP.
- Paste HTML code as a second way in
- Paste HTML copied from a blog editor or developer tools into the input box and it is converted to Markdown. A full page source or just an article body both work.
- Formatting kept in the Markdown: headings, tables, lists and code
- H1–H6 headings, paragraphs, bullet and numbered lists, tables (GFM pipe syntax), links, inline code (`code`), code blocks (```), bold and italics are kept. script and style tags are removed automatically for safety.
Convert HTML to Markdown in 3 Steps
- Drag and drop .html or .htm files, or paste HTML source into the "Paste HTML" tab
- Check the settings, convert, and review the result in the preview
- Copy it to the clipboard or save it as an .md file
The HTML Files You Load Are Never Sent Anywhere
How the HTML to Markdown conversion stays in your browser (turndown)
The tool uses a library called turndown to read the HTML directly in your browser and turn it into Markdown on the spot. Neither the contents of HTML files nor pasted code is sent to a server.
Why HTML you can't share is safe to convert
Because no network traffic happens, you can convert articles exported from an internal CMS, unpublished drafts or HTML design documents without worry. Once you close the tab, nothing is left behind.
When HTML to Markdown Conversion Helps
- Moving HTML blog postsWhen moving existing HTML posts to another blogging platform, turn just the article body into Markdown and paste it in.
- Cleaning up before giving it to AIBefore passing fetched HTML to a generative AI, turn it into clean Markdown without the tag noise.
- Importing into a knowledge baseBring HTML exported from an internal CMS or WordPress into Obsidian or Notion as Markdown.
Converting Other Formats to Markdown
- PDF to Markdown ConverterTurn a PDF into Markdown.
- Word to Markdown ConverterTurn a Word document (.docx) into Markdown.
- Excel to MarkdownTurn Excel (.xlsx) tables into Markdown.
- PowerPoint to Markdown ConverterTurn a PowerPoint deck (.pptx) into Markdown.
- URL to Markdown ConverterCreate Markdown from a web page URL.
Frequently Asked Questions About the HTML to Markdown Converter
Does it support .htm files too?
Yes. .html, .htm and .xhtml files can all be dropped in and converted to Markdown.
Can I paste HTML code instead of loading a file?
Yes. Besides loading files, the "Paste HTML" tab accepts a full page source or just part of an article.
Which formatting is kept after conversion?
Headings (H1–H6), bullet and numbered lists, tables (GFM pipe syntax), links, inline code and code blocks (```) are kept.
Are the HTML files I load sent to a server?
No. Everything happens inside your browser, so neither loaded files nor pasted HTML is sent to or stored on a server.
Does converting HTML to Markdown reduce LLM token usage?
Usually by a lot. Markdown drops tags, attributes and inline styles and keeps the text and its structure, so the same content takes far fewer tokens.
Can I use it to migrate a WordPress post to Markdown?
Yes. Paste the post's HTML or save the page as .html and add the file. Check embedded media and shortcodes afterwards, because they have no Markdown equivalent.
Related tools
- Excel to MarkdownTurn Excel (.xlsx, .xls, .csv) into Markdown tables. Each sheet gets its own heading and table, ready to copy or save as .md. Free, no sign-up, and your file is never uploaded.
- Markdown Table GeneratorBuild a Markdown table by choosing rows and columns. Paste from Excel or Google Sheets, and export as HTML or CSV too.
- Markdown to HTML ConverterConvert Markdown to HTML. The preview and HTML update as you type, with support for tables, task lists and strikethrough.
- URL to Markdown ConverterEnter a web page URL and get it back as Markdown, with headings, tables, lists and links kept. Handy for feeding pages to an AI assistant or tidying research notes.
- JPG to PDF ConverterCombine JPG images into one PDF. Reorder pages and pick the page size and margin. Free, no sign-up, and your images are never uploaded.
- PNG to PDF ConverterCombine PNG images, such as screenshots and diagrams, into one PDF in the order you choose. Free, no sign-up, and your images are never uploaded.
- WebP to PDF ConverterCombine WebP images, including ones saved from the web, into one PDF. Free, no sign-up, and your images are never uploaded.
- Image to PDF ConverterCombine JPG, PNG, WebP, GIF and BMP images, even mixed together, into one PDF. Free, no sign-up, and your images are never uploaded.
- HEIC to JPG/PNG/WebP ConverterConvert iPhone HEIC photos to JPG, PNG, or WebP. Batch conversion with quality control.
- SVG to PNG ConverterConvert SVG files to PNG for free at 1x, 2x or 4x. Transparency is preserved, so logos and icons stay usable over any background.
- SVG to JPG ConverterConvert SVG files to JPG or JPEG for free. JPG cannot hold transparency, so you choose the background color and the export scale.
- WebP ConverterConvert images to WebP or WebP to JPG/PNG. Reduce file size with modern web-optimized format.
- PNG ⇔ JPG ConverterConvert between PNG and JPG formats. Adjust quality and handle transparent backgrounds.
- Bulk Image ConverterConvert a mixed folder of PNG, JPG and WebP files to one format at once, with optional resizing and a single ZIP download.
- Color Code Converter (HEX, RGB, HSL)Convert a color code between HEX, RGB and HSL in any direction. Every form is listed side by side, including the one PowerPoint accepts.
- RGB to HEX ConverterTurn an RGB value (59, 130, 246) into a HEX color code (#3B82F6). The forms without # and with alpha are listed too, ready to copy.
- HEX to RGB ConverterTurn a HEX color code (#3B82F6) into RGB (59, 130, 246). The R, G and B numbers PowerPoint asks for can each be copied on their own.
- CSS Gradient GeneratorBuild linear, radial and conic gradients by moving the angle and color stops, then copy the CSS. The CSS shown is exactly what the preview uses.
- CSS Cursor ListBrowse all 36 values you can give the CSS cursor property and try each as a real cursor. Press a card to copy cursor: value;.
- CSS Filter GeneratorMove sliders for nine CSS filter functions — blur, brightness, contrast, grayscale and more — and copy the CSS while watching Before and After. You can try it on your own image.
- Reorder & Delete CSV ColumnsDelete the CSV columns you don't need and drag the rest into any order, then save. Handy for removing personal data columns.
- CSV Encoding ConverterChange a CSV file's character encoding to UTF-8, Shift_JIS and more. Fixes garbled text when Excel opens the file.
- Merge CSV FilesCombine several CSV files into one. Stack rows or place columns side by side. Shift_JIS files merge as they are, and nothing is uploaded.
- CSV to Excel ConverterConvert CSV files to Excel (.xlsx). The encoding is detected automatically so text is not garbled, and column widths fit the content. Nothing is uploaded.
- CSV ViewerOpen a CSV or TSV file as a table and check what is inside. The encoding is detected automatically, and you can sort columns and filter rows by text. Free, no sign-up, and your file is never uploaded.
- Excel CompareCompare two Excel workbooks sheet by sheet and see added rows, deleted rows and changed cells in color. Export the result as a colored workbook. Free, no sign-up, and your files are never uploaded.
- Excel to CSV ConverterConvert Excel files (.xlsx/.xls) to CSV or TSV. Export every sheet as its own CSV file.
- TSV ⇔ CSV ConverterSwap tab-separated (TSV) and comma-separated (CSV) data. Convert files or pasted text.
- Zengin Format Transfer File GeneratorTurn a CSV payment list into a Zengin format bank transfer file for general, salary or bonus transfers, with half-width katakana handled for you.
- PDF to Markdown ConverterConvert PDFs to Markdown. Headings, tables and lists are found from text size and layout and kept as structure, and scanned PDFs are read with OCR. Conversion runs entirely in your browser.
- PowerPoint to Markdown ConverterConvert PowerPoint (.pptx) files to Markdown. Each slide gets a ## heading, with body text, bullet lists and speaker notes kept. Conversion runs entirely in your browser, so it is safe for confidential decks.
- Word to Markdown ConverterConvert Word (.docx) files to Markdown, keeping headings, tables and lists. Everything runs in your browser, so confidential documents stay on your device.
- Schema Markup GeneratorCreate JSON-LD schema markup by filling in a simple form. Local business, organization, article, FAQ and breadcrumb.
- Video to GIFTurn MP4, WebM and MOV clips into animated GIFs. Set the FPS, width and trim range. It all runs in your browser, so the video is never uploaded.
- ZIP File CreatorBundle several files of any type into one ZIP. Files are packed inside your browser and never uploaded.
- Compare CSV FilesCompare two CSV files and pull out the differences. Match rows on a key column and see added rows, removed rows and changed cells colour-coded.
- Time Zone ConverterFind out what a date and time in one city is somewhere else. Works for UTC too, and daylight saving is applied automatically.
- Online Ruler (Actual Size)Show a ruler on your screen at real-world size. Match the screen to a card you have on hand, then measure in cm and mm or in inches. Free, no sign-up.
- Unit ConverterConvert length, area, volume, weight, temperature, speed, time, angle, data size and fuel economy into every unit at once.
- Area ConverterConvert square meters, ares, hectares, square feet, acres and Japanese units such as tsubo and tatami mats in one go.
- Time ConverterConvert milliseconds, seconds, minutes, hours, days, weeks, months and years in one go.
- Angle ConverterConvert degrees, radians, gradians, arcminutes, arcseconds and turns in one go.
- Length ConverterConvert millimeters, centimeters, meters, kilometers, inches, feet, yards, miles and Japanese units such as shaku and ken in one go.
- Volume ConverterConvert milliliters, liters, cubic meters, spoons, cups, gallons and Japanese units such as gō and shō in one go.
- Temperature ConverterConvert Celsius, Fahrenheit, Kelvin and Rankine in one go.
- Weight ConverterConvert milligrams, grams, kilograms, tonnes, carats, ounces, pounds, stones and Japanese units such as monme and kan in one go.
- Speed ConverterConvert km/h, m/s, mph, knots, feet per second and Mach in one go.
- Data Size ConverterConvert bits, bytes, KB, MB, GB, TB and KiB, MiB, GiB, TiB in both decimal and binary units.
- Fuel Economy ConverterConvert km/L, L/100 km and US and UK mpg in one go.
- Oku Unit ConverterConvert Japanese large-number units (man, oku, chō, kei) to and from thousand, million, billion and trillion.
- MP3 to MP4Add a picture to an MP3 or other audio file and turn it into an MP4 video you can post on YouTube or social media. No picture? It uses a plain background. Free, no sign-up, and nothing is uploaded.
- MOV to MP4Convert iPhone MOV videos to MP4, or MP4 to MOV. When the video inside is compatible it is repackaged without re-encoding, so quality stays the same. Free, no sign-up, and the video is never uploaded.
- M4A to MP3Convert M4A to MP3, or MP3 to M4A. iPhone Voice Memos and other recordings work as they are. Free, no sign-up, and the file is never uploaded.
- M4A to WAVConvert M4A to WAV, or WAV to M4A. Get an uncompressed WAV that editing apps handle easily, or a compact M4A. Free, no sign-up, and the file is never uploaded.
- Audio ConverterConvert MP3, M4A, WAV, AAC and OGG audio to the format you need. You can also pull the audio out of FLAC files and MP4 or MOV videos. Free, no sign-up, and the file is never uploaded.