DEV Community

Cover image for Migrating Posts from Medium to DEV

Migrating Posts from Medium to DEV

coderarchive profile image Lu-Vuong Le 🎧💻 ・2 min read

Hi Everyone! 👋

As I create blog posts, I typically use multiple platforms aside from DEV such as Medium.

Now I have had some posts on Medium in the past that I wanted to move onto DEV. The problem was I didn't want to rewrite the posts on Medium to markdown for DEV, which would require a bit of effort.

Thus began my search for a way around this which led me to stumble onto this awesome tool!

How to migrate posts ❓

The tool I used is Medium Exporter. In order to use this, you can install this npm package globally via:

npm i -g mediumexporter

Now you should be able to run the following command to convert a medium post into an MD file

Format: mediumexporter [url] > [filename].md

mediumexporter >

Note: If you don't have it installed globally, you can also use npx which is what I'm using in the example below :)

Running the command

Demo CLI 1

View the file

Demo CLI 2

There may be some changes to make as it doesn't always convert everything correctly and you'll possibly need to deal with any images yourself but it usually helps with most of the work 👌

That about wraps it up for this short one! I'm also aware there is are some chrome extensions and other npm packages to do this as well but I haven't tried them out yet, this way seems to work well enough 😁

Discussion (2)

Editor guide
stevescruz profile image
Steve Cruz

This is a good tip. I have some posts in Medium and this will be useful. Thanks for sharing!

coderarchive profile image
Lu-Vuong Le 🎧💻 Author

Glad it was helpful!