Click the "Select File" button above, and choose your TH file.
You’ll see a preview, if available.
Click the "Convert file to..." button to extract text information.
Convert TH to another file type
To convert TH Models or photos to another format, you need PyTorch or other Data software.
Convert a file to TH
To convert other file formats to the "Serialized Machine Learning Model" file type, you need software like PyTorch or a similar tool.
About TH files
The .TH file format primarily functions as a PyTorch Serialized Model Object, used by researchers and developers to save the weights, biases, or entire state dictionaries of deep neural networks. Alternatively, security applications like Perfect App Protector disguise standard JPG images of unauthorized phone users by saving them with the .TH extension to hide them from the primary gallery.
When used for machine learning, these files are accessed via Python scripts using the PyTorch library. For app locker photos, any standard image viewer can open them once the extension is renamed.
The major disadvantage of the PyTorch .TH format is its proprietary, Python-dependent nature. The files are essentially ZIP archives containing serialized data stored via the pickle protocol. Because they lack a standardized cross-platform structure, they cannot be opened by web browsers or standard data viewers. Furthermore, opening an untrusted model can trigger arbitrary code execution due to inherent pickle vulnerabilities.
If you want to deploy a machine learning model across different platforms (like C++ or mobile), you should convert the .TH file to .ONNX. If you are dealing with a disguised app locker photo, converting or renaming it to JPG or PNG will immediately restore its visibility across all devices.
Because PyTorch .TH files are highly specific to Python and often only contain the raw tensor weights (missing the actual neural network architecture code), standard online converters fail to process them. They do not have the original Python environment required to rebuild the data object.
Convert.Guru analyzes your TH file, detects the exact format, and lets you read the text inside.
Users also converted ONNX, PTH, CKPT, MYR, SGD and GH files.
FAQ
If you want to convert TH file to MYR, SGD, GH, SHP, KML, KMZ, GPX, GEOJSON, TOPOJSON, TIF, TIFF or ECW, you can use PyTorch or similar software from the "Machine Learning Model Storage" category. In the File menu, look for Save As… or Export….
To convert LAZ, KMZ, DTM, CSV, DEM, PRJ, LAS, GPX, DSM, SHP, DBF or KML files to TH, try PyTorch or another comparable tool in the "Machine Learning Model Storage" category.
The TH Converter Story
The history of Convert.Guru began over 25 years ago in California with Tom Simondi’s file-format database. A former contributor to Space Shuttle development and a software pioneer of the 1980s, Simondi established a trusted resource for file type analysis that was even referenced by Microsoft Windows XP. Today, we use modern technology to process and convert thousands of file formats while continually improving our TH converter.