Evernote
Trilium can import ENEX files, which are used by Evernote for backup/export. One ENEX file represents the content (notes and resources) of one notebook.
Import process#
The first step is to export the data from Evernote:
- To export a single notebook:
- In the left sidebar, select Notebooks.
- If you have a notebook stack, expand it.
- Right click on a notebook and select Export notebook.
- Make sure the following options are set:
- File format is set to ENEX format.
- All the options in Export note attributes are checked.
- To export a bunch of notes (up to 100 notes):
- In the left sidebar, select Notes.
- In the list of notes, Ctrl-click individual notes to select them. Alternatively, click on a note and then Shift-click a more distant note to select all the notes in between.
- At the bottom there should be a floating bar with some options. Select […] → Export.
- Make sure the following options are set:
- File format is set to ENEX format.
- All the options in Export note attributes are checked.
- To export a single note:
- Select the note.
- In the top-right, press the […] button and select Export.
- Make sure the following options are set:
- File format is set to ENEX format.
- All the options in Export note attributes are checked.
Once you have your ENEX files, do the following to import them in Trilium:
- In the Note Tree, right click and select Import into note.
- In the Import from section, select Evernote.
- During the import, you will see "Import in progress" message. If the import is successful, the message will change to “Import finished successfully” and then disappear.
- We recommend you to check the imported notes and their attachments to verify that you haven’t lost any data.
Supported features#
The following features are preserved by Trilium during the import process:
- Basic formatting (bold, italic, underline, strikethrough, colors, highlights, superscript, subscript, text alignment, inline code).
- The hierarchy of headings (these are shifted to start with H2 because H1 is reserved for note title, see Headings)
- To-do lists. The new task format is collapsed to standard to-do lists
- Images and Attachments
- Lists (with bullets or with numbers)
- Tables
- Block quotes
- Admonitions are preserved, including its emoji (added as part of the content).
- Code blocks, with a best-effort attempt to restore the language.
- Mermaid Diagrams
- Math Equations
- Toggle sections
- External links
- Internal links are re-written to Internal (reference) links if the target note is part of the same import.
Limitations#
- The size limit of one import is 250Mb. If the total size of your files is larger, you can increase the upload limit, or divide your files, and run the import as many times as necessary.
- All resources (except for images) are created as notes’ attachments.
- If you have HTML inside ENEX files, the HTML formatting may be broken or lost after import in Trilium. See Reporting issues.
Links to other notes#
Since v0.104.0, the ENEX importer tries to recreate links to other notes automatically by converting their Evernote-specific URLs to Trilium's Internal (reference) links.
Since the ENEX format does not provide the unique ID of notes, the note references are determined via their note title.
Limitations:
- Only notes that are part of the same import will have their links rewritten to reference links, to avoid linking to the wrong note.
- If there are to notes with the same name, internal links will not be created to avoid pointing to the wrong note.
- Links that couldn't be rewritten (e.g. referring to a missing/duplicate note) will be kept with their original
evernote://URL. - It will not fix links to anchors and links to notes that you renamed in Evernote after you created the links.
Post-processing notes#
If you want to restore the internal links in Trilium after you import all of your ENEX files, you can use or adapt this custom script: Process internal links by title
The script does the following:
- It finds all Evernote internal links.
- For each one, it checks if its link text matches a note title, and if yes, it replaces the Evernote link with an internal Trilium link. If not, it leaves the Evernote link in place.
- If it finds more than one note with a matching note title, it leaves the Evernote link in place.
- It outputs the results in a log that you can see in the respective code note in Trilium.
The script has the following limitations:
- It will not fix links to anchors and links to notes that you renamed in Evernote after you created the links.
- Some note titles might not be well identified, even if they exist. This is especially the case if the note title contains some special characters. Should this be problematic, consider Reporting issues.
Reporting issues#
When importing your Evernote notebooks, you might find issues in how a note is imported; in that case consider reporting it.
When reporting such an issue make sure to provide the following information:
- A
.enexexport of the original note. This allows us to reproduce the issue. - A screenshot with how it originally looked like before the import and how it looks after the import.