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. Copies can also exist in iCloud (Messages in iCloud), in an iCloud Backup, in a Finder backup on a Mac, and in the Messages app on a Mac.
The copies, one by one
- On the iPhone: the live database. SMS, MMS, RCS and iMessage are all kept together.
- In iCloud, if Messages in iCloud is on: a synced copy mirrored to all devices.
- In an iCloud Backup, if Messages in iCloud is off: a snapshot that can only be restored to an iPhone.
- In a Finder backup on a Mac: a folder an export app can read, with a password if encrypted.
- In the Messages app on a Mac signed in to iMessage: the chat.db database.
Which one to export from
Use the one you trust to be complete and under your control. For most people that is a fresh cable backup on the Mac. See Finder backup. If Messages in iCloud is on and the Mac has the full history, the Mac works too.
You cannot browse it on the phone
There is no file you can open on the iPhone itself, and App Store apps cannot read the database. The Messages app is the only viewer there, and it can show date and time only for the message you tap.
SIM cards
Very old phones could store a few SMS texts on the SIM. Modern iPhones do not. See SIM versus iCloud.
How to decide in one minute
- Need the whole history and the phone is in your hand: cable backup.
- Mac has been synced for years with Messages in iCloud: use the Mac.
- Phone is gone: look for iCloud sync on another device, then an old Mac backup.
- Only an iCloud Backup exists: you must restore it to a spare device.
What to keep in mind
- Deleting on the iPhone removes it from the live copy, and from iCloud if sync is on.
- Backups made before a deletion still hold the message.
- Carriers hold records of messages sent but, in general, not their text.
Questions
Can I find texts on the phone with the Files app?
No. Messages are not exposed as files.
Are iMessages stored by Apple?
With Messages in iCloud they sit in iCloud. Apple describes it as end-to-end encrypted when certain conditions are met; see the sources.
Will an old backup have my deleted texts?
If the backup was made before they were deleted, yes.
Sources
- Backup methods for iPhone or iPad (Apple) (checked November 15, 2026)
- Keep your messages up to date with iCloud (Apple) (checked November 15, 2026)
- iCloud data security overview (Apple) (checked November 15, 2026)
Export the whole conversation
TextExhibit turns a conversation into one PDF with exact times, names and numbers, photos in place and page numbers, on your Mac. Free to preview; $24.99 once to export.