How iMessage data is actually stored in an iPhone backup
On a Windows PC, an iPhone backup does not contain a folder of readable text files. Inside your backup directory, Apple stores your message database at the SHA-1 hashed filename 3d/3d0d7e5fb2ce288813306e4d4636395e047a3d28 (which maps to HomeDomain — Library/SMS/sms.db).
On modern iOS versions (iOS 16 through iOS 26), reading that database accurately requires more than a basic SQL query:
attributedBodybinary streams: For many modern iMessages, the plainmessage.textcolumn insms.dbisNULLor incomplete. The actual message body, multi-part attachment markers (U+FFFC), bold/italic runs, and mentions are serialized insidemessage.attributedBodyusing Apple’s binarytypedstream(NSAttributedString) format.- Multi-part messages: A single iMessage can contain an image part (
part 0), a text caption (part 1), and a link preview balloon (part 2), each capable of receiving its own individual Tapback reaction, inline reply, or edit. - Nanosecond Apple Epoch timestamps: Modern iOS databases record
date,date_read, anddate_deliveredin nanoseconds since2001-01-01 00:00:00 UTC. Converting those into human-readable local times requires applying historical IANA time-zone and Daylight Saving rules for the date each message was sent.
EvidencePal decodes every layer natively on your PC so nothing in your conversation is silently dropped or garbled.
What the exported iMessage PDF preserves
| iMessage / SMS Feature | How iOS Stores It in sms.db |
How EvidencePal Renders It in Your PDF |
|---|---|---|
| Service type | message.service (iMessage, SMS, RCS) |
Printed clearly on the message metadata line |
| Sender identity | handle.id joined with AddressBook.sqlitedb |
Contact name plus raw phone number or Apple ID on every message |
| Inline replies | thread_originator_guid & part range |
Quoted parent message (Replying to Alex, 11:48 AM: "…") above the reply |
| Tapback reactions | associated_message_type (2000–2005, 2006 emoji) |
Folded onto the target message in plain words (Loved by Mom) |
| Edited messages | date_edited + message_summary_info (ec plist) |
Final text plus every earlier version with its timestamp |
| Unsent messages | date_retracted + message_summary_info (rp plist) |
Explicit chronological marker showing when the message was unsent |
| Group chat events | item_type rows (member added/left, group renamed) |
Chronological event lines showing who changed the group and when |
| Link previews & Apple Pay | balloon_bundle_id + payload_data (NSKeyedArchiver) |
Full URL, page title, or Apple Cash amount rendered as a clean card |
Group chats vs. 1-on-1 conversations
When you select a person in EvidencePal, all 1-on-1 threads with any of their phone numbers or email addresses are merged automatically.
If you also communicate with that person inside group chats (for example, a co-parenting group with a grandparent, or a landlord/property-manager group thread), EvidencePal lists each matching group chat with its message count so you can include or exclude specific groups with one checkbox. Inside any included group chat, every message header prints the exact name and phone number/email of the individual sender.
Handling 200,000-message multi-year threads
Browser-based tools and basic scripts load the entire conversation into RAM before printing, which crashes once a thread passes 20,000 to 30,000 messages or a few hundred photos.
EvidencePal streams records directly from your backup’s SQLite index into an embedded native PDF typesetter:
- Tested on single conversations containing 200,000+ messages and 300+ inline photos (generating 24,000+ numbered PDF pages while keeping memory usage under 550 MB).
- Long messages and unbroken URLs wrap cleanly across page boundaries without ever clipping text at the bottom margin.