Getting files back
Notes are not files you can search for — they live inside a database. That changes how recovery works.
~/Library/Group Containers/group.com.apple.notes/
The notes themselves are rows in NoteStore.sqlite, and attachments live under Accounts/…/Media. There is no .txt file per note anywhere, which is why searching for a note's text with file tools finds nothing.
Notes keeps deleted notes for 30 days in the Recently Deleted folder in the sidebar. This is the recovery route for almost every lost-note case. Right-click → Move To to restore.
Usually an account visibility problem rather than data loss:
toggle. Notes on an iCloud account you signed out of disappear with it — sign back in and they return.
its notes. Notes → Settings → Enable the On My Mac account to see local ones.
Notes' own search (⌘F in the app, or Spotlight — notes are indexed as items) searches text and attachments including scanned documents.
Attachments are real files inside the Group Container. To pull one out, right-click it in Notes → Save Attachment, rather than digging into the container — the database references break if you move things by hand.
Time Machine covers the Group Container, so the whole database is in your backups. Restoring an individual note from a backup means restoring the entire container, which replaces all notes — export important notes as PDF (File → Export as PDF) for anything that must survive independently.
In a database at ~/Library/Group Containers/group.com.apple.notes — not as individual files.
30 days, in the sidebar folder of the same name.
Everywhere keeps track of every file on your Mac, including the folders Spotlight hides and drives you have unplugged. Free for a day, then $19 once.
Version 2.20.3 · macOS 13+ · 4.7 MB · notarised