NoteStore.sqlite: can you recover deleted Apple Notes from it?
By Kayabyte · Last updated 14 November 2026
Short answer: NoteStore.sqlite is the database where the Notes app on a Mac keeps your notes. A note deleted long ago is not hidden inside the current file in a form you can read back, so the useful copy is an older one: the same file inside a Time Machine snapshot or an iPhone backup from before the deletion. Do not edit the live file. Work on a copy, or use an app that reads the older database read only and brings back only the notes you choose, such as NoteRescue.
Where the file is
On a Mac, Notes stores its data in a group container in your Library folder: ~/Library/Group Containers/group.com.apple.notes/, with NoteStore.sqlite inside it on recent macOS versions. Attachments and previews sit in folders next to it. The Library folder is hidden: in Finder choose Go, then hold Option to see Library.
A note’s text is not stored as plain text in a simple column. It is stored in a compressed, structured form inside the database, so opening the file in a database viewer shows rows and blobs, not readable notes. That is why “just open the sqlite file” rarely works for reading a note.
Why deleted notes are hard to get back from the live file
Recently Deleted keeps a deleted note for about 30 days, as Apple documents. After that the note is removed, and we know of no dependable way to read it back from the current file. Apple has no archive of older notes.
What does work
- Recently Deleted in Notes, within about 30 days. Also check iCloud.com Notes and Data Recovery in iCloud account settings.
- A Time Machine snapshot from before the deletion holds an older NoteStore.sqlite. Restoring it by hand puts an older copy of the whole Notes database in place, which can overwrite notes you made since. See restore Apple Notes from Time Machine.
- A Finder backup of an iPhone or iPad holds the same database under a scrambled file name; an encrypted backup needs the password you chose in Finder. See read an encrypted iPhone backup on a Mac.
- NoteRescue reads the database inside each snapshot or backup without restoring anything, lists notes that are missing today, and exports the ones you pick (Markdown, HTML, PDF or plain text with attachments) or adds them to Notes in a new Recovered folder. Locked notes are counted but never opened. Notes that were created and deleted between two backups cannot be recovered.
If you work on the file yourself
- Quit Notes, copy the file and its -wal and -shm companions together, and work only on the copy.
- Never write to the original, and never copy an older file over the live one while iCloud is syncing: iCloud may sync an old state back over what you restore.
- Reading note bodies needs a decoder for the compressed format; this is why most free scripts only list titles.
NoteRescue: scan free, recovery per app (Notes USD 24.99 once, All apps 39.99), macOS 15 or later, works offline with no account, no AI. NoteRescue
Questions
Can I recover a note deleted more than 30 days ago? Only from a backup that still holds it; see recover deleted Apple Notes after 30 days.
Is NoteStore.sqlite in iCloud? iCloud syncs your notes between devices; this file is the local copy on each device.
Apple, Mac, macOS, iPhone, iCloud and Time Machine are trademarks of Apple Inc. NoteRescue is made by Kayabyte and is not affiliated with or endorsed by Apple.
More guides
- Notes missing or not showing up? Why Apple Notes disappeared and how to get them back
- Apple Support Community is closing: where to get Mac help now
- The best ways to recover deleted Apple Notes on a Mac
- Calendar events or Reminders missing after an iCloud change or a new Mac? What to check first
- Contacts missing on your Mac after an update or an iCloud change? What to check first
- Disk Drill alternative for Apple Notes: what NoteRescue does differently
- How to export all notes from a Mac: Apple Notes to Markdown, PDF or text
- How do you back up your Safari bookmarks on a Mac before you lose them?
- Why does iCloud bring back deleted data after you restore it, and what can you do?
- Locked notes after a new Mac or iPhone: why they won’t open and what you can do
- NoteRescue vs Disk Drill, iMazing and Time Machine for recovering Apple Notes and other Mac data
- NoteRescue vs iBoysoft Data Recovery for getting Apple Notes back on a Mac
- Why is Recently Deleted empty in Apple Notes?
- How do you recover deleted Calendar events on a Mac?
- How do you recover deleted contacts on a Mac?
- How do you recover deleted Reminders on a Mac or iPhone?
- How do you recover deleted Safari bookmarks on a Mac, iPhone or iPad?
- How do you recover deleted Voice Memos on a Mac?
- How to get notes back from an iPhone backup on a Mac
- How to recover notes from an old Mac’s backup
- How to recover an Apple Note you edited or overwrote
- How do you recover the photos and PDFs that were attached to a deleted Apple Note?
- How do you get a Safari Reading List back?
- How do you recover Voice Memos from an iPhone backup on a Mac?
- How do you restore Calendar events from Time Machine?
- How do you restore contacts from Time Machine on a Mac?
- How do you restore only contacts from an iPhone backup on a Mac?
- How do you restore Safari bookmarks from Time Machine?
- Restored notes show today’s date and sit in a “Recovered” folder: where they went and why
- Why did my Safari tab groups disappear, and can you get them back?
- Voice Memos missing on your Mac? Why recordings don’t show up and what to check
- What does Time Machine keep for Notes, Contacts, Safari, Calendar, Reminders and Voice Memos?
- Where are Apple Notes stored on a Mac?
- Where are Contacts, Calendar, Reminders, Safari and Voice Memos stored on a Mac?