Skip to content

gediz/teams-web-chat-exporter

Repository files navigation

Teams Chat Exporter

Browser extension for exporting Microsoft Teams web chat data.

Supports Chrome, Edge, and Firefox. Works with commercial, GCC High, and MCAS-proxied Teams environments.

Teams Chat Exporter popup

What it exports

  • Formats: JSON, CSV, HTML, TXT
  • Sources: chat conversations and team channels
  • Date range filtering
  • Toggleable per export: replies, reactions, system messages, avatars, inline images

Every message includes text, timestamp, and author. Forwarded messages, mentions, and file metadata (name, type, size, link) are captured where the format supports it. Files themselves are not downloaded.

When the inline images option is enabled for HTML format, images, GIFs, and audio (voice messages) are embedded in the output. Video thumbnails are embedded but the video itself is only linked. The output is a zip containing the HTML file and an images folder. For other formats, only the URLs are kept.

HTML and JSON include the richest data. CSV and TXT include the basics.

How it works

The extension fetches messages through the Teams Chat Service API using your existing session tokens. If the API is unavailable, it falls back to scrolling the Teams web UI and reading messages from the DOM. The result is built into your chosen format and downloaded locally. No data is sent to any third-party server.

Install

Available in the Chrome Web Store Get the Add-on for Firefox

Manual install: docs/MANUAL_INSTALL.md

Basic use

  1. Open Teams on the web and open a chat or channel.
  2. Click the extension icon.
  3. Pick format, date range, and include options.
  4. Click export.
  5. Wait for the export to finish. The download starts automatically.

Development docs

Important

You are responsible for following your organization’s and Microsoft’s policies when exporting conversations.

About

Export Microsoft Teams chats from the web app to JSON, CSV, or HTML with full context preserved. Open source browser extension.

Topics

Resources

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors