Skip to content
How-To Guides7 min read

How to Export iMessage
and Text History (Mac and iPhone)

Apple's Messages app has no Export Chat button, so saving an iMessage conversation works differently from WhatsApp or Telegram. This guide covers every real method, from the complete database on a Mac to what an iPhone can do on its own, and what each one leaves out.

Mac methods
iPhone methods
Text, PDF, or database
Ready for analysis

Exporting iMessage means getting your conversations out of Apple's Messages app as a file. Apple offers no button for that, so the job comes down to four real methods: reading the Mac's message database, copying text, printing to PDF, or using a third-party tool. The database route is the only one that gives you everything, and it feeds straight into AI chat analysis.

Key takeaways

  • There is no Export Chat button on iPhone or Mac. Anyone describing one is describing a feature that does not exist.
  • On a Mac, ~/Library/Messages/chat.db holds every synced conversation with full timestamps. MosaicChats reads it directly.
  • Copy and paste or print to PDF from Messages on a Mac gives you a readable copy in a minute, with rougher timestamps.
  • An iPhone alone can only screenshot or copy one message at a time. Route the history through a Mac or a tool like iMazing.

Method 1: Copy the Messages database from your Mac

Messages on a Mac keeps every conversation in a single SQLite file called chat.db. Copying that file is the most complete export possible: every message, sender, and timestamp, across every chat. It is also the file MosaicChats prefers for iMessage.

1Sync your history to the Mac

Open Messages, go to Settings, then iMessage, and turn on Enable Messages in iCloud. Sign in with the same Apple Account as your iPhone and give it time to finish syncing. Apple explains the setup in Messages in iCloud.

2Open the Messages folder in Finder

In Finder, press Command-Shift-G, type ~/Library/Messages, and press Return. The Library folder is hidden by default, which is why the shortcut is needed.

3Copy chat.db to your Desktop

Find chat.db and copy it to your Desktop (or anywhere easy to find). The copy is your export. It can be tens or hundreds of megabytes for a long history.

4Upload chat.db to MosaicChats

On the upload page, pick the copied chat.db. You can also use Command-Shift-G inside the file picker and choose the original in place. Reading a large database can take over a minute.

5Pick the conversation to analyze

The database contains every chat, so MosaicChats shows a list and you choose one. Only that conversation is analyzed.

Why this beats copy and paste: the database stores an exact timestamp on every message, which is what response-time and initiation analysis depends on. Text copied from the Messages window only shows dates at the breaks Messages chooses to display.

Method 2: Copy the text or print to PDF from Messages on a Mac

If you want a readable file rather than a database, Messages on a Mac can hand you one in a minute.

  1. Open the conversation in Messages.
  2. Scroll to the top until the earliest messages appear. Messages loads history in chunks, so a long thread takes a few scrolls.
  3. For text: click inside the conversation, press Command-A, then Command-C. Open TextEdit, choose Format, then Make Plain Text, paste, and save as a .txt file.
  4. For PDF: choose File, then Print, open the PDF menu in the print dialog, and choose Save as PDF.

Pasted text can also go straight into the paste box on the text message analyzer. Because the copied transcript only carries the dates Messages displays, timing metrics are coarser than with chat.db; sentiment and personality analysis are unaffected.

Method 3: What can you do on an iPhone alone?

The iPhone has no export tool and no way to copy more than one message at a time. Two workarounds exist, and both have hard limits.

Screenshots

Press the side button and volume up (Face ID) or the side button and Home (Touch ID), scroll, repeat. Fine for a short exchange.

Limit: images, not text. Nothing can analyze them, and a long thread means hundreds of screenshots.

Copy one message at a time

Touch and hold a bubble, tap Copy, paste into Notes. Selecting several bubbles only offers forward and delete, not copy.

Limit: realistic for a handful of messages, not a history.

For anything longer, route the conversation through a computer: a Mac with Messages in iCloud (Methods 1 and 2) or a Mac or PC running one of the tools below.

Method 4: Use a third-party tool

