Skip to content
Convert Evernote .enex files to markdown and extract the attachments with correct file dates.
Python Batchfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Evernote Dump

Export extract evernote notes and attachments from .enex files.

All notes and attachments will keep their original file created and accessed dates. Notes will be converted to markdown format. Tags and other embedded information will be formatted and added to the end of each note.

Evernote Dump works by streaming the .enex file through a parser so even extremely large .enex files should work.

Quick Run

Windows: Double click the "Evernote Dump.bat"


Before running the script be sure to install.

pip install -r requirements.txt



Run using python 3



Run using python 3:

python FILE.enex

or for exporting all enex files in a folder, use:

python *

it will weed out all other non-enex files. If your system is setup to default to python 2 run using:

python3 FILE.enex

All attachments found will be output the the "ENEX-FILE-NAME-ROOT/media" folder as where you called .

All the files found in the enex files will be put in the folder


  • Export Note Attributes
    • Export Tags
  • Allow multiple files and export to seperate folders.
  • Export all attachements.
  • Keep the modified dates.
  • Keep file names if desired.
  • Make multilingual just for fun.
    • Add multilingual to processing text.
  • Export actual notes.
    • Add links to the images that were extracted.
    • Add resourse attributes.
  • Convert notes to mark down.
  • Add more error check to combat human errors
  • Get rid of cleanup warning.
  • Clean up the code!

Evernote Enex File Map

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE en-export SYSTEM "">
<en-export export-date="20130730T205637Z" application="Evernote" version="Evernote Mac">
        <title>Test Note for Export</title>
            <![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?>
            <!DOCTYPE en-note SYSTEM "">
            <en-note style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
                Hello, World.
                    <en-media alt="" type="image/jpeg" hash="dd7b6d285d09ec054e8cd6a3814ce093"/>
            <data encoding="base64">/9j/4AAQSkZJRgABAQAAAQABAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZ
            <!-- ... -->
				<attachment>true</attachment> #DOUBLE CHECK
				<application-data>Developer place 4K</application-data>

You can’t perform that action at this time.