keepcalculator

06 Numbers and Powers

Where Are Notes Stored on Mac? Full Guide

Card No. 06·32022 · Updated · Standard formula, shown below

Notes on a Mac are stored locally in a SQLite database inside the Notes app’s container folder, and they sync to iCloud if you have iCloud Notes enabled. The exact location is ~/Library/Group Containers/group.com.apple.notes/, where you’ll find the main database file NoteStore.sqlite along with media attachments and other data. This guide explains the full storage layout, how to access it, what happens when you sync, and how to back up or recover your notes.

Where the Notes Database Lives

Every Mac that runs the modern Notes app (macOS 10.11 and later) stores its local notes in a single SQLite database. The path is:

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

Inside that folder you’ll see several files and subfolders. The most important is NoteStore.sqlite, which contains all your note text, metadata, and the relationships between notes and folders. If you use iCloud, the same database also holds the iCloud-synced notes, because Apple stores them in the same container rather than a separate iCloud Drive folder.

Attachments (images, PDFs, audio, maps, etc.) are stored in a subfolder called Accounts, with separate subfolders for each account (e.g., iCloud or On My Mac). Inside those, you’ll find a Media folder containing the actual attachment files, referenced by the database. If you ever need to recover a single image from a note, you can often find it there even if the note itself is corrupted.

How to Access the Notes Folder

The Library folder is hidden by default, so you can’t just open it in Finder without a few extra steps. Here’s how to get there:

  1. Open Finder.
  2. In the menu bar, click Go and select Go to Folder… (or press Shift+Command+G).
  3. Type ~/Library/Group Containers/group.com.apple.notes/ and press Return.

Alternatively, you can hold the Option key while clicking the Go menu to reveal the Library folder directly. Once you’re in the folder, you’ll see the files. Be careful: modifying or deleting anything here can cause data loss or sync issues. It’s best to only browse or copy files, not edit them.

How iCloud Sync Affects Storage

When you enable iCloud for Notes (System Settings → Apple ID → iCloud → Notes), your notes are stored in the same local database but are continuously synced with Apple’s servers. The local copy acts as a cache; if you go offline, you can still read and edit notes, and changes are pushed to iCloud when you reconnect.

One common misconception is that iCloud notes are stored in the iCloud Drive folder you see in Finder. They are not. iCloud Drive is a separate container (~/Library/Mobile Documents/), and Notes uses its own group container. So even if you see an iCloud Drive folder, your notes aren’t there. The only exception is if you export a note as a PDF or text file manually and save it to iCloud Drive.

What About Notes on Older macOS Versions?

If you’re running macOS 10.10 Yosemite or earlier, the Notes database was stored in a different location: ~/Library/Containers/com.apple.Notes/Data/Library/Notes/. The file was called Notes.storedata (a binary plist format). If you’ve upgraded from an older system, the Notes app migrates that data to the new SQLite format automatically. If you’re troubleshooting an old backup, you might need to look in that legacy path.

How to Back Up Your Notes Manually

While Time Machine backs up your entire system, you might want a quick way to back up just your notes. Here’s a safe method:

  1. Quit the Notes app completely (press Command+Q).
  2. Open the Notes folder as described above.
  3. Copy the entire group.com.apple.notes folder to an external drive or cloud storage.

That gives you a complete snapshot of your notes and attachments. To restore, replace the folder (after backing up the current one) and reopen Notes. Be aware that restoring an old backup will overwrite any newer notes you’ve created since the backup, so only do this if you’re sure.

For a simpler, less technical backup, you can also export individual notes as PDF or text files: select a note, then click File → Export as PDF or File → Export as Text. This doesn’t preserve attachments, but it’s fine for text-only notes.

Common Problems and How to Fix Them

If Notes won’t open or shows missing notes, the database file might be corrupted. A few things to try:

  • Restart the Notes app – sometimes a temporary glitch clears up.
  • Check iCloud status – go to System Settings → Apple ID → iCloud and make sure Notes is toggled on.
  • Rebuild the database – Apple doesn’t provide a built-in rebuild, but you can force a re-sync by turning off iCloud Notes, waiting a minute, then turning it back on. This can re-download notes from the server.
  • Use the Notes app’s built-in recovery – if a note is accidentally deleted, check the Recently Deleted folder in the sidebar. Notes are kept there for 30 days (or 40 days in some versions) before being permanently removed.
  • If all else fails – restore from a Time Machine backup of the group.com.apple.notes folder.

Can You Read the SQLite Database Directly?

Yes, you can open NoteStore.sqlite with a SQLite browser (like the free DB Browser for SQLite) to view the tables. The main table is ZICCLOUDSYNCINGOBJECT, which contains the note bodies in a binary plist format. You can extract text from there, but it’s not straightforward because the text is compressed and encoded. If you’re trying to recover a single note, it’s easier to use the Notes app itself or a third-party recovery tool. Editing the database directly is risky and can corrupt the whole Notes library, so it’s not recommended unless you’re an expert and have a backup.

Frequently Asked Questions

Why can’t I find the Library folder on my Mac?

The Library folder is hidden by default in Finder. Use the Go → Go to Folder menu and type the full path, or hold the Option key while clicking Go to see it in the dropdown. You can also make it permanently visible with the command chflags nohidden ~/Library in Terminal, but that’s optional.

Are notes stored on my Mac if I don’t use iCloud?

Yes. Notes are always stored locally in the same container, even if you never enable iCloud. They’re stored in the On My Mac account within the Notes app, and the data lives in the same NoteStore.sqlite file. The difference is that without iCloud, the notes don’t sync to other devices.

How do I move notes from my Mac to an external drive?

The easiest way is to export each note as a PDF or text file. For a full backup, copy the entire group.com.apple.notes folder while Notes is closed. To transfer notes to another Mac, you can also use AirDrop or iCloud, but copying the folder preserves everything exactly.

Does deleting a note from my Mac delete it from iCloud?

Yes, if iCloud Notes is enabled, deleting a note on your Mac will delete it from iCloud and all other synced devices. However, the note goes to the Recently Deleted folder first, so you can recover it within 30 days. If you want to keep a copy, export it before deleting.

Can I recover a permanently deleted note?

If the note is no longer in Recently Deleted, your last resort is a Time Machine backup of the group.com.apple.notes folder. If you don’t have a backup, recovery is very difficult because the database may overwrite the deleted data. Third-party recovery tools exist, but they’re not guaranteed to work and may require professional data recovery services.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →