For the complete documentation index, see llms.txt. This page is also available as Markdown.

Discord Chat Exporter

A tool for exporting and backing up Discord chat logs in multiple formats.

URL

https://github.com/Tyrrrz/DiscordChatExporter

Description

DiscordChatExporter is an open-source tool designed to export chats as HTML, CSV, JSON or plain text (TXT). In the context of an investigation, it can be used for archiving and offline analysis of conversations.

The tool allows for the archiving of messages, images and attachments. Usernames, timestamps and date stamps are also included in the export files.

DiscordChatExporter comes either as a command-line interface or a graphical interface. It allows users to export messages from various sources, including Discord's direct messages, group chats, servers' channels and threads.

For open-source investigation, including but not limited to cybercrime investigations, this tool can be used to archive information shared on Discord, including usernames and timestamps for messages sent. Export formats such as HTML provide a similar view to actual Discord servers, allowing for user-friendly browsing of messages.

How to use it

Step 1

In the Download section of Github, you can either choose the desktop app with a graphical user interface (GUI), or the terminal app with a command-line interface (CLI). Download the file adapted to your operating system (e.g. win-x64 file for most Windows PCs, osx-arm64 file for M1-M5 Macs, osx-x64 for older Macs).

The CLI allows for more in-depth configuration but requires familiarity with command-line tools. The GUI is easier to navigate and more user friendly.

Layout of DiscordChatExporter's command-line interface.

Step 2

Once downloaded and installed, the app requires the token linked to either a bot or personal account. A walkthrough of the different steps to get this token shows up when opening the DiscordChatExporter app.

Step 3

After inputting the token, the app allows to browse through joined Discord channels and direct messages. Channels and/or messages can be archived directly from the app, in different export formats.

Exporting comes up with various options (shown here is the graphical user interface).

Features

Key features of DiscordChatExporter include:

  • Choosing Different Export Formats: TXT, HTML, CSV or JSON.

  • Filtering Options: by date ranges, keywords, user or message type (only export pinned messages, or those sent by an individual user, for example).

  • Selecting multiple threads to export at once.

  • Support for Markdown, reactions and attachments.

  • With the CLI version, exports can be scheduled in the future.

Cost

The tool is free and open-source. The developer has a donation page to support the development/updating of the platform.

Level of difficulty

starstarstar

The GUI is beginner-friendly. The CLI requires command-line familiarity. Both versions need a Discord Account and an API Token.

Requirements

Platform support: Windows, Linux, MacOS.

Discord Account Token

  • Personal Token: Obtained from browser developer tools (CTRL+Shift+I).

  • Bot Token: Obtainable from the Discord Developer Portal with message content intent enabled.

Limitations

  • Important - Terms of Service Compliance: Automating personal accounts is against Discord's Terms of Service (ToS) and may result in account termination. Carefully consider ethical and legal questions before you decide to use the tool. Discord has reportedly been taking additional measure to enforce its ToS, with DiscordChatExporter users reporting increased risks of account restriction, warnings and termination.

  • Access Limitations: Only exports content accessible by the logged-in account or authorized bot. Accessing DiscordChatExporter requires verification through a valid phone number on Discord. Keep in mind: only one Discord account can be associated with a phone number.

  • Bot Tokens: Using a bot allows for more privacy and mitigates risks of account termination. However, bots only allow for the export of channels, and not direct messages. The use of bots requires some knowledge on the Discord Developer API. It can limit the tool's functionality to servers.

  • Unavailable Features: Exporting a forum thread is currently not available in the GUI version.

Ethical Considerations

  • Consider consulting your organization’s legal team to discuss Discord's Terms of Service and other legal and ethical questions before using this tool.

  • Only export chats you have permission to access. Exporting large group messages or Discord channels without consent may violate privacy and/or copyright laws.

  • Consider anonymizing data if used for public work.

Guides and articles

Tool provider

Oleksii Holub (Tyrrrz on GitHub) is an open-source software developer from Ukraine.

Advertising Trackers

Page maintainer

Bellingcat Volunteer Team

Last updated

Was this helpful?