How To Export Your Discord Chats [Easiest Method]

Over the past few years, Discord has moved beyond its roots as a platform for gamers and now welcomes people from all backgrounds. Discord’s success is clear—it continuously enhances the user experience by introducing a wide array of innovative and unique features that make chatting with friends both enjoyable and engaging.

Discord has now become a chatting app with its own perks

Features such as automated bots, mini-games, and screen sharing, combined with an intuitive interface, make Discord an excellent application for socializing and collaboration.

Despite its many strengths, Discord still lacks some functionalities, including the ability to export chats natively. Fortunately, this limitation can be overcome easily by following this guide, which demonstrates how to export your Discord messages using an effective third-party tool.

Ways to Export Discord Chats

You can export your Discord chats on Windows, Linux, and macOS devices. Follow the comprehensive steps below to start exporting your chat history.

1. The Classic Copy-Paste Method

The simplest way to export your Discord chats is by using the basic copy and paste function to transfer chat content into Notepad or a similar text editor. While this approach may not be the most efficient for lengthy conversations, it is quick, accessible, and can be invaluable when you need to save important information immediately.

  1. Highlight the chat you wish to export by clicking and dragging your mouse over the messages while holding down the left mouse button.
    Highlight the chat you want to copy
  2. Once you have selected the desired messages, right-click to open the context menu.
    Right-click to open the menu
  3. Click on Copy from the right-click menu.
    Select Copy from the right-click menu
  4. Open Notepad or any preferred text editor.
    Open up Notepad
  5. Right-click inside the text editor and select Paste to insert the copied chat.
    From the right-click menu, select Paste
  6. The selected chat messages will appear in Notepad. Save the document as a .txt file by clicking File and selecting Save.
    Click on File and Select Save to export your chat as a .txt file

2. Using DiscordChatExporter

DiscordChatExporter is a free, open-source tool designed specifically to help users export their Discord chat histories. It supports Windows, Linux, and macOS, allowing you to create local backups of your messages safely and efficiently.

This utility comes in two versions: a Graphical User Interface (GUI) and a Command Line Interface (CLI). Currently, the GUI version is only available for Windows users. The following steps will guide you through exporting and saving your Discord chats with DiscordChatExporter.

Using the GUI Version

  1. Download the GUI version from this link. Look for the file named ‘DiscordChatExporter.zip’.
    Click on this zip file to begin downloading
  2. When the download is complete, extract the contents of the ZIP file to your preferred location on your computer.
  3. Open the extracted application. You may be prompted to install additional components; approve these installations, as they are required for the tool to run correctly.
    The DiscordChatExporter app screen
  4. The tool will prompt you for your Discord user token. This information cannot be accessed directly from your Discord account, but the DiscordChatExporter developers have provided instructions within the app. Follow these guidelines carefully to safely retrieve your token.
    Note: Keep your Discord token confidential. Sharing it can result in compromised account security.
    Obtaining your Discord token by following the instructions in the app
  5. After acquiring your Discord token, enter it into the application.
    Entering the Discord user token
  6. You can now select the channels or chats you wish to export. To export multiple channels, hold the Shift key and select the first and last channels in the list. Then, click the download button to begin exporting.
    Select your desired chat and click on the download button
  7. A dialog box will appear, allowing you to choose the output path and file type. We recommend selecting the TXT format because it is smaller, easier to share, and can be edited as needed. Confirm your choices by clicking Export.
    Select your desired name, format, and output path
  8. The export process will commence. You can monitor the progress using the yellow loading bar beneath the token input field.
    The yellow bar below the token represents export progress
  9. After completion, you will find a comprehensive log of your chat history at the previously selected output location.
    The export file will be found at the output path you set

Using the CLI Version

While the CLI version lacks the user-friendly visual interface, it remains the best option for macOS and Linux users. It is also robust and versatile, supporting a wider range of features for advanced users. Carefully follow the steps below to export your Discord chats via the CLI:

  1. First, download .NET v7.0 Runtime from this link. We demonstrate using the macOS version here. This runtime component is essential for running the CLI version of DiscordChatExporter. Install it when the download is complete.
    .NET Runtime installation on macOS
  2. Download the ‘DiscordChatExporterCli.zip’ file from this link.
    Click on this zip file to begin downloading it
  3. After downloading, extract the files to the appropriate directory, such as your C drive, where the .NET Runtime is installed.
  4. Open your command-line interface: Command Prompt for Windows (with administrator rights), Terminal for macOS, or the Linux CLI for Linux users.
    Opening Terminal by searching for it with Spotlight
  5. Navigate to the directory where you extracted DiscordChatExporter CLI by running the following command:
    cd [destination path of where you extracted the DiscordChatExporter CLI]

    Typing in the pathname in Terminal
  6. Next, you will need your Discord user token and the channel ID you wish to export chats from. Obtain both by following the guides provided by the DiscordChatExporter developers here. Copy these values into Notepad or a secure text editor.
  7. Once you have your user token and channel ID, enter the following command to start the CLI application:
    dotnet DiscordChatExporter.Cli.dll
    Running the DLL command
  8. To begin exporting your chat, enter this command, replacing “token” with your actual token and 0000 with your channel ID:
    dotnet DiscordChatExporter.Cli.dll export -t “token” -c 0000
    Discord chat extracted
  9. The exported file will appear in the same directory where you extracted the CLI app. By default, it will be created as an HTML file, making it easy to view in any web browser.
    The exported HTML file in the original directory

ABOUT THE AUTHOR

Muhammad Zubyan


Muhammad Zubyan is a certified Google IT Support Professional with over 7 years of extensive experience. He has worked on more than 1500 computers, gaining valuable insights that enable him to detect and troubleshoot any complicated root cause of Windows-related issues and errors. In addition to managing Appuals as a Senior Editor, he is currently developing his own Game Optimization program that caters to both gamers and casual users alike.