A Chrome browser extension that exports chat conversations from Microsoft Teams web application.
- Export Formats: JSON, CSV, HTML
- Comprehensive Data: Messages, reactions, attachments, threaded replies, system messages
- Date Filtering: Set oldest date to limit chat history
- Avatar Embedding: Option to embed avatars as base64 (HTML format)
- Auto-scroll: Automatically loads chat history by scrolling
- Clone or download this repository
- Open Chrome and navigate to
chrome://extensions/
- Enable "Developer mode" (toggle in top-right)
- Click "Load unpacked" and select the extension directory
- Pin the extension for easy access
- Navigate to Microsoft Teams web app (
teams.microsoft.com
) - Open the chat conversation you want to export
- Click the extension icon in Chrome toolbar
- Configure export options:
- Set stop date (optional) to limit how far back to export
- Choose export format
- Select what to include (replies, reactions, system messages)
- Enable avatar embedding (HTML only)
- Click "Export current chat"
- Wait for the extension to scroll and collect messages
- File will be automatically downloaded
- Stop at date: Limits export to messages newer than specified date
- Include threaded replies: Exports reply context information
- Include reactions: Exports emoji reactions and participant lists
- Include system messages: Exports date dividers and system notifications
- Embed avatars: Downloads and embeds profile pictures (HTML format only)
The extension requires:
activeTab
: Access current Teams tabdownloads
: Save exported filesstorage
: Remember user preferencesscripting
: Inject content scripts- Host access to Microsoft Teams domains
manifest.json
- Extension configurationpopup.html/js
- User interfacecontent.js
- Teams page scraping logicservice-worker.js
- Background processing and file generation
- Works only with Microsoft Teams web application
- Export time depends on chat history length
- Large exports may take several minutes to complete
- Extension preserves message order and timestamps