Introduction
Session / TData Format Convert converts between StringSession text and tdata ZIP — no Telegram login.
Visit: tele.xiaohutou.top → Format Convert tab
What it does
| Input | Output |
|---|---|
| Session text (file or paste) | tdata ZIP (contains tdata/ folder) |
| ZIP with tdata | Session text file |
Detection is content-based, not by file name.
About TData
TData is the folder Telegram Desktop uses to store local login state — a set of key and mapping files, not a single “.tdata file”. This tool converts a Desktop-compatible tdata directory, not arbitrary Telegram install data.
What’s inside a valid tdata folder
A valid tdata directory has at least one of:
| Marker | Description |
|---|---|
key_datas | Common key file inside the tdata folder |
Files starting with D877F783D5… | Desktop account mapping files (fixed prefix, suffix varies) |
After Session → tdata, the downloaded ZIP looks like:
converted_tdata.zip
└── tdata/
├── key_datas
├── D877F783D5D3EF8C… (example)
└── …Extract tdata/ for Telegram Desktop import (backup your existing data first).
How to pack tdata for upload
Upload a ZIP to run tdata → Session. Name does not matter. Supported layouts:
| Pack style | Example paths inside ZIP | Supported |
|---|---|---|
Zip the tdata folder only | tdata/key_datas | Yes |
| Zip Session Export account folder | 8613988881111/tdata/key_datas | Yes (server finds tdata recursively) |
| Nested tdata anywhere | backup/xxx/tdata/… | Yes |
Folder with key_datas but not named tdata | some_folder/key_datas | Yes (marker-based lookup) |
Do not upload: password-protected ZIP, ZIP without tdata/key_datas, corrupt/empty ZIP, or files over the size limit (default 20MB).
vs Session Export ZIP
| Session Export ZIP | Convert Session → tdata | |
|---|---|---|
| Contents | session.txt + account.json + tdata/ | tdata/ only |
| Source | Online Telegram login | Existing StringSession |
You can upload a full export ZIP for tdata → Session, or paste session.txt instead.
When tdata / Session fails
- Expired Session → Session → tdata fails
- Incomplete tdata backup → “Invalid tdata” / “No valid tdata directory”
- ZIP without tdata paths → rejected before conversion
The tool does not log into Telegram or repair revoked sessions.
Key features
- Bidirectional Session ↔ tdata
- No phone / QR login
- Shared auth code with Session Export
Workflow
- Site sign-in
- Upload or paste → Start conversion → download
See How to Use.