• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

AppleToolBox

Tools and Fixes for Mac, iPad, iPhone & iWatch

Search posts

  • About
  • Contact

CONNECT WITH US

CATEGORIES

  • iPhone
  • iPad
  • iPod
  • Apple Watch
  • Mac/MacBook
  • AirPods
  • Apple TV
  • News
  • Apple Services
  • HomePod
  • Reviews

SITE

  • Home
  • About Us
  • Contact
  • Advertise

Search posts

You are here: Home / Apple Services / Where Are My iMessages Stored On My Mac? Find Your Message History

Where Are My iMessages Stored On My Mac? Find Your Message History

By SK 35 comments Last updated February 28, 2019

So you are trying to find your old messages or need to find an old iMessage attachment? Ir maybe you accidentally deleted an entire conversation in your Mac’s Message App and you want to see it.

For many of us Mac users, our messages and message histories are automatically saved on your computers. So finding that missing or old message just might be easier than you think!

Related Articles

  • How Do I Delete Texts and iMessages On My Mac?
  • Learn How To Send SMS Messages to Your iPad and Mac
  • How To Use Messages in iCloud Sync Feature
  • How To Get Back Accidentally Deleted Text Messages

Does My Mac Store My Text Messages and iMessage History?

On Macs using macOS Sierra and earlier, your computer by default stores all your iMessages on your hard drive.

And for new versions like macOS High Sierra and above, unless you sync with iCloud using Messages in iCloud, your Mac likely saves your messages too.

  1. To check, open your Message App and choose Messages > Preferences from the top menu
  2. Tap the General tab and see if you ticked the box for Save history when conversations are closed Mac Message App Keep Messages
  3. If that’s checked, note how long your Mac keeps your message history in the Keep Messages drop-down. It’s either Forever, One Year, or 30 days (this option is only available on macOS)

If you set a limit on how long your Mac keeps messages, once you reach it, your Mac removes all outdated conversations including images and other attachments.

If you did not check the box for Save history when conversations are closed, your Mac deletes the conversations when you close them.

I Use Message in iCloud, Does My Mac Still Store My Messages?

Even if you enable Message in iCloud on your Mac, if you tick the box for Save history when conversations are closed, your messages still store on your Mac.

If that box is not ticked, then your message history is saved in iCloud only and not on your Mac. How To Use The Messages in iCloud Sync Feature

To use Messages in iCloud, you need macOS 10.13.5 or later and iOS 11.4 or later, and you need to be signed in to iMessage using the same Apple ID on every device where you want to use it.

How Do I Find My iMessage Archive and See Missing or Old iMessages on My Mac?

  • To access your past conversations, launch Finder > Go Menu How-To Show Your User Library in macOS High Sierra and Sierra
  • Type in your user library using ~/Library and press the Go button
  • In the Library folder, choose the Messages Folder
  • You see two folders: Archive and Attachments along with file databases labeled chat.dbUser Message folder on Mac in User Library

Don’t See Your Message Archive Folder?

If you cannot find your Message Archive folder in your User Library’s Message folder, it might still be located in an older OS X location:

~/Library/Containers/com.apple.iChat/Data/Library/Messages Q&A: Where are iMessage files stored on My Mac?

If you’ve upgraded a Mac many times from different versions of Mac OS X to macOS, your Message archive is often located in the iChat folder instead of your Messages folder.

iMessage files stored: The Good News

Your messages and photos, videos, or any other attachments automatically sync and store in ~/Library/Messages/Archives and ~/Library/Messages/Attachments.

Q&A: Where are iMessage files stored?

  • The Archive Folder holds all your past messages from saved or closed conversations
  • The Attachments Folder has any images or videos from those iMessage conversations

Additionally, Apple places your iMessages in the chat.db items in ~/Library/Messages

  • The chat.db keeps all your iMessage data from all of your current and active message histories.

TextEdit or similar programs open these chat files, and some of the everyday languages are legible.

BUT there is a lot of other info that’s not readable.

