Import from Evernote to Notion

detailed guide to import notes with images from Evernote to Notion

Views
Image credit: Wang Jiwei

Welcome

I have been using Evernote for some years but now I want to switch to Notion. I don’t know why, just want to try something new.

Notion has a nice import function and you can import your notes from many different sources including markdown file and Evernote. However, if you import from Evernote directly, images and attachments to your notes will not be imported. I googled but could not find a direct solution from Notion.

TL;DR

In short, what I did is to convert Evernote file into markdown file and then import the markdown file into Notion directly.

Export your notes from Evernote

This should be easy, just login to your apps and right click on your note. You should see an option to export the notes. The exported file has an extension of .enex. If you don’t know how to export, please google.

Convert ENEX file to MARKDOWN file

If you google, there are many ways to do this. What I did is to use another note taking apps called Joplin. Follow the instructions to install Joplin and then import the enex file.

Import ENEX to Joplin

After import, you may want to double check your notes and make sure all the images and attachments are also imported. My notes don’t have attachments but I assume it should work.

Then you can export all your Joplin notes into markdown files. You will be prompted to select a local folder to save the files.

From MARKDOWN to Notion

This is another tricky step. You can import from markdown file to Notion directly but somehow it does not show my pictures.

Notion does not show images

I found a Python package and it works: Notion.so Markdown Importer

Install md2notion package in Python

I am using Anaconda for Python and I typically use conda for installation of packages. But it seems md2notion does not support conda yet. So just use pip install md2notion to install the package.

Install md2notion

Using md2notion to import

Before using md2notion, you need to find your personal token for your notion account.

  1. login to your account on the notion.so website
  2. If you are using Google Chrome, click the lock icon before the URL address bar lock icon
  3. Click Cookies
  4. Click www.notion.so, then Cookies, then token_v2
  5. Double click Content value and copy it, this is your unique token for the notion webpage

Then, run the following command to import

python -m md2notion [token_v2] [page-url] [...markdown_path_glob_or_url]

Replace [token_v2] with the value you copied from your browser, page-url with the URL of your notion page (you can add a new page for all the imported files), [...markdown_path_glob_or_url] with the absolute directory path for your local markdown files which you exported from Joplin. Note that you need to specify the file names rather than just the folder. If you want to import multiple files, you may use *.md, for example, C:\Users\jiwei\Desktop\md\PersonalNotes\*.md

It will then start to import all the markdown files into your notion account with all images and attachments (I assume so).

Done!

Btw, Joplin is open source and free, why not try it?

Wang Jiwei
Wang Jiwei
Associate Professor

My current research/teaching interests include digital transformation and data analytics in accounting.

Related