Where do my notes written in the Notes application on my Mac get saved?

I'm using the Notes app that comes with my Mac, but I can't find where the notes are getting saved in the Finder.

Where can I find these files?


Solution 1:

For 10.11 (El Capitan), look in:

~/Library/Group Containers/group.com.apple.notes/

Solution 2:

I just recovered my Notes on 10.9.2 installation, the file is SQLite 3.x database located in ~/Library/Containers/com.apple.Notes/Data/Library/Notes/NotesV2.storedata

Solution 3:

In OS X 10.9 (“Mavericks”), at least, they’re not stored as individual text documents in a place where you can see them and manipulate them.

Even the notes that you choose to save “On my Mac” end up sandboxed in places like ~/Library/Containers/com.apple.Notes/Data/Library/CoreData/ExternalRecords/AA97DB8E-73B4-4C75-B54F-B39E5BC7521F/Note/_records/0/p6.notesexternalrecord, where ~/Library means the (usually invisible) “Library” folder that sits alongside your “Documents”, “Music” and “Pictures” folders.

You can see them by choosing Go to Folder… from the Go menu in the Finder and pasting in ~/Library/Containers/com.apple.Notes/Data/Library/CoreData/ExternalRecords. You’ll find yourself looking at a folder with a 32-character hyphenated name, which you can open. Then open the “Note” folder and then the “_records” folder. All your notes are two levels further down.

Alternatively, use the following Terminal command:

open ~/Library/Containers/com.apple.Notes/Data/Library/CoreData/*/*/Note/_records

There’s not much that you can do with them, however: they are not text or .rtf files, and I suspect that moving any of these files around or changing their contents directly might very well render individual notes irrecoverable — or possibly even break the Notes.app altogether.

If you’re looking for a quick note-taking app where your files are easily findable in the Finder and stored in standard .rtf or text format (with or without Markdown), you might look at Brett Terpstra’s free nvALT or at any of the other derivatives of Notational Velocity.