Telegram keeps your chats in the cloud, but sometimes you want a copy you control: an archive before you close a group, a record of a dispute, or data you can analyze. The way to export a Telegram chat is through Telegram Desktop, which can save a group's messages, photos and files to your computer as readable HTML pages or as machine-readable JSON.
Below you will find the step-by-step process, what each export option does, how to read the result, and the limits you will run into, including what you can and can't do from a phone.
What you need before you start
- Telegram Desktop for Windows, macOS or Linux, logged in to your account. The export tool is part of the desktop app; Telegram Web and the mobile apps don't offer the same full export.
- Enough disk space. Text alone is small, but a group with years of photos and videos can produce many gigabytes.
- Membership in the group. You can only export chats you can see. If you joined late and the group hides history from new members, you will only get the part visible to you.
Some groups and channels turn on a setting that restricts saving content. In those chats, forwarding and saving are blocked, and the export option can be restricted as well. That is the owner's choice, and there is no legitimate way around it.
How to export a group chat step by step
- Open Telegram Desktop and go to the group you want to export.
- Click the three-dot menu in the top-right corner of the chat.
- Choose Export chat history.
- Tick the media types to include: photos, videos, voice messages, video messages, stickers, GIFs and files.
- Set a size limit for files if you want to skip very large attachments.
- Choose the download location and the format: HTML for reading or JSON for processing with tools.
- Optionally set a date range, then click Export.
Keep the app open until the export finishes. For big groups this can take a long time, mainly because media has to be downloaded. You can keep using Telegram in the meantime.
The first time you export, Telegram may ask you to confirm the request from another logged-in device, or make you wait before the export is allowed. This is a security measure to stop someone who has just gained access to your account from downloading everything at once.
HTML or JSON: choosing a format
| HTML | JSON | |
|---|---|---|
| Best for | Reading, sharing a record, archiving | Analysis, scripts, migrating data |
| How to open | Any web browser | A code editor or a script |
| Looks like | A chat view similar to Telegram | Structured data with fields for sender, date and text |
| Large chats | Split across several pages | One data file plus media folders |
If you aren't sure, export as HTML. You can always export again in JSON later. Some people export both: HTML for humans, JSON for analysis.
Reading and using the exported files
Opening an HTML export
Open the export folder and double-click the main messages file. It opens in your browser and looks like a simplified Telegram chat, with names, timestamps, replies and media thumbnails. Long histories are split into several numbered pages with links between them. Media files sit in subfolders next to the pages, so keep the whole folder together if you move it.
Working with a JSON export
JSON is what you want if you plan to do something with the data. A few practical examples for group admins:
- Count messages per month to see whether your group is growing or slowing down.
- Find your most active members to thank them or invite them to help moderate.
- Pull every message that contains a question to build an FAQ for new members.
- Search the full history for a keyword faster than Telegram's in-app search.
A short script in Python or another language can read the file and produce these numbers. If you are trying to measure activity, our guide on checking whether a Telegram group is active offers a few quicker signals too, and looking at similar communities in the Grupla directory can show whether your group is unusually quiet for its topic.
Exporting from a phone and other workarounds
The Android and iPhone apps don't include the export tool. If you only have a phone, you have a few options:
- Install Telegram Desktop on any computer, export, then log out and end the session from your phone.
- Forward key messages to Saved Messages. This doesn't create a file, but it keeps important messages in a place you control if the group is deleted.
- Take screenshots for a handful of messages, for example evidence of harassment you want to report. Screenshots are often easier to attach to a report than an export.
Telegram Desktop also has a full account export in its advanced settings, which can include your contacts, personal chats and the groups and channels you belong to. Use that if you want a broad personal backup instead of one group.
Limits and privacy considerations
An export is a snapshot. It doesn't update itself, and it can't be imported back into Telegram to restore a deleted group. (Telegram can import chats from some other messaging apps, but that is a different feature.)
Deleted messages aren't recovered. If a message was deleted before you exported, it won't appear. The same goes for anything that disappeared because of an auto-delete timer.
Think about the people in the chat. Your export contains other members' names, messages and sometimes photos of them. A few sensible rules:
- Store exports somewhere private and encrypted if the content is sensitive.
- Don't publish an export or share it outside the group without a good reason.
- If you are an admin in a region with data protection laws, consider whether you need to tell members how group records are kept.
- Delete old exports you no longer need.
If you are exporting because something went wrong, such as an admin account being taken over, export first and then follow our steps for what to do when a Telegram account is hacked. Planning to close a group? An export is a good last step before you hand over or delete it; see how to transfer Telegram group ownership if someone else could keep it running instead.
Frequently asked questions
Can I export a Telegram channel as well as a group?
Yes. The same Export chat history option is available in channels you follow, unless the channel restricts saving content.
Will group members know I exported the chat?
Telegram doesn't post a notice in the group when someone exports it. Assume that any member of a group could keep a copy of what is written there.
Why is my export missing old messages?
Usually because the group hid history from new members when you joined, messages were deleted, or you set a date range. Check the export settings and try again with no date limit.