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
- Download DiscordChatExporter from its GitHub page (the desktop app runs on Windows; the command-line version also runs on Mac and Linux).
- 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.
- 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. - Export. You get a file like
Direct Messages - Private - name [1180000000000000001].jsonand, with assets, a folder….json_Filesbeside it.
- Several channels can go in one folder; Court Copy lists them and you pick one.
- Keep the JSON exactly as it was written. Opening it in an editor and saving it again changes its fingerprint.
- Discord's own data package (Settings → Data & Privacy → Request all of my data) holds only your messages, not the other person's, so it cannot show a conversation.
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.
- Time zone. DiscordChatExporter writes every time with its UTC offset, so the times are exact. Choose the zone they should be shown in; the cover says which one was used.
- Attachments that are only links. Without Download assets, attachments are addresses on Discord's servers. Court Copy never fetches them (it makes no network requests); they are listed by name and size with a note.
- Only JSON is read. If you exported HTML, export again as JSON.
3. What the PDF contains
- A cover sheet: the export file by path and size with its SHA-256 fingerprint, the channel type and channel ID, the server name and ID for a server channel, the export time and any date filter written in the file, the participants with their display names, usernames and user IDs, the time zone used, the dates covered and counts.
- One numbered entry per message: display name, date and time, the text as written, in reply to (resolved to the message it answers), edited (with the edit time), pinned, reactions with who reacted where the export names them, and link previews.
- Pictures printed in place; other attachments listed by name, size and their own SHA-256.
- System messages in brackets: calls with their length, pins, people added or removed, channel name changes, members joining.
- “Page 1 of N” on every page, optional page stamps (like DC000001), and a CSV with each message's Discord ID.
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
- DiscordChatExporter's own HTML export, printed from a browser. Looks like Discord, free; no cover sheet, no fingerprint, no page stamps, no redaction.
- Screenshots. Quick for a few messages, but they carry no IDs and are easy to dispute.
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.