Fix Word for Mac Crashing When Inserting a Table of Contents
Question details
The user is looking for a solution to stop Microsoft Word from crashing when adding a table of contents to a document.

- Product
- Microsoft Word
- Device & OS
- macOS
- Scenario
- Generating a table of contents in a document after the heading styles have been marked.
- Observed behavior
- The Microsoft Word application crashes unexpectedly when the table of contents is inserted.
Before applying these fixes, ensure your document is fully saved and verify that your macOS and Microsoft Word application are updated to the latest versions.
Clear the Word Application Container Cache
Removing corrupted cache files from the application container is the most effective way to resolve unexpected crashes in Word for Mac.
macOS stores application preferences and temporary cache files in specific container folders. If these files become corrupted, they can cause features like the table of contents generator to crash the app.
Launch Finder on your Mac and press the Command+Shift+G keyboard shortcut simultaneously.
In the search bar, enter the exact path: ~/Library/Containers/com.microsoft.word and press Return.
Move the com.microsoft.word folder to the Trash. Restart your Mac and open your document to test inserting the table of contents.

Boot Your Mac in Safe Mode
Safe mode helps isolate the problem by preventing third-party background applications and cache files from loading.
Use WPS Office for a Stable Document Experience
If Microsoft Word for Mac continues to freeze or crash, consider switching to WPS Office. It is a highly compatible, fast, and free alternative that effortlessly handles complex documents and automatic table of contents generation.
- 1. Download and install: Download WPS Office for Mac from the official website and install the application.
- 2. Open your document: Launch WPS Writer and open the .docx file where you need to insert your table of contents.
- 3. Insert Table of Contents: Navigate to the References tab and click 'Table of Contents' to generate it automatically without crashing.

Frequently Asked Questions
Why does Word for Mac crash when generating a table of contents?
This issue is typically caused by corrupted application cache files, problematic third-party add-ins, or broken custom heading styles embedded within the specific document.
How do I easily find the hidden Library folder on macOS?
To access the hidden Library folder, open Finder, press the 'Command+Shift+G' keyboard shortcut, type '~/Library' into the search bar, and press Return.
Will clearing the Microsoft Word container delete my documents?
No, deleting the com.microsoft.word folder only resets application preferences and temporary cache. Your saved documents are safe and remain completely unaffected.