Desktop tools read the same database, either from a connected iPhone, an iPhone backup, or the Mac itself, and write out clean files with dates and names intact.

iMazing (Mac and PC)

A paid app that can archive, export, and print iMessages and SMS from an iPhone or its backup as PDF, CSV, or text. The usual choice when you do not have a Mac signed in to your Apple Account.

Best for: Windows users and complete threads with attachments.

imessage-exporter (free, Mac)

An open-source command-line tool that reads chat.db and writes every conversation as text or HTML, with reactions, replies, and attachments handled. Needs Full Disk Access for Terminal.

Best for: technical users who want a free, complete archive.

Privacy note: any tool that reads your messages needs access to your device or backup. Use well-known software, download it from the official source, and treat the output like the intimate record it is.

What does an iMessage export capture?

What you can capture

  • - Full text of every message
  • - Who sent it (you or the other person)
  • - Exact timestamps (chat.db and tools) or displayed dates (copy-paste)
  • - Both iMessage (blue) and SMS/RCS (green) texts
  • - Group conversation participants

What may be missing

  • - Messages deleted before the export
  • - Attachments, in text-only output
  • - Reactions and effects, in copy-paste and PDF output
  • - Conversations that never synced to the Mac

What can you learn from the file?

Uploading chat.db or a transcript to MosaicChats turns years of blue and green bubbles into charts and summaries of how the two of you actually communicate.

Sentiment over time

A week-by-week emotional timeline that surfaces warm stretches, tense patches, and slow drifts. See how chat analysis can improve a relationship.

Response time and initiation

Who reaches out first, how fast each of you replies, and whether the rhythm has changed. See what reply speed says about a relationship.

Compatibility and personality

A compatibility score built from balance and reciprocity, plus MBTI-style traits inferred from how each person writes. Read more on personality analysis from text.

Is exporting private?

Privacy notes

Nobody is notified. Copying, printing, or reading the database happens entirely on your own devices.

Treat the file as sensitive. chat.db in particular holds every conversation on the Mac. Keep it somewhere private and delete the copy when you are done.

MosaicChats never exposes raw messages. Uploads are processed privately and are not shared with third parties. Read more on privacy in digital relationships.

Analyze your iMessage history with AI

Upload chat.db, a pasted transcript, or an exported text file to MosaicChats to see sentiment over time, who initiates and who replies faster, a compatibility score, and personality insights for each person. Files are processed privately and never shared.

Frequently asked questions

Does iMessage have an Export Chat button?

No. Neither the iPhone nor the Mac version of Messages can export a conversation. On a Mac you can copy the text, print to PDF, or use the chat.db database directly. On an iPhone alone you are limited to screenshots and copying one message at a time.

Can I export iMessage directly from an iPhone?

Not as a complete file. The iPhone has no export feature and only lets you copy one message at a time. For a full, text-based export, route the conversation through a Mac with Messages in iCloud, or through a computer running a tool such as iMazing.

Where does a Mac store iMessage history?

In a SQLite database called chat.db inside ~/Library/Messages. It holds every conversation synced to that Mac, including SMS and RCS messages if Text Message Forwarding is on. MosaicChats and third-party exporters read this file directly.

Will the other person know I exported the conversation?

No. Copying, screenshotting, printing, or reading the database does not notify anyone. Everything stays on your own devices.

Do I need Messages in iCloud turned on?

It is the easiest way to make sure your Mac has the same history as your iPhone. With it on, the chat.db on your Mac contains the full conversation. Without it, the Mac only has messages received while it was signed in.

Are green-bubble SMS texts included?

Yes, if Text Message Forwarding is enabled on your iPhone (Settings, Apps, Messages, Text Message Forwarding). Those messages then sync to the Mac and appear in chat.db, copy-paste, and PDF output alongside iMessages.

References & Sources

  1. "Messages User Guide for Mac." Apple Support.Source
  2. "Set up iCloud for Messages on all your devices." Apple Support.Source
  3. "iMazing: Manage iPhone Messages." iMazing.Source
  4. "imessage-exporter." GitHub.Source