Why Export a Discord Chat?
Unlike professional communication platforms such as Slack or Microsoft Teams, Discord does not offer a native, built-in button to export or download a chat history. If you are part of a study group, a roleplaying server, or a customer support channel, and you need to save a permanent record of the conversation for offline viewing, Discord’s default interface forces you to endlessly scroll up and take hundreds of screenshots.
Whether you need to preserve evidence of harassment for a moderation report, archive a beautiful community moment before a server shuts down, or simply save a long list of shared links and resources, you need a way to extract the text data.
Fortunately, the open-source community has solved this problem. By using a widely trusted, third-party desktop application called DiscordChatExporter, you can download entire channels or direct message (DM) histories in perfectly formatted HTML, plain text, or CSV files.
Important Warning About Third-Party Tools
Before proceeding, it is crucial to understand Discord’s Terms of Service. Discord technically prohibits the use of “self-bots” or automated scripts that scrape data from their API using standard user accounts. While DiscordChatExporter is incredibly popular and generally safe when used responsibly for personal archiving, abusing it (e.g., trying to mass-download 50 servers at once) could theoretically trigger Discord’s anti-spam filters and risk an account ban.
Use this tool sparingly, only for channels you actually need to archive, and never use it to scrape data for malicious purposes.
Step 1: Download DiscordChatExporter
Because this is an open-source tool, you will not find it in a standard app store. You must download it from GitHub.
- Open your web browser and go to the official GitHub repository for DiscordChatExporter (search for it on Google or navigate to
github.com/Tyrrrz/DiscordChatExporter). - Scroll down to the Releases section and download the latest stable version for your operating system (Windows, macOS, or Linux).
- Extract the downloaded ZIP file into a folder on your desktop.
- Double-click the
DiscordChatExporter.exefile to launch the application.
Step 2: Obtain Your User Token
To access your chat history, the exporter needs to log in as you. Because it is a third-party app, you cannot simply type in your username and password. You must provide your secret “User Token.”
Never share this token with anyone. Anyone with this token has complete control over your Discord account.
- Open the Discord desktop app or log into Discord in your web browser.
- Press Ctrl + Shift + I (or Cmd + Option + I on Mac) to open the Developer Tools panel.
- Click on the Network tab at the top of the Developer Tools panel.
- Type
apiinto the filter/search box in the top-left corner of the Network tab. - Click on any channel in the Discord app to trigger network activity.
- You will see several lines of data appear in the Network tab (usually named “messages” or “science”). Click on one of them.
- A new pane will open on the right. Ensure you are on the Headers tab.
- Scroll down to the Request Headers section and look for the word Authorization.
- Next to Authorization, you will see a long, random string of letters and numbers. This is your token. Right-click and copy it.
Step 3: Export the Chat Log
Now that you have your token, you can extract the chat data.
- Go back to the DiscordChatExporter application.
- Paste your token into the box at the top of the screen and press Enter (or click the arrow button).
- The application will authenticate and load a list of every server you are in, as well as your Direct Messages.
- Click on the server or DM you want to archive. A list of all available channels will appear.
- Select the specific channel you want to download.
- Click the Export button in the bottom right corner (the icon looks like a downward arrow).
- A settings menu will appear. Choose your preferred format:
- HTML (Dark): This is the best option. It creates an offline webpage that perfectly mimics the visual look of Discord, including avatars, images, and dark mode styling.
- PlainText: Best if you just need the raw text to paste into a Word document.
- CSV: Best if you want to analyse the chat data in a spreadsheet like Microsoft Excel.
- Select a folder on your computer to save the file and click Export.
The tool will run through the channel history and compile the file. Once finished, you can open the HTML file in any web browser and read the entire conversation perfectly preserved, entirely offline.