Export your Medium posts to Markdown

There’s a simple solution to avoid copy/pasting and re-editing your Medium articles.

Image for post
Image for post

First of all, you need to install node on your computer.

There is an installer for node for all platforms, just download it and install it like you would any other program:

Once you have this installed, you fire up the Command Prompt on Windows or Terminal on MacOS or Linux and run this command.

npm install -g mediumexporter

This installs mediumexporter. Once installed, you can export your Medium post to markdown format.

Go to the directory where you want to file to be exported to.

(on Windows)

cd c:\Users(username)\Desktop 

(on Mac)

cd ~/Desktop 

Next type on 1 line:

mediumexporter https://medium.com/p/export-your-medium-posts-to-markdown-b5ccc8cb0050 > medium_post.md

You’ll see a file called medium_post.md containing your Medium post in markdown format. You might have to adjust a couple of things, but most of the time it’s fairly good at preserving formatting and structure.

If you want it copied directly to your clipboard (on OSX) you can add the following (| pbcopy) :

mediumexporter https://medium.com/p/export-your-medium-posts-to-markdown-b5ccc8cb0050 | pbcopy

If you don’t like command line solutions there are also a Google Chrome Extensions, although they’re good and fast the result often does require a bit more editing:

Image for post
Image for post
If you enjoyed reading the article don’t forget to applaud.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium β€” and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store