How to export a Telegram chat (Windows, Mac, Linux)

Telegram can export any chat, but only from its free desktop app. The phone apps don't have the option. Install it on a computer, sign in, and the export itself takes a couple of minutes.

On a computer with Telegram Desktop

Get the app from Telegram's own website first. It's free and runs on Windows, macOS and Linux. Sign in by scanning the QR code with the Telegram app on your phone, or with your phone number.

  1. Open the conversation you want in Telegram Desktop.
  2. Click ⋮ in the top right of the chat.
  3. Choose Export chat history.
  4. Untick photos, videos, voice messages, stickers and any other media. Text is all that gets read.
  5. Change Format to Machine-readable JSON. The default HTML won't work here.
  6. Leave the date range on everything, unless the chat is enormous.
  7. Click Export and wait for the progress bar to finish.
  8. Click Show my data, or open the folder it names, and find result.json.
  9. Upload result.json.

The first time you export, Telegram may ask you to approve it on your phone, or make you wait a short while for security reasons. That's normal. Come back once it lets you, and run the export again.

A note for Mac users: Telegram has two Mac apps. If you can't find Export chat history in the one you have, install Telegram Desktop instead. Menus can also look slightly different between versions.

On iPhone or Android

There's no export in Telegram's phone apps. Screenshots and screen recordings of Telegram aren't supported here either, so a computer is the way to go. Any laptop works, and you can sign out of Telegram Desktop when you're done. Your chats stay on Telegram's servers, so nothing is lost by logging out.

Common errors

Export chat history isn't in the menu

Check that you're in Telegram Desktop and not Telegram Web in a browser, which doesn't offer it. Update the app if it's old. In a group, the option sits in the same ⋮ menu.

The file is over 25 MB

Either media was left ticked, or the chat really is huge. Export again with all media unticked first. If it's still too big, set a date range that covers the last year or two.

I uploaded the wrong file

The HTML export makes files called messages.html. Those can't be read. Go back, set Format to Machine-readable JSON, and export once more.

Secret chats are missing

They can't be exported at all, by design. Only normal chats and groups come out of Telegram.

Names show up oddly

Deleted accounts appear as "Deleted Account", and people without a name set may show up by their number or username. That's what Telegram wrote into the file, so it's what you'll see.

What to do with the file

Choose result.json in the upload box below, with Telegram already picked as the source. It's opened right there in your browser, and you see the message count and who's in the chat before you send anything. Then the Detective reads it and gives you his honest opinion of everyone, you included.

Got the file? Ask the Detective

How do I export my chat?

Opened on your device. Never used for training. Deleted 7 days after your take. It's their chat too, so ask first where you can. Privacy

Questions

Why can't I export a Telegram chat on my phone?

Telegram only put the export tool in its desktop app. The iPhone and Android apps can forward or share single messages, but not a whole history. If you don't own a computer, borrow one for ten minutes: sign in, export, and log out again afterwards.

Can I export a secret chat from Telegram?

No. Secret chats are stored only on the devices that took part in them, and Telegram doesn't offer an export for them at all. Normal chats and groups export fine.

Which file in the Telegram export folder do I upload?

result.json. The folder may also hold subfolders for photos or files if you left media ticked. You can ignore all of that. Only the JSON file has the messages.

Does Telegram tell the other person when I export?

No. Telegram may ask you to confirm the export from another signed-in device, and that's only shown to you. Nobody in the chat is told, and Chat Detective doesn't contact them.

Do Telegram groups and channels work?

Groups work the same way as a one-to-one chat, and the Detective hands out awards and spots running jokes when there are three or more people. Channels are mostly one person posting, so there isn't much of a conversation for him to read.