Backups, iCloud and access
Where your messages live: the iPhone, a Finder backup, Messages in iCloud, your Mac.
- Can you export deleted text messages from an iPhone?Recently deleted messages can often be restored on the iPhone itself from Recently Deleted in the Messages app, for up to 30 days on iOS 16 and later, and older ones may still be in a backup made before you deleted them.
- Forgot your iPhone backup password? What it means for your messagesWithout the password, an encrypted iPhone backup cannot be opened by anyone, and Apple cannot recover it for you.
- How to back up an iPhone to your Mac with FinderConnect the iPhone to your Mac with a cable, select it in the Finder sidebar, choose Back up all of the data on your iPhone to this Mac, and click Back Up Now.
- How to export iPhone text messages without iCloudYou do not need iCloud: connect the iPhone to a Mac with a cable and make a backup, which contains the phone’s Messages history, SMS texts included.
- How to save text messages from your iPhone before you lose themCheck that Keep Messages is set to Forever in the iPhone’s Messages settings, then make a backup of the iPhone on your Mac with Finder, which keeps a copy of every message even if the phone is lost, reset or replaced.
- Why does an app need Full Disk Access to read Messages on a Mac?macOS keeps the Messages history and iPhone backups in protected folders, and the only way an app outside Apple’s own can open them is for you to allow Full Disk Access in System Settings.
Backups
- Back up an iPhone over Wi-Fi in Finder: set up and limitsConnect the iPhone by cable once, select it in Finder, tick Show this iPhone when on Wi-Fi in the General tab, and apply; after that it can appear in Finder over Wi-Fi.
- Back up your iPhone to the Mac before an iOS update (for your texts)Make a Finder backup and archive it before you update iOS, so you have a copy of your messages as they were.
- Can you back up an iPhone to an external drive on a Mac?Finder has no setting to choose where an iPhone backup goes, so the safe way is to make the backup normally and then copy the backup folder to the external drive.
- Can you download an iCloud backup to your Mac?No, Apple does not let you download an iCloud Backup as a file or read it on a Mac; it can only be used to restore an iPhone or iPad.
- Can you restore an old iPhone backup without losing new data?You do not need to restore an old backup to read it: open it in an export app on your Mac, and your phone and its newer data stay untouched.
- Encrypted or unencrypted iPhone backup: which is better for exporting texts?Either works for exporting texts because both contain your Messages, so choose unencrypted only if you will not forget a password and the backup stays on a Mac only you use.
- How big is an iPhone backup on a Mac, and how much space do you need?A backup is usually smaller than the phone’s storage and roughly follows the amount of data on it, so check Settings, General, iPhone Storage and make sure your Mac has at least that much free.
- How to back up an iPhone with iTunes on an older Mac (Mojave and earlier)On macOS Mojave 10.14 or earlier, open iTunes, click the iPhone icon, choose This Computer under Backups, and click Back Up Now.
- How to check the date of your latest iPhone backup on a MacSelect the iPhone in Finder and look under Backups in the General tab for the Latest backup to this Mac line, or click Manage Backups for the date of every backup.
- How to copy an iPhone backup from one Mac to anotherCopy the whole backup folder from ~/Library/Application Support/MobileSync/Backup on the old Mac into the same folder on the new Mac, keeping the folder name unchanged.
- How to delete old iPhone backups on a Mac to free spaceIn Finder, click the iPhone, then Manage Backups, select the backup, and click Delete Backup.
- How to stop a new backup from overwriting an old iPhone backupIn Finder, select the iPhone, click Manage Backups, right-click the backup, and choose Archive, which stops the next backup from replacing it.
- How to turn on an encrypted iPhone backup (and what it adds)Connect the iPhone, select it in Finder, tick Encrypt local backup in the General tab, set a password, and click Back Up Now.
- iCloud backup or Finder backup: which one holds your texts for export?For getting texts out as a file, use a Finder backup on your Mac, because an iCloud backup can only be restored to an iPhone or iPad.
- Reset the iPhone backup password: exactly what you loseOn the iPhone, Settings, General, Transfer or Reset iPhone, Reset, Reset All Settings removes the backup encryption password without deleting your data, but older encrypted backups stay unreadable.
- Using a Time Machine copy of an iPhone backup to export textsOpen Time Machine, browse to your user Library folder, Application Support, MobileSync, Backup, pick a date from before the messages were lost, and restore the backup folder.
- Where are iPhone backups stored on a Mac?iPhone backups made with Finder are in your user Library folder at ~/Library/Application Support/MobileSync/Backup.
Messages in iCloud
- Does Messages in iCloud use your iCloud storage?Yes: messages and their attachments count toward your iCloud storage, which is 5 GB free unless you pay for more.
- How to check whether Messages in iCloud is on for your iPhoneOpen Settings, tap your name, tap iCloud, and look for Messages: if its switch is on, Messages in iCloud is on for that iPhone.
- How to force Messages in iCloud to sync now on your MacOn the Mac, open Messages, choose Messages, Settings, iMessage, and click Sync Now.
- How to turn off Messages in iCloud without losing your textsBefore you turn Messages in iCloud off, make a cable backup of the iPhone to your Mac, then use Disable This Device on the device you are changing rather than Disable All.
- How to turn on Messages in iCloud on a MacOpen Messages on the Mac, choose Messages, Settings, iMessage, tick Enable Messages in iCloud, and click Sync Now if you want to nudge it along.
- Is Messages in iCloud included in an iCloud backup?No: Apple says messages kept with Messages in iCloud are not part of an iCloud Backup, because they already live in iCloud.
- Keep Messages 30 days, 1 year or Forever: which setting to useOn an iPhone, go to Settings, Apps, Messages, then Keep Messages under Message History and choose Forever so that old texts and attachments are never deleted automatically.
- Messages in iCloud on or off: what it means for exporting your textsIf Messages in iCloud is on, your full history is kept in iCloud and mirrored to each signed-in Mac, so the Messages app on the Mac is the easiest place to read and export it; if it is off, the iPhone holds the history and a cable backup is the route.
- Messages in iCloud: Disable This Device versus Disable AllDisable This Device stops syncing on that Mac only, while Disable All turns Messages in iCloud off on every device on your Apple Account.
- Text Message Forwarding: send SMS from your iPhone to your MacOn the iPhone, open Settings, Apps, Messages, Text Message Forwarding, and switch on the Mac or iPad you want.
Missing messages
- Before you delete a text conversation: export it firstBefore deleting a conversation, export it to PDF, check the file opens, and make a backup, because with Messages in iCloud a delete on one device removes it from all of them.
- How to check your conversation is complete before you export itCompare the first and last message in the thread on your iPhone with the first and last message in TextExhibit, then look at the message count and date range on the export’s cover page.
- How to find which backup still has your old messagesList every backup in Finder, Manage Backups, and pick the newest one dated before the messages were deleted or before the 30 day, 1 year auto-delete setting removed them.
- Messages deleted from your iPhone but still in a backupA backup made before you deleted a message still contains it, and you can read it from the backup on a Mac without touching the phone.
- The Recently Deleted folder in Messages: 30 days and how to recoverOpen Messages, tap Edit or the filter button, choose Show Recently Deleted, select the conversation and tap Recover, which works for up to 30 days after you deleted it.
Other devices and accounts
- Apple Watch messages: can you export them?For a watch paired to your iPhone, the messages are in the iPhone’s Messages history, so export from the iPhone backup or the Mac.
- Can you export iMessages from an iPad?Yes: connect the iPad to a Mac with a cable, make a Finder backup like an iPhone, and export its Messages from that backup.
- Do Screen Time limits stop an iPhone backup or text export?Screen Time limits do not hide or delete your messages, and Apple does not document them as blocking a backup to a Mac, so you can usually back up and export as normal.
- Exporting texts from a family member’s iPhone: what is and is not okayYou can export texts from someone else’s iPhone only with the owner’s permission, because a cable backup needs the phone unlocked, the passcode, and a tap on Trust.
- Exporting texts from an old iPhone 6, 7 or 8 (iOS 12, 15, 16)An old iPhone 6, 7 or 8 can be backed up over a cable to a Mac running macOS Sonoma or later and the texts read from that backup.
- iPhone will not turn on: how to get your text messagesCharge the iPhone for at least 30 minutes, force restart it, and if it still will not turn on, look for another copy of the messages in iCloud, on another Apple device, or in a backup on your Mac.
- iPhone with a broken screen: how to get your text messagesIf the iPhone has been connected to your Mac before and still responds to a cable, a Finder backup can be made without the screen, but you may need to unlock the phone, so the quickest safe fix is often a screen repair.
- Locked or disabled iPhone: can you still get the texts?No: without the passcode you cannot back up a locked or disabled iPhone to a Mac, and no export app can bypass the lock.
- Lost or stolen iPhone: how to get your old texts backYour old texts may still exist in Messages in iCloud, on another Apple device, in an iCloud Backup, or in a backup on your Mac, so check those before anything else.
- Save your texts before you trade in or sell an iPhoneBefore you trade in or sell an iPhone, make a Finder backup on your Mac, export any conversation you may need to PDF, check the files, and only then erase the phone.
- Switched from Android to iPhone: which old texts did not move?Apple says the Move to iOS process can move message history, but it only runs during setup and only copies what the Android phone had at that moment.
- Texts on a second Mac: which Mac has your messages?Each Mac keeps its own Messages database, so you need to use the Mac that actually holds the conversation, which is usually the one signed in to Messages the longest or the one with Messages in iCloud on.
- Work-managed iPhone or Mac (MDM): can you export your texts?On a work-managed iPhone or Mac, a management profile may stop backups to a computer or block Full Disk Access, so check Settings, General, VPN & Device Management and ask IT before trying.
Permissions
- Allow Contacts access so names show up in exported textsOpen System Settings, Privacy & Security, Contacts, and switch on the app so it can look up names for the phone numbers and email addresses in your messages.
- How to turn off Full Disk Access after you export your textsOpen System Settings, Privacy & Security, Full Disk Access, and switch the app off, or select it and click the minus button to remove it.
- How to turn on Full Disk Access on macOS Sequoia (15)On macOS Sequoia, go to System Settings, Privacy & Security, Full Disk Access, switch the app on, and quit and reopen it.
- How to turn on Full Disk Access on macOS Sonoma (14)On macOS Sonoma, open System Settings, Privacy & Security, Full Disk Access, switch the app on, then quit and reopen it.
- How to turn on Full Disk Access on macOS Tahoe (26)On macOS Tahoe, open System Settings, Privacy & Security, Full Disk Access, switch the app on, and quit and reopen it.
Where messages live
- SIM card or iCloud: where are your text messages really stored?On a modern iPhone, texts are stored in the phone and, if you use Messages in iCloud, in iCloud, not on the SIM card.
- Where are iMessage photos and attachments stored on a Mac?Photos, videos and files from Messages on a Mac are in the Attachments folder at ~/Library/Messages/Attachments, inside numbered subfolders that do not show the conversation name.
- Where are text messages stored on an iPhone?Text messages are stored inside the iPhone itself, in the Messages database in its protected storage, not on the SIM card.
- Where is chat.db on a Mac, and what is in it?The Messages history on a Mac is a SQLite database called chat.db in the Messages folder inside your user Library folder, at ~/Library/Messages/chat.db.
- Why you cannot open chat.db on a Mac (Operation not permitted)You cannot open chat.db because macOS privacy protection blocks apps, including Terminal, from reading the Messages folder unless you grant them Full Disk Access.