All articles
Guides

How to Export a Telegram Chat (JSON or HTML): 2026 Guide

How to export a Telegram chat history from Telegram Desktop on Windows, Mac or Linux: which format to pick, how to save only part of a chat, what the export leaves out, and what to do if you only use Telegram on your phone.

Reloveo19 November 20265 min read

Telegram keeps your chats in the cloud, so they sync to every device you sign in on. If you want a copy of one conversation of your own, to keep, to read on a laptop or to analyse, Telegram has an export tool built in. It just isn't where most people look: it's only in Telegram Desktop, not in the phone apps.

This guide covers exporting one chat, choosing between JSON and HTML, saving only part of a long chat, and what the export leaves out.

What you need

  • Telegram Desktop on a Windows, Mac or Linux computer. Download it from desktop.telegram.org.
  • Your Telegram account linked to it. Open Telegram Desktop and scan the QR code it shows with your phone: on the phone, go to Settings → Devices → Link Desktop Device. Your cloud chats appear on the computer straight away.

On a Mac, the app from the App Store is a different Telegram app. If you can't find Export chat history in it, install Telegram Desktop from the link above instead.

How to export one Telegram chat

  1. Open the chat in Telegram Desktop.
  2. Click the ⋮ menu at the top right and choose Export chat history.
  3. Untick the media (photos, videos, voice messages and so on) if you only need the text. A text-only export of years of chat is small and quick.
  4. Click Format and choose Machine-readable JSON or Human-readable HTML (see below).
  5. Check Path if you want to choose where it's saved. By default it goes to a Telegram Desktop folder in your Downloads.
  6. Click Export, and keep Telegram open until it finishes.

When it's done, click Show my data to open the folder.

JSON or HTML: which should you choose?

  • HTML opens in any web browser and looks like a plain version of the chat. Choose it if you just want to read the conversation.
  • JSON puts every message in one file called result.json. Choose it if you want to use the chat in another tool, a spreadsheet or a chat analyzer.

Not sure? Telegram also offers Both, which takes a little more space.

A long HTML export is split across several pages: messages.html, then messages2.html, messages3.html and so on. If you move it or upload it somewhere, keep the whole folder together.

How to export only part of a chat

The single-chat export window has From and to dates. They start at the first message and today. Click either one to pick a narrower period, for example just this year.

Media and the size limit

Under the media options there's a Size limit slider. Files bigger than the limit are skipped. It starts low, so if you do want long videos, drag it higher. For text only, untick the media and the size limit doesn't matter.

Exporting everything at once

To export all your chats and account data in one go, open Telegram Desktop's menu → Settings → Advanced → Export Telegram data. You choose which kinds of chats and media to include, then the format. This is bigger and slower than exporting one chat, and most people don't need it.

Telegram sometimes makes you wait before an export can start, for security. If you see a message saying you can begin downloading after a number of hours, come back then and run it again from the same computer. If you get that alert on your phone and didn't start an export yourself, check Settings → Devices and end any session you don't recognise.

What the export leaves out

  • Secret chats. They're stored only on the two devices in the chat, not in Telegram's cloud, so Telegram Desktop can't export them.
  • Deleted messages. Anything deleted, by you, the other person or a self-destruct timer, is gone.
  • Media you unticked, and files above the size limit.

Can you export a Telegram chat on Android or iPhone?

Not from the Telegram phone apps. They have no export option. Your choices are:

  • Use Telegram Desktop on any computer, signed in to the same account. Your cloud chats are all there.
  • Take screenshots of a short part of the conversation.
  • Forward messages to your Saved Messages if you only need a few of them. That copies them; it isn't an export.

Does the other person know?

Exporting doesn't post anything in the chat. The export is a copy saved on your own computer. Treat it with care: it contains the other person's messages as well as yours.

Keep the export safe

An export is plain, unencrypted text that anyone who opens the folder can read. Don't leave it in Downloads on a shared computer. Move it somewhere private, or delete it once you're done with it.

Analysing a Telegram chat

If you exported the chat to understand a relationship better, you can upload result.json to Reloveo's Telegram chat analyzer. It shows who puts in the effort, how replies flow, how much warmth there is and how fights get repaired, with a relationship score out of 100.

  • Names are replaced with Person A and Person B before any AI reads the chat, and the conversation is never stored.
  • If you exported as HTML, zip the whole export folder and upload the ZIP, so every page is included.
  • If you used Export Telegram data for your whole account, upload its result.json. Reloveo lists the chats inside so you can pick one, and the others never leave your computer.
  • The preview is free and needs no sign-up. For a chat that goes back years, Deep Analysis maps it week by week.

Telegram isn't the only app you use with them? Here's how to export a WhatsApp chat and how to download your Messenger chats.

Common questions

Why don't I see "Export chat history"? You're probably in a phone app, or in the Mac App Store version of Telegram, which may not have it. Use Telegram Desktop from desktop.telegram.org.

How long does an export take? A text-only export of one chat is usually quick. Photos and videos make it much slower, which is another reason to untick them.

Can I export a group chat? Yes, the same way: open the group and use ⋮ → Export chat history. Groups with topics can also export one topic.

Can I export someone else's secret chat with me? No. Secret chats aren't in Telegram's cloud, so they can't be exported. Screenshots are the only way to keep them.

See these patterns in your own chats

Reloveo reads a conversation and shows you the dynamics — emotional investment, communication styles, and more — in 60 seconds.

Analyze a chat