Tyrrrz

DiscordChatExporter: Save Discord Chats to Files

DiscordChatExporter exports message history from Discord direct messages, group chats, and server channels. It suits people who need portable, offline chat archives in formats such as HTML, TXT, CSV, or JSON.

Stars
12.1k
Forks
1k
Stars, last 10 days
+65

Our take

Health score

56/100

How it is scored
Activity
55
Community
50
Issues
71
Pull requests
46

+65 stars in the last 10 days

Overview

DiscordChatExporter saves Discord channel message history as files, making conversations easier to archive, inspect, and view offline. It supports direct messages, group messages, and server channels, with exports that can preserve Discord markdown and rich media such as attachments and embeds.

It offers both a desktop graphical interface and a command-line interface. It is useful when you need a local copy of conversations or want structured exports for later analysis, provided you can access the channels and use authentication in a way that complies with Discord's rules.

Key Features

  • Export direct messages, group messages, and server channel history.
  • Choose HTML, TXT, CSV, or JSON output.
  • View HTML exports offline, with dark and light styles.
  • Preserve markdown, attachments, embeds, emoji, and other rich media.
  • Filter exports by date range or message criteria, and partition output files.
  • Use a cross-platform graphical interface or command-line interface.
  • Authenticate with a user token or a bot token.

Use Cases

  • Discord community moderators can keep local records of accessible server channels.
  • Individuals can archive direct or group conversations for offline reference.
  • Researchers or analysts can export messages to CSV or JSON for further review.
  • Users who want a readable, self-contained record can create HTML exports to browse offline.

Getting Started

Download the latest GUI or CLI release from the releases page. The CLI is also available as a Docker image: docker pull tyrrrz/discordchatexporter. See the repository README for installation options and usage details.

Considerations

  • Automating a user account is against Discord's Terms of Service and may result in a ban. The project recommends using a bot to export accessible channels when possible.
  • Exports depend on having access to the channels and valid authentication. Bot access is limited to channels available to that bot.
  • Community-maintained packages may not be current with the latest release.
  • The project describes its status as maintenance, so check the release history before relying on it for a new workflow.

Found this useful?

Share it with someone who would like DiscordChatExporter.