Discord Message Logger
Export Discord messages as text or JSON for backups, moderation records and archives. Formats messages with timestamps, author names and content.
- Free, no limits
- No login
- Runs in your browser
About this tool
A message logger assembles chat into a readable export for backups or records. This tool formats a paste of 'Author: content' lines into clean text or JSON.
It is fully local.
How to use
Copy messages you want to log.
Paste them into the tool.
Export as formatted text or JSON.
Retention, and deciding what not to keep
The question worth settling before enabling any logging is how long entries stay. A log that keeps message content indefinitely stops being a moderation aid and becomes a database of everything your members ever said, which is a liability if the bot or its host is ever compromised.
Most moderation genuinely needs days rather than months. Disputes surface quickly, and a report about something said six months ago is rarely resolved by the log. Setting a short window costs almost nothing operationally and removes most of the risk.
For servers with European members this is not only good practice. Retention has to be proportionate to a stated purpose under GDPR, and 'we kept it because the bot defaulted to forever' is not one.
What Discord's audit log does and does not record
The audit log records administrative actions - bans, kicks, role changes, channel edits, webhook creation - and retains them for 45 days. It does not record message content, and it does not record ordinary messages being sent.
Message deletions appear only when a moderator deletes someone else's message. A user deleting their own leaves no audit entry at all, which is the gap that logging bots exist to fill.
Viewing the audit log requires the View Audit Log permission. It is read-only for everyone including administrators, so entries cannot be removed.
Logging bots and the rules that apply
A bot that logs message edits and deletions works by caching messages as they arrive and comparing against later events. That requires the Message Content privileged intent, which Discord grants only after review for bots in more than 100 servers.
Because such a bot holds message content, it falls under Discord's developer policy and, for European members, under data protection law. Servers running one should disclose it in their rules - members generally accept moderation logging when told, and react badly to discovering it.
Retention is the part usually left unconfigured. A log that keeps everything forever is a liability rather than a moderation tool; most servers need days, not years.
Why log messages
Backup important announcements, save planning records, or archive history. A JSON export is the most useful for scripts.
Frequently asked questions
Can it read my server chat?
No. It only formats what you paste. For live logs you use a logging bot.
Related guides
Browse all guides and generators.
Try other relevant tools
Snowflake ID & Date Converter
Convert between Discord IDs and exact dates - both directions.
Discord Timestamp Generator
Create <t:123:r> timestamps that render in every reader’s local time.
Discord Token Decoder
Decode the payload of a Discord token to reveal the embedded user ID and type.