Apple saves your conversations by each session, usually between each shutdown. Sleep and closing the Message app several times a day also creates additional sessions.

iMessage files stored: The Bad News

Unfortunately, the Attachment Folder is a backup for your iMessages and Message app.

And the interior folder names don’t make any logical sense–just a bunch of numbers, sometimes with letters

BUT, your images and videos are there. You just have to spend some time looking around to find the exact attachment, photo, or video you want.

Not Seeing Your Message Archive or Attachments?

If you aren’t finding your message archive or any message attachments, it’s possible that your Message App Preferences are set not to save your message history.

  1. To check, open Messages > Preferences and select the General Tab.
  2. Under Application, make sure the checkbox for Save history when conversations are closed is ticked.  Q&A: Where are iMessage files stored on My Mac?

How To Transfer Old iMessages To A New Mac or MacBook?

For many people, their messages are a lifeline to their past. And when they purchase a new Mac or MacBook, they want to keep all of those messages and move them to their new computer.

And the good news is that it is indeed possible, with several options on just how to do it!

Transfer Messages From an Old Mac to a New Mac Using Messages in iCloud

The easiest way, if you Macs support it, is to transfer your message history using Messages in iCloud.

One of the best things about Messages in iCloud is that it syncs your message history between devices–as long as the Mac uses macOS 10.13.4 (High Sierra) and above.

Transfer Messages History to a New Mac With Library Folders

If your Mac(s) don’t support Messages in iCloud or you don’t want to use it, there is another option. Just copy and move your current User Library/Messages folder to the new Mac!

There are lots of ways to move the file, including AirDrop, File Sharing, a handy thumb drive, even DropBox or Google Drive.

Move Your Message History Folder to a New Mac

  1. On the old Mac, open up the ~/Library/Messages folder
  2. Copy that folder on to your method of choice (or drag it to AirDrop)
  3. On the new Mac, open that same location ~/Library/Messages
  4. If it’s empty, drag the older Mac’s Messages folder to that location
    1. If the new Mac’s Library/Messages folder is not empty
    2. Copy its contents by right-clicking and choosing Duplicate
    3. Move the copy to your Desktop or another place you’ll remember
    4. Then delete the original Messages folder
    5. Finally, drag the older Mac’s Messages folder to that location
  5. Restart your new Mac
sudz - apple
SK

Obsessed with tech since the early arrival of A/UX on Apple, Sudz (SK) is responsible for the original editorial direction of AppleToolBox. He is based out of Los Angeles, CA.

Sudz specializes in covering all things macOS, having reviewed dozens of OS X and macOS developments over the years.

In a former life, Sudz worked helping Fortune 100 companies with their technology and business transformation aspirations.

Related Posts:

  • iMessage Not Working iOS 12? Fix Message App Problems
    iMessage Not Working iOS 12? Fix Message App Problems
  • iMessage not working iOS 13 or iPadOS? Fix it today
    iMessage not working iOS 13 or iPadOS? Fix it today
  • How Do I Delete Texts and iMessages on My Mac?
    How Do I Delete Texts and iMessages on My Mac?
  • iOS 13 or iPadOS problems and how to fix them - Troubleshooting Guide
    iOS 13 or iPadOS problems and how to fix them -…
  • The Definitive Guide to iCloud Photos (2020 update)
    The Definitive Guide to iCloud Photos (2020 update)
  • How To Use The Messages in iCloud Sync Feature
    How To Use The Messages in iCloud Sync Feature
  • How to Use iMessage Group Chat on iPhone or iPad
    How to Use iMessage Group Chat on iPhone or iPad
  • I Accidentally Deleted Text Messages From My iPhone, How Do I Get Them Back?
    I Accidentally Deleted Text Messages From My iPhone, How Do…
  • Error Occurred During Activation for iMessage or FaceTime on Mac?
    Error Occurred During Activation for iMessage or FaceTime on…

Reader Interactions

Write a Comment Cancel reply

Show 35 Comments

  1. Peter says

    April 30, 2022 at 8:43 AM

    Under general (following the instructions above) the “Save history when conversations are closed’ option is greyed out. On my phone I can only go back to December 6 last year. Is there a way to search back to a date in a single conversation?

    Reply
  2. Jack Loop says

    January 24, 2021 at 1:26 AM

    Hi. I have a years long thread in iMessage. Daily chat with my now sadly departed wife. I want to review our conversations from years ago. I can access old messages via Imassage in my MacBook but IMesaage is slow to render and I try and print to PDF I can only save about 9 months of our chat. Is there anyway to more quickly view our entire conversation? It seems all there but I can only access part of it. Thank you.

    Reply
  3. Tess says

    November 23, 2020 at 7:15 PM

    Do you have any advice on what to do if the messages folder in the library was deleted? Is there any way to set this folder up again so the new messages will save somewhere? Thanks!

    Reply
  4. David says

    September 6, 2020 at 3:55 PM

    Good day!
    Thanks for the great info re location of attachments.
    I don’t want to have heaps of photos and video attachments sitting in a multitude of individual folders inside the Attachments folder of Messages.

    Can I simply delete all those subfolders in the Attachments folder?

    Thanks very much!

    Reply
  5. Morgan says

    May 20, 2020 at 1:11 PM

    Hi! I accidentally deleted a conversation using my iPhone (like so many other people here!).

    I have iCloud backup turned on for my home laptop and iPhone, but my work mac does not.

    I tried restoring my iPhone from an icloud backup from a few days ago, but that did not restore all the message history for some reason.

    However the full, entire conversation is still preserved on my work laptop.

    If I turn *on* iCloud backup for my work laptop, will that sync the missing conversation, or will that erase it?

    Reply
    • Morgan says

      May 21, 2020 at 6:50 PM

      Alternately, if I want to copy the archive and attachments directory from my work to my home laptop in order to preserve the conversation there, how can I get the attachments to remain connected to the various locations within the .ichat files inside the archive?

      Reply
    • Elizabeth Jones says

      May 22, 2020 at 8:46 AM

      Hi Morgan,

      We’ve never tested this, but since those messages were on your iPhone previously and then deleted, it’s likely that the sync process will erase those messages by turning on your iCloud backup on your work laptop.

      If you want those messages on your iPhone, you can forward them to yourself from your work laptop.

      Reply
  6. Ben says

    May 9, 2020 at 4:37 PM

    Hi. I accidentally deleted a conversation on my Mac. Fortunately, I found it in the archive. (Thank you.) My last backup to Time Machine was a week ago.

    I’m wondering if there’s any way to restore the chat.db file from Time Machine on my Mac, and somehow preserve the intervening messages on my iphone and ipad — by, I suppose, merging the backup database with the current database on my devices. I imagine it’s not possible, but I thought I’d ask.

    Thank you.

    Ben

    Reply
    • Elizabeth Jones says

      May 12, 2020 at 9:07 AM

      Hi Ben

      Unfortunately, you cannot combine old iMessage databases with new ones.

      Reply
  7. Robert Lauzon says

    May 1, 2020 at 1:14 PM

    Hi,

    Previously, I had deleted the messages in iMessages from one contact only. By following the above process, I did find my old messages.

    It was a bit difficult, but I’ve followed the instructions with success.

    Now how can I restore them in the application iMessages, so that I can see them? Many thanks for the info.

    Reply
    • Elizabeth Jones says

      May 4, 2020 at 9:39 AM

      Hi Robert,

      Unfortunately, Apple offers no way of restoring old messages back into the Messages app. You can see the contents of the messages by opening the individual files and reading the contents–you can also print those messages for record-keeping, as needed.

      There are some third-party apps that claim their services will restore your old messages. We have not tested these services and do not have a recommendation. If you go this route, make sure you read reviews of the third-party before purchasing/downloading their product. Ensure that the services do what they claim and do not also install malware onto your Mac.

      Good Luck!

      Liz

      Reply
      • Robert Lauzon says

        May 4, 2020 at 5:46 PM

        Good evening Liz,

        I will follow your recommendation: print what ever messages I really need.

        Many thanks for your info.

        Reply
  8. Mary says

    April 14, 2020 at 9:56 PM

    Hello,
    I can’t currently access my iPhone so I am trying to update my past messages on my Mac book. How do I do this?

    Thank you!

    Reply
    • Elizabeth Jones says

      April 15, 2020 at 8:38 AM

      Hi Mary,

      Go to your iCloud settings on your Mac and toggle on Messages app in iCloud–that will sync your Mac’s Messages app to your iPhone–as long as you sign in with the same Apple ID!

      Reply
  9. maggie says

    February 9, 2020 at 12:01 PM

    I am looking for specific conversations with one phone number. I found one text conversation with this person but I know there are others from a month or two prior. How do I find those? I dont remember deleting them any differently… I really need to find these please help! thank you (-:

    Reply
  10. Nick says

    January 30, 2020 at 10:40 PM

    Saved my relationship.

    Reply
  11. delia adkins says

    November 23, 2019 at 1:29 PM

    well done. you told me what i needed to know now and gave me more for the future. i got what i needed. thanks.

    Reply
  12. Yoralie says

    September 13, 2019 at 8:00 AM

    Hello Liz,
    My Mac storage was extremely full and I had to react quickly.

    I’ve deleted almost all I could to free up space.

    I now have a 10% free disk space.

    However, I want to maintain a minimum of 15% free space.

    In the manage storage tab from About this Mac, I noticed, in the left sidebar, that Messages was occupying almost 800Mb.

    But I’m not using Messages on my Mac anymore (I did some time ago though).

    I’m not even connected to my Messages app.

    How can I delete those files? Should I simply delete the content of my Library/Messages folder?

    Thank you!

    Reply
    • Elizabeth Jones says

      September 13, 2019 at 11:10 AM

      Hi Yoralie,

      Yes, you can delete the content of that folder–but don’t delete the folder itself.

      Usually, it’s the attachments folder that takes the most storage, so you could empty that folder’s contents and then empty the trash and restart.

      If you use macOS Sierra and above, there’s some nice storage recommendation tools available to help streamline your mac’s storage. We suggest giving these a try too to see where else you can save on data.

      Congrats on keeping above 10% free–that’s a good strategy to follow.

      Liz

      Reply
  13. michael says

    September 9, 2019 at 1:44 PM

    SK,

    thank you in advance for any help.

    Yesterday I upgraded my 2014 MB Air from 10.9 to 10.13, and when I started messages nothing was there. I found this thread and did what you advised (I replaced the messages file from a time machine backup I made just before the upgrade).

    The messages are mostly there but no photos are, only a magnifying glass icon and nothing when I click on it. I have messages/photos since 2009 that I would love to have back!

    I don’t want to sync via iCloud, but everything on iPhone messages looks the same.

    I noticed in the old Messages folder there are only 4 files but in the new one there are 9. The archived file is in ~/Library/Containers/com.apple.ichat/Data/Library/Messages/Archive.

    Save Message History When Conversations Are Closed is checked.

    On a different site someone said that deleting the containers file solved it for them.

    What to do?

    Reply
    • Elizabeth Jones says

      September 10, 2019 at 9:36 AM

      Hi Michael,

      Try deleting that containers file. But instead of putting in the trash–either isolate it in a folder or move it to your desktop. Then restart your Mac and see if the problem clears. If so, you can delete the containers file.

      If you see additional problems, you can move that containers file back–removing the one your macOS just created.

      Keep us posted. Hope it works for you!

      Liz

      Reply
      • michael says

        September 10, 2019 at 1:55 PM

        Liz,

        I signed out of messages, quit, moved the containers file to the desktop then restarted the MB Air.

        I started messages, signed back in and no changes – no photos, only a tabbed paper icon with an i next to it.

        I did text myself a photo which shows up properly. However if I go to any text conversation (even 10 years back) and click the i where a photo had been sent it points back to the new photo I just sent.

        In the messages folder the archive folder & chat.db-wal file show they were modified at the exact time I texted the photo.

        The OS did create a new iChat containers file with aliases to archive and attachments folders in ~/library/messages.

        I also checked that I (the owner) had read/write permissions on all folders involved and clicked “Apply to enclosed items” on these folders.

        I feel like its something simple to correct this, just can’t figure it out still.

        Reply
        • Elizabeth Jones says

          September 10, 2019 at 6:09 PM

          Hi Michael,

          Just to be clear, you are now seeing alias for archive and attachments folders in:

          containers > com.apple.iChat > Data > Library > Messages

          When you click on these aliases, do the links work?

          Try also copying over the Containers Messages folder from that Time Machine backup: ~/Library/Containers/com.apple.iChat/Data/Library/Messages–since macOS rebuilt this folder–isolate the current contents on your desktop or elsewhere (don’t delete it) and then try restoring both the old Container Messages folder AND the old Library Messages folder at the same time.

          You will again need to isolate the current contents of those folders to restore the older ones.

          But let’s see if we restore both Message folder contents if that does the trick.

          Keep us posted.

          Liz

          Reply
          • Michael says

            September 12, 2019 at 12:29 PM

            YEs I see the alias and they seem to work.

            I did copy over both folders, restarted, made sure permissions were read/write for me the owner and…no go same problem.

            I went to the main Apple store here in Seattle and talked with a genius, he couldn’t solve it so he had a senior specialist call me later that night. No solution except to go into recovery mode and use migration assistant to migrate all data back in. Seems like a lot of work/time, haven’t tried it yet.

            He doesn’t know if it will help, he said if it doesn’t then he would have to get it to escalate to Apple engineering. By any chance do you have any engineers on staff? 🙂

            I had an idea that I could partition the drive back to HFS+ and re-install from time machine the Mavericks backup, then incrementally upgrade 1 OS at a time until I get to High Sierra. He said it might work, who knows.

            Frustrating, it seems like I am very close but am missing something. Thank you for your help, if you or anyone else on staff has any ideas I’m open to them.

          • Elizabeth Jones says

            September 13, 2019 at 8:22 AM

            Hi Michael,

            Wow, what an adventure and a frustration. Sorry, this simple thing is taking so long.

            In speaking with some of my colleagues and other Mac people, one suggestion that I did not raise (nor Apple Support) is to try updating/reinstalling macOS on your Mac using the High Sierra combo update

            A few folks think that maybe there’s some missing code in your update to High Sierra–and by reinstalling it via the combo update (which is a full version of macOS) that any missing code will transfer over.

            You seem to know the drill, but just as a reminder, back up your Mac first before reinstalling macOS.

            What a pain in the xxOO!

            Keep us posted, if you can.

            Liz

  14. Lisa says

    November 5, 2018 at 11:10 AM

    Thank you! Now that I found these folders, how do I get them to show up in my current text stream? I don’t know how to “restore”… And will it delete the current text history?

    Thank you!

    Reply
    • Z says

      April 18, 2019 at 4:40 AM

      Was your question ever answered? I have the same question and haven’t figured it out.

      Reply
      • SK says

        April 18, 2019 at 8:44 AM

        Hi Z,

        Please see our response to Lisa.

        Reply
    • SK says

      April 18, 2019 at 8:44 AM

      Hi Lisa,

      Unfortunately, Apple does not offer a way to restore your messages directly. Instead, once you located the message you want to recover, tap on it to open it in Messages. Then, you can print those old messages (if needed) using the top menu File > Print (or Command+P.)

      Or you can copy and past the message content into a new message.

      The only other way is to restore from a Time Machine backup or another backup–but this then replaces the Message app databases with the older, archived one. So you would lose any conversations made after that backup date.

      To do a restore from a TM backup

        Open your Message App user Library folder ~/Library/Messages

        Open Time Machine

        Locate a backup from the date prior to deleting any messages you want to recover

        Restore all the files in that Time Machine Messages Folder.

      There also are some third-party tools that claim to recover deleted messages for you–we’ve heard mixed reviews on their efficacy so we don’t recommend them.

      However, if you want to try this route we encourage you to search and read user reviews before downloading or purchasing any software that claims to recover your deleted texts.

      Good luck,

      Liz

      Reply
  15. Raya says

    February 1, 2018 at 4:28 PM

    I have Yosemite running on my Mac. There are no folders for Archive or Attachments located at

    /users//Library/Messages

    or

    /users/Library/Containers/com.apple.iChat/Data/Library/Messages

    Instead, there are empty files named Archive and Attachments.

    The files chat.db, chat.db-shm, and chat.db-wal can be found at /users//Library/Messages and they have information in them.

    What may have happened to the Archive and Attachments folders?

    Reply
    • Elizabeth says

      February 3, 2018 at 8:54 AM

      Hi Raya,

      Sorry, your Message attachments and archive folders aren’t showing up. Check that your Message App preferences and choose the tab General. Then, make sure that Save Message History When Conversations Are Closed is checked. If not, check it and this should save your Message history moving forward on your Mac.

      Let us know if this doesn’t do the task!

      SK

      Reply
  16. Gary says

    June 22, 2017 at 5:35 PM

    I don’t have historical messages on my Mac under that file name ~/Library/Messages and in chat.db. They are now syncing current messages but I wasn’t to filter everything through my Mac, How can I get my full history from my iPhone to my Mac. Ive tried everything but the iPhone Messages history is not going through to the Mac history

    Reply
    • SK says

      June 23, 2017 at 11:49 AM

      Hi Gary,

      Sorry to hear of your Messages trouble. Are you backing up to your computer via iTunes? If not, try that first. Then check and see if you have this file: ~/Library/Containers/com.apple.ichat/Data/Library/Messages/Archive

      Verify that your iPhone runs iOS8 or higher and your Mac runs Yosemite or above.

      Make sure that the Apple ID is the same on both Mac and iPhone, that both Bluetooth and WiFi are on, and that Handoff is enabled on both devices:

        On Mac, choose Apple menu > System Preferences, then click General. Select “Allow Handoff between this Mac and your iCloud devices.”
        On iPhone, iPad, or iPod touch, go to Settings > General > Handoff, then turn on Handoff

      Hope this helps,

      SK

      Reply
  17. Josh says

    April 1, 2014 at 12:31 AM

    I wrote a self-executing and very user-friendly shell script that will safely and effectively remove any and all iMessage logs on your OSX computer. It finds and deletes both native iMessage logs, as well as any inadvertently saved from iOS syncing. It will not let you delete the files unless you tell it to- first it will alert you to any logs currently present.

    Reply
  18. jay says

    June 5, 2013 at 12:01 PM

    iMessage and Message are two different and separate applications.

    Reply

Primary Sidebar

Recent Posts

  • How to Change the Color Profile on Your Mac
  • How to Turn Safari Search Suggestions On and Off on iPhone and iPad
  • How to Change Login Picture on Mac
  • Problems Using External Hard Drive With Mac: How to Fix
  • How to Delete Notes in the Notes App on iOS, iPad, and Mac
  • How to Use ChatGPT on iPhone and iPad

Connect with us

Footer

ABOUT

  • About Us
  • Contact us
  • Advertise
  • Privacy
  • Terms of Use

GUIDES

  • iOS 13 & iPadOS
  • Apple ID
  • iCloud
  • App Store
  • iTunes
  • FaceTime
  • iMessage
  • Siri
  • Books and iBooks
  • Game Center
  • AirPlay

CONNECT

  • Facebook
  • Twitter
  • FeedBurner
  • YouTube

© Copyright 2010-2023 Guiding Tech Media · All Rights Reserved

This site and its content are in no way affiliated or endorsed by Apple, Inc. · Reproduction without explicit permission is prohibited