How to export Screen Time data on a Mac

Updated

System Settings can't export Screen Time. There's no export, share or save option in the Mac's Screen Time pane. To get the data out you can copy the report by hand, read the underlying database yourself with Terminal, or use an app that reads Screen Time data. All of these only reach what Apple still keeps, which is roughly the last four weeks.

Option 1: copy the report from System Settings

  1. Choose Apple menu > System Settings and click Screen Time in the sidebar.
  2. Click App & Website Activity.
  3. Pick a device, or All Devices, from the Device pop-up menu.
  4. Use the date pop-up menu to switch between a day and a week, and the arrow buttons to move back.
  5. Use the Show pop-up menu below the chart to list apps or categories.
  6. Take a screenshot (Shift-Command-4, then drag over the window) or type the numbers into a spreadsheet.

The Notifications and Pickups panes in Screen Time can be copied the same way. Apple's page View App & Website Activity in Screen Time on Mac explains each control.

This is fine for a few weekly totals. For per-app numbers across many days it gets slow.

Option 2: read the database yourself (advanced)

macOS records app usage in system databases, most famously knowledgeC.db at ~/Library/Application Support/Knowledge/knowledgeC.db. It's a SQLite file, and macOS includes the sqlite3 command-line tool, so you can query it and save the output.

The outline:

The full commands, with a sample query, are on Screen Time CSV export. What the tables mean is on knowledgeC.db and Screen Time.

Know the limits before you start. Apple doesn't document these databases. Since macOS 13, a lot of usage data is also recorded in a newer store called Biome (under ~/Library/Biome), so knowledgeC.db may not contain everything the Screen Time report shows, and your totals may not match Apple's exactly. The format can change with any macOS update, and the records cover the same short window as the report.

Option 3: an app that reads Screen Time data

An app with Full Disk Access can do the reading for you, store each day, and export it later. Full Disk Access is required because it's the only way macOS lets any app read Screen Time data.

Including your iPhone

The Mac only has your iPhone's usage if Share Across Devices is on, on both the iPhone (Settings > Screen Time) and the Mac (System Settings > Screen Time), with the same Apple Account. Then the iPhone appears in the Device pop-up menu and its usage is available on the Mac. See exporting from iPhone.

Common questions

Is it safe to give Terminal Full Disk Access?

It lets anything you run in Terminal read protected files, so grant it only while you need it and switch it off afterward in Privacy & Security > Full Disk Access. Querying a copy of the database doesn't change your Screen Time data.

Why can't I export older data?

Because it no longer exists. Apple removes Screen Time data after about four weeks, from the report and from the underlying records.

Can I export Screen Time for one app only?

Yes, with the database route you can filter the query by the app's bundle identifier. In System Settings, choose the app in the Show pop-up menu and copy its numbers.

Where Screen Time History helps

Screen Time History is a Mac app for macOS 14 or later that reads Screen Time data with Full Disk Access, keeps every day from install onward (iPhone included when Share Across Devices is on), and exports daily per-app time for the whole history. It can't export days Apple deleted before you installed it.

Other languages: العربية · Čeština · Deutsch · Deutsch (Schweiz) · Español · Filipino · Français · हिन्दी · Bahasa Indonesia · Italiano · 日本語 · 한국어 · Bahasa Melayu · Nederlands · Polski · Português (Brasil) · Română · Русский · Svenska · ไทย · Türkçe · Українська · Tiếng Việt · 简体中文 · 繁體中文


Screen Time History · Privacy · Not affiliated with Apple.