sodcalculator

10 Tech How-To

How to Export Discord Chats: Full Guide

Guide 10-24051 · Updated · Step by step

Exporting your Discord chats lets you keep a permanent record of messages, media links, and metadata outside of Discord. This guide covers the built-in data request method and the most reliable third-party tools for direct server or DM exports. You’ll need access to the Discord app (desktop or web) and, for most methods, a computer—mobile-only workflows are limited.

What You’ll Need

  • A Discord account with access to the chats you want to export (you must be a member of the server or a participant in the DMs).
  • For the official method: a valid email address linked to your Discord account.
  • For third-party tools: a desktop computer (Windows, macOS, or Linux) and a web browser.
  • Optional but helpful: a Discord bot token for some tools (requires creating a bot application in the Discord Developer Portal).

Step-by-Step

Method 1: Official Data Request (All Chats, JSON Format)

  1. Open Discord on your desktop app or web browser and log in.
  2. Click the gear icon (User Settings) in the bottom-left corner, next to your username.
  3. Scroll down the left sidebar and select “Privacy & Safety”.
  4. Scroll to the bottom of the page and click the “Request all of my data” button under the “Request my data” section.
  5. Confirm the request by clicking “Yes, request my data” in the pop-up.
  6. Wait. Discord will email you when the data package is ready—this can take up to 30 days, though usually it’s a few days.
  7. Click the download link in the email. You’ll be taken to a Discord page where you can download a ZIP file.
  8. Unzip the file. Inside, you’ll find a package.json file and folders. Navigate to messages/index.json to see an index of all your DMs and servers. Each channel has its own JSON file with messages, timestamps, and attachments (as URLs).

Method 2: Third-Party Tools (Direct Export to HTML/CSV)

Tools like DiscordChatExporter (open-source) or Discord Export (web-based) allow you to export a specific channel or DM to readable formats like HTML, TXT, or CSV. The steps below use DiscordChatExporter as an example.

  1. Download and install DiscordChatExporter from its official GitHub repository (search for “DiscordChatExporter” on GitHub).
  2. Get your Discord token: Open Discord in your web browser, press F12 to open DevTools, go to the Network tab, and refresh the page. Find any request to discord.com/api, click it, and copy the value of the authorization header (this is your token). Do not share it with anyone.
  3. Open DiscordChatExporter and paste your token into the “Token” field. Click “Login”.
  4. In the left panel, you’ll see all your DMs and servers. Select the chat you want to export.
  5. Choose an output format (HTML is the most readable) and select a folder where the exported file will be saved.
  6. Click “Export” and wait for the process to finish. The tool will save a file (e.g., channel-name.html) that you can open in any browser.

Method 3: Using a Discord Bot (For Server Admins)

  1. Create a bot application in the Discord Developer Portal (discord.com/developers/applications).
  2. Invite the bot to your server with the necessary permissions (Read Message History, View Channels).
  3. Use a bot command or a tool like DiscordChatExporter with the bot token to export messages. This method is more technical and not recommended for beginners.

Common Mistakes

  • Sharing your token: Your Discord token is like a password. Never paste it into a website you don’t trust, and never share it in chat.
  • Using an outdated tool: Discord changes its API often. Tools that worked a year ago may fail now. Always download the latest version from the official source.
  • Expecting media files: The official data request only provides links to attachments, not the actual files. Third-party tools may download media if you enable the option, but it’s not default.
  • Requesting data for a server you left: You can only export chats you have access to. If you’re no longer in a server, you can’t export its messages.
  • Ignoring rate limits: Discord has rate limits on API requests. Exporting a huge channel may take a long time or fail if you don’t wait between requests.

Tips

  • For a clean, readable archive, export in HTML format—it preserves formatting and is easy to search in a browser.
  • If you only need a few messages, just copy-paste them into a document. It’s faster and doesn’t require any tools.
  • Use the official data request if you want a complete archive of all your Discord activity, including voice call logs and server memberships.
  • When using third-party tools, always download them from the official GitHub or website to avoid malware.
  • If you’re exporting a server for legal or archival reasons, consider exporting as CSV for spreadsheet analysis.

Troubleshooting

  • Export fails with “401 Unauthorized”: Your token is invalid or expired. Re-copy it from DevTools, or if you’re using a bot, regenerate the bot token.
  • Export is very slow or hangs: Discord’s API is rate-limited. Try exporting a smaller channel first, or use the tool’s built-in delay option (if available).
  • The official data request email never arrives: Check your spam folder. Also, ensure you confirmed the request via the pop-up. If it’s been more than 30 days, contact Discord support.
  • The exported file is empty: Make sure you selected the correct channel and that you have permission to view it. Also, check if the channel has any messages.
  • Third-party tool shows “No channels found”: Your token might be for a bot that isn’t in the server, or the tool is outdated. Try logging in again or updating the tool.

Frequently Asked Questions

Can I export Discord chats on mobile?

Not directly. The official data request can be initiated from a mobile browser, but third-party tools require a desktop environment. For a quick export, you can copy-paste messages manually.

Is it legal to export Discord chats?

Yes, exporting your own chats is legal. Exporting someone else’s chats without permission may violate privacy laws and Discord’s Terms of Service, especially if you redistribute them.

Does the official data request include images and videos?

No, it only includes links to the attachments. The actual files are not included in the data package.

Can I export a server I don’t own?

Only if you have the “Manage Server” or “View Channel” permission. If you’re a regular member, you can export messages you can see, but the server owner can restrict this.

Will exporting chats notify other users?

No, exporting chats is a silent process and does not notify anyone.

How long does the official data request take?

Discord says it can take up to 30 days, but most users receive their data within a few days. If it takes longer, contact Discord support.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →