# DiscordChatExporter

> Desktop and command-line app that exports Discord channels, threads and DMs to HTML, TXT, CSV or JSON for offline archiving.

Source: https://osinttools.io/tools/discordchatexporter/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Category:** Data capturing
- **Pricing:** Free, open source
- **Footprint:** active (contacts the target or the services it checks)
- **Account required:** yes, for full results
- **API:** no public API
- **Platforms:** Windows/macOS/Linux desktop · CLI · Docker
- **Website:** https://github.com/Tyrrrz/DiscordChatExporter
- **GitHub:** Tyrrrz/DiscordChatExporter, 12,447 stars · C# · MIT · last commit 2026-11-14
- **Listed:** Nov 25
- **Last verified by an editor:** Nov 25, 2026

## What it does

DiscordChatExporter is an open-source app that saves the message history of Discord server channels, threads, group chats and direct messages to files. It comes as a desktop app and as a command-line tool (also packaged for Docker), authenticates with a bot or user token, and writes HTML that looks like Discord, plain text, CSV or JSON, including usernames, timestamps, attachments, embeds and reactions.

Investigators use it to preserve Discord conversations before they are deleted, to analyse them offline, and to keep a readable copy as evidence. Filters for date ranges, authors and message types keep exports focused, and the CLI can be scripted for repeated captures.

Footprint is active: it contacts the target or the services it is checking, which can be logged on the other side. An account is needed for full results. There is no public API.

## Features

- Export to HTML, TXT, CSV or JSON
- Server channels, threads, group chats and DMs
- Date range and message filters
- Attachments, embeds and reactions
- GUI and CLI versions
- Docker image

## Pros

- Free and open source
- HTML output is easy for non-technical readers
- Structured CSV and JSON for analysis
- Actively maintained

## Cons

- You can only export channels your account or bot can see
- Using a user token to automate an account breaks Discord's terms and can get it banned
- Handling a token safely takes some care

## When to use it

- Use it when you need to archive a Discord channel before messages are removed.
- Use it when you want Discord messages in CSV or JSON for analysis.

## Quick start

Docker (CLI):

```
docker pull tyrrrz/discordchatexporter
```

## Alternatives


All alternatives to DiscordChatExporter in one table: https://osinttools.io/tools/discordchatexporter/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
