Quick Answer
Extract email addresses from OLM file in 3 ways. Use Outlook for Mac, Terminal or an OLM email extractor.
Outlook for Mac exports contacts only. Terminal searches an unzipped archive with one grep command. Windows software scans every field and saves a TXT list.
Test one OLM file first.
Your old OLM file contain email addresses you need and you cannot open it. Outlook for Mac only exports OLM archives and Excel cannot open them. A user on Microsoft Q&A hit that wall when asking for a CSV of contacts. Below are three ways to pull OLM addresses, from free steps to a batch tool that can extract addresses from OLM archives in one batch.
What is inside an OLM file?
Before you extract email addresses from OLM file data, know what it contain. An OLM file is an Outlook for Mac archive. It stores emails, contacts, calendars, tasks and notes. Addresses sit in three places: contact cards, sender and recipient fields and message bodies.
Microsoft describes OLM as Export of items to an archive file in legacy Outlook for Mac and it says support for that version ends in October 2026. Format is a zip archive. FileExt notes that most OLM files use zip and renaming its extension to .zip shows Accounts and Local folders plus a Categories.xml file. Every way below reads those parts differently so match method to need: contacts or every address.
How to extract email addresses from OLM file contacts in Outlook for Mac?
Import your OLM file into legacy Outlook for Mac, then export Contacts as tab-delimited text and open it in Excel. It gets contact cards only, not addresses from message headers or bodies.
- Open legacy Outlook for Mac. Go to Tools tab and select Import.
- Choose Outlook for Mac archive file (.olm) and select Continue.
- Locate your OLM file and select Import. Imported items appear under On My Computer.
- Open Contacts, then choose File and Export.
- Select Contacts to a list (tab-delimited text), name your file with a
.txtextension and save it to Desktop. - In Excel, open that text file, choose Delimited in Text Import Wizard and save as Excel Workbook or CSV.
Microsoft documents How to import an OLM file into Outlook for Mac in legacy steps. A volunteer moderator on Microsoft Q&A told one user that OLM is only export option and another moderator posted tab-delimited route above. That asker reported their OLM file greyed out in Excel and no accepted answer is marked so treat these steps as a workaround that depends on your version.
Catch: to pull addresses from an OLM file contacts in that way, you need a Mac with Outlook, new Outlook for Mac may differ because Microsoft documents legacy steps only and you get contact cards, not senders from your mail.
How to pull addresses from an OLM file with Terminal?
Unzip your OLM file and use grep on extracted files to pull addresses from an OLM file contents. It is free and includes headers and bodies but it also pulls noise.
- Copy your OLM file to Desktop and rename
archive.olmto match your file name in commands below. - Open Terminal and unzip:
unzip -q ~/Desktop/archive.olm -d ~/Desktop/olm_out. - Enter the grep command below. It saves unique lowercase addresses to
emails.txt. - Open
emails.txtin TextEdit and delete addresses you do not want from your OLM email addresses list.
grep -rhoE "[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}" ~/Desktop/olm_out | tr 'A-Z' 'a-z' | grep -vE "\.(png|jpe?g|gif|svg)$" | sort -u > ~/Desktop/emails.txt
Our team ran that pipeline on a small test archive built to mimic OLM layout and it returned sender, recipient and body addresses one time. It is not tested on a real Outlook export so try it on a copy first. Output may include system addresses, image names like logo@2x.png (command removes common ones) and addresses from newsletters.
Catch: that way to pull addresses from an OLM file data needs Terminal comfort, it does not scan addresses inside PDF or Word attachments and it returns no sender or date, only addresses.
How to pull addresses from an OLM file in bulk?
A Mac OLM archive opens fine on Windows in Corbett Email Address Extractor. Input list also includes PST, OST, MBOX, EML, MSG, DBX and Maildir. Tool scans From, To, Cc, subject, message body, message header and attachments, counts addresses and saves a TXT list for Notepad. Date, sender, recipient, subject, file type and size filters narrow your search. Windows only; free demo extracts 10 items.
Steps to pull addresses from an OLM file with software
- Copy your OLM file to a Windows PC. Install Corbett Email Address Extractor and open it.
- Add your OLM file as source. Tool lists your OLM folders. Folders open on left and messages on right.
- Preview items, then tick search fields: From, To, Cc, Subject, Message Body or Message Header.
- Untick folders you do not need, like Junk. Add filters if you want fewer addresses.
- Select Extract and review addresses and total count in results pane.
- Save TXT list to a folder, then open it in Notepad.
Software assists you pull addresses from an OLM file data on your PC and Corbett never sees mail data. Your OLM file is opened and left unchanged. Clean your list next with Corbett Email Address Validator. Need files, not addresses? See how to Extract attachments from OLM file.
Which way to pull OLM addresses suits you?
To pull addresses from an OLM file contacts only, use Outlook for Mac. For free full search on a Mac, use Terminal. For attachments, filters and Windows, use software.
| Way to pull addresses from an OLM file | Needs | Covers | Output | Cost |
|---|---|---|---|---|
| Outlook for Mac import and export | Mac, legacy Outlook | Contact cards | Tab-delimited text | Free |
| Terminal unzip and grep | Mac, Terminal | Fields and bodies | Plain text | Free |
| Corbett Email Address Extractor | Windows PC | Fields, bodies, headers, attachments | TXT | Free demo, then from $99 |
Other sources work in same way. See how to Extract email addresses from OST file or Extract email addresses from MBOX file.
Why does OLM address extraction fail?
Excel cannot open your OLM filesses
OLM is an archive, not a spreadsheet so you cannot pull addresses from an OLM file data inside Excel. Export contacts as tab-delimited text from Outlook for Mac or extract addresses with Terminal or software.
On My Computer folder is missing after import
In legacy Outlook for Mac, open Outlook, then Settings, select General and clear Hide On My Computer folders.
Terminal returns zero addressessses from OLM file data
Check that unzip finished and that your OLM file really is a zip archive. A small share of OLM files use another structure, per FileExt so try software on those.
The output has duplicates or junk
Terminal command removes exact duplicates, not newsletters or system mail. Software can exclude folders and filter by sender before you pull addresses from an OLM file data.
Software does not open your OLM file
Copy file to a local Windows drive, check that it is not corrupt and open the tool with Run as administrator. Try free demo on one folder first.
What to do after the extraction?
After you pull addresses from an OLM file archives, remove duplicates and test addresses before any mailing. Retain a copy of your OLM file until you check your list. Need mail on Windows after you pull addresses from an OLM file archives? See how to Import OLM file to Outlook.
Our view
Contacts live in Outlook for Mac so export them there first. For addresses buried in mail, Windows software or a Terminal search both work. We retain both and tell you where either fails.
Key takeaways
- Outlook for Mac exports contacts as tab-delimited text after you import your OLM file and it ignores email addresses from OLM file mail.
- Most OLM files are zip archives so Terminal can search them for addresses.
- Microsoft documents legacy Outlook for Mac only and that support ends in October 2026.
- Corbett Email Address Extractor reads OLM files on Windows and saves a TXT list.
- Demo extracts 10 items so test one folder before you pull addresses from an OLM file archives in full.
Questions About OLM Email Addresses
What is an OLM file?
An OLM file is an Outlook for Mac archive that stores emails, contacts, calendars, tasks and notes. Most are zip archives.
Can Outlook for Mac export contacts to CSV?
Its main export is OLM. A Microsoft moderator posted a route that exports contacts to tab-delimited text, which Excel can save as CSV.
Can Excel open an OLM file?
No. OLM is an archive so convert contacts to text first or extract addresses with another method.
Can I pull OLM addresses without Outlook?
Yes. Terminal can unzip OLM and list addresses and Corbett Email Address Extractor reads OLM files on Windows with no Outlook install.
How do I extract email addresses from OLM file?
Import it into legacy Outlook for Mac and export contacts, unzip it and search with Terminal or use Corbett Email Address Extractor on Windows.
What output format does it use?
A TXT file that opens in Notepad and most other tools. It shows every address and a total count before you save.
Is there a free trial?
Yes. Demo extracts 10 items so you can check your TXT list before buying.