Markdown Tools › Medium Post to Markdown

Converter

Medium Post to Markdown converter

Migrating articles from Medium to a personal blog, Astro/Next.js site, Hugo theme, or a Markdown book manuscript often leaves you stuck with messy HTML markup. Medium articles include numerous wrapper divs, tracking attributes, and custom classes.

This tool strips away proprietary Medium formatting classes (like graf and pw attributes) while preserving the core structure of your post: title, section headings, paragraphs, pullquotes, code snippets, lists, and images. It produces clean, standard GitHub Flavored Markdown.

Paste the HTML copied from your Medium story into the text area below and click Convert. You can preview the generated Markdown syntax, inspect word and line counts, and download the finished .md file with a single click.

OR UPLOAD .HTML FILE

Uploads and text are converted securely in memory and deleted immediately.

How to use it

  1. Copy the HTML of your Medium post (from your Medium story or inspect element) and paste it into the box below.
  2. Click Convert to Markdown to strip wrapper tags and produce clean Markdown.
  3. Click Download to save the .md file, or copy the Markdown to your clipboard.

Worked example

Converts cleanly to # My Medium Story, bold text, and a Markdown blockquote.

Questions

How do I copy HTML from a Medium post?
Open your Medium story, right-click and choose Inspect (or view source), copy the <article> or post body HTML, and paste it into the converter. You can also copy rendered text directly.
Does this tool strip Medium's custom classes and noise?
Yes. It eliminates Medium's internal classes such as graf, graf--p, and pw- attributes, generating clean GitHub Flavored Markdown without junk tags.
How do I download the converted Markdown file?
Once converted, click the prominent 'Download .md' button to save the file directly to your computer.
Can I import the resulting Markdown into MarkdownBooks to make an eBook?
Yes! The converted Markdown follows standard manuscript rules, so you can upload it on our home page to compile a print-ready PDF, EPUB, or Word document.

Turn your Markdown into a book

Related tools