Tomorrowish

Discord messages to PDF for court

Discord has no “export this chat” button. The export people are usually pointed to is DiscordChatExporter, a free open-source program. Court Copy reads its JSON files and turns one direct message, group DM or channel into a page-numbered PDF with a cover sheet, the file's SHA-256 fingerprint, user and message IDs, optional page stamps and real redaction, inside your browser. Nothing is uploaded.

1. Export with DiscordChatExporter

  1. Download DiscordChatExporter from its GitHub page (the desktop app runs on Windows; the command-line version also runs on Mac and Linux).
  2. Sign it in with a token, as its own guide explains. A bot token works for servers where you can add a bot. A direct message needs your account token; DiscordChatExporter's documentation says plainly that using an account token with a third-party program is against Discord's terms, so read that first and decide (a lawyer may prefer to make the export). Never give your token to anyone else.
  3. Pick the DM or channel. In the export options set Format to JSON and turn on Download assets (command line: --format Json --media) so photos and files are saved next to the JSON instead of being links to Discord's servers.
  4. Export. You get a file like Direct Messages - Private - name [1180000000000000001].json and, with assets, a folder ….json_Files beside it.

2. Make the PDF

Open Court Copy, choose Telegram, Discord, Messenger or Instagram → Choose export folder and pick the folder holding the JSON and its _Files folder (or drop it on the page, or choose the .json alone). Set the dates, time zone, paper size, page stamps and redactions, then press Make PDF.

3. What the PDF contains

What the export does not hold, so the PDF cannot show it: messages deleted before the export, the earlier text of edited messages, and read state.

Why the fingerprint matters

The SHA-256 fingerprint on the cover is computed from the exact bytes of the JSON file and of each attachment. Anyone with the original files can compute it again (certutil -hashfile export.json SHA256 on Windows, shasum -a 256 export.json on a Mac) and check that it matches; if one character had changed, it would not. Discord's message IDs also encode the time each message was sent, so they can be checked against the times printed.

Redaction that removes the text

Under Redact you can hide a person's name, username and ID (on their messages, the cover, reactions and system lines) and black out individual messages. Redacted text is left out of the PDF file entirely, so it cannot be copied or searched out of it. A name typed inside a message stays unless you black out that message too.

Other ways to print Discord messages

Not affiliated with Discord or DiscordChatExporter. Whether a printout is accepted, and in what form, is for the court, the lawyers and the other side to say.

Open Court Copy Full exports free right now, nothing uploaded.