Export text messages and iMessages from an iPhone

Make an unencrypted Finder or iTunes backup on a computer, then upload the backup folder as a .zip.

What you need
  • The iPhone and its passcode
  • A Mac or Windows computer
  • A USB cable
How long
15 to 45 minutes, mostly waiting for the backup
What you end up with
A .zip of the backup folder, or the sms.db extracted from it
What we accept for this source
FileExtensionKey required
Unencrypted backup archive (.zip of a Finder/iTunes backup folder).zipNo key
Messages database (sms.db) extracted from a backup.dbNo key

A computer is required for this one

Apple keeps messages inside a device backup rather than offering an export, so unlike Android and WhatsApp there is no way to do this from the phone alone. You need a Mac or a Windows PC and a cable.

Make an unencrypted backup

The one setting that decides whether this works is Encrypt local backup. It must be off. An encrypted backup cannot be read without your backup password, and we do not accept one.

  1. Connect the iPhone by cable to a Mac (open Finder) or a Windows PC (open Apple Devices, or iTunes on older versions).
  2. Select the iPhone in the sidebar, and unlock the phone if it asks you to trust the computer.
  3. Choose Back up all of the data on your iPhone to this computer, and make sure Encrypt local backup is unchecked.
  4. Click Back Up Now and wait. Fifteen to forty-five minutes is normal, and it depends far more on how much is on the phone than on the computer.

Find the backup folder and zip it

  1. Open the backup folder for your platform:
    • Mac: ~/Library/Application Support/MobileSync/Backup/
    • Windows: %APPDATA%\Apple\MobileSync\Backup\ (on some installs, Apple Computer rather than Apple)
  2. Inside is one folder per device, named as a long identifier. If there are several, take the one with the most recent modified date.
  3. Compress that whole folder — right-click it and choose Compress on a Mac, or Send to → Compressed (zipped) folder on Windows. Zip the folder itself, not the files inside it.
  4. On the extractor, choose iPhone as the source and upload the .zip.

Why the whole folder, and not just the messages file

The folder looks like thousands of files with meaningless names, because iOS stores them by hash. Manifest.db is the index that maps those names back to real paths, which is how the messages database is located — and the address book alongside it, which is what puts contact names on your reports instead of bare numbers. Zip the folder and both are found. If you already know your way around a backup you can upload the extracted sms.db on its own, at the cost of those names.

What comes out

Both SMS and iMessage conversations, organised by phone number or iMessage address, one PDF per number. Message text is read as stored — including from the attributedBody field that newer iOS versions use — and Apple’s timestamps are converted. Contact names are filled in when the backup includes your address book; otherwise reports are labelled by number.

WhatsApp on an iPhone

WhatsApp is separate from Messages and is not read out of the iPhone backup. It has its own two-minute export that needs no computer at all — see the WhatsApp guide.

If something goes wrong

“The iPhone file could not be read (corrupt, wrong format, or encrypted)”
Almost always encryption. Everything in the backup including Manifest.db is encrypted, so nothing can be located inside it. In Finder or Apple Devices, untick Encrypt local backup and run the backup again. If you need password-based decryption, write to support@yourlegalaitools.com.
The reports show phone numbers instead of names
The address book was not in what you uploaded — this is what happens when sms.db is uploaded on its own. Upload the zipped backup folder instead and the names are filled in.
There are several device folders and I do not know which is mine
Sort by date modified and take the newest; that is the backup you just made. In Finder, the device page also shows the time of the latest backup, which you can match against the folder.
The .zip is enormous
A full backup includes photos and app data, so several gigabytes is normal. The upload goes to secure storage in parts and shows a percentage; a dropped connection resumes rather than starting again.
Open the extractor

Other guides: Android · WhatsApp

Only upload data you have the legal right to process. Phone backups are permanently deleted from our storage 24 hours after creation; the integrity record of what was produced is kept. See our Terms and Privacy Policy.