.TR file extension
To open .TR files on Windows, open the .tr file in a plain-text editor to inspect it (you should see troff/roff markup commands).
To open a .tr file, first try a plain-text editor (it is typically troff/roff source). To view it as a formatted document, process it with a troff formatter such as groff (common on Linux/macOS; available for Windows via Unix-like environments) and output to PDF or PostScript.
Last updated: June 11, 2026 · Reviewed by Julian Stricker
What “reviewed” means on this page
- Format fit: whether the “what is this file?” description matches common real-world use of the extension, including category, typical MIME types, and aliases.
- Opening paths: whether Windows / macOS / Linux steps read plausibly for current OS dialogs and default apps; we remove fantasy menus and unsafe shortcuts.
- Security framing: whether risk notes match the extension class (for example executables vs plain data) and whether affiliate wording does not contradict the security section.
- Sources and further reading: whether external links point to vendors, standards bodies, or other primary references where possible; we avoid inventing details we cannot ground.
- Limits: this is clarity and safety-messaging QA, not a guarantee that every statement is exhaustive or that every binary you download is harmless.
Full methodology in the Imprint — The Imprint also states where AI is used and what that does—and does not—replace.
Open on your device
Choose your operating system for a dedicated step-by-step opening guide.
How to open .TR files
Use these platform-specific instructions to open .TR files safely.
Windows
- Open the .tr file in a plain-text editor to inspect it (you should see troff/roff markup commands).
- If you need formatted output, use a groff-capable environment on Windows (for example, a Unix-like toolchain) to render it to PDF/PS, then open the result in your PDF/PS viewer.
- If you cannot render locally, transfer the file to a Linux or macOS system with groff installed and generate a PDF there.
Mac
- Open the .tr file in a text editor to view or edit the roff markup.
- To view it formatted, run a troff formatter such as groff and generate a PDF/PS output, then open the generated file in Preview.
Linux
- Open the .tr file in a text editor from your file manager (it is typically plain text troff/roff source).
- Render it with groff to a viewable format (commonly PDF or PostScript), then open the resulting file in your document viewer.
- If file associations are wrong, check your desktop’s MIME association (Linux desktops commonly rely on the freedesktop.org shared-mime-info database).
iOS
- iOS typically cannot render troff/roff directly; open the .tr file as text in Files (if supported) or share it to a text-editor app, then render it on a desktop system (e.g., with groff) to PDF for comfortable reading.
Android
- Android typically cannot render troff/roff directly; open the .tr file in a text editor app to inspect it, then render it to PDF on a desktop system (e.g., with groff) and view the PDF on Android.
Security notes
- A .tr file is typically plain text, but formatting tools still parse it; treat troff/roff input from untrusted sources cautiously because malformed input can trigger bugs in parsers/formatters.
- Prefer rendering in a constrained environment (for example, a container or non-privileged account) if the source is untrusted, especially when running complex preprocessing pipelines described for text/troff (RFC 4263).
- Be wary of unexpected file content: if a “.tr” file does not look like text/roff markup when opened in a text editor, do not assume it is safe or actually troff content.
If you did not expect this file
This extension is usually plain data, text, or structured content—not a program by itself. The practical risk is social engineering (a scam attachment or misleading filename). For trusted senders you rarely need heavy-handed antivirus wording; use these tools when you want an extra check on unexpected downloads.
Avast offers free and premium antivirus software that protects against viruses, malware, ransomware, and phishing. Scan files before opening them to ensure safety.
NortonNorton 360 delivers comprehensive antivirus protection, VPN, and identity theft monitoring. Scan files for threats before opening to keep your device secure.
We may earn a commission when you use affiliate links. This supports our free file extension guides.
Can't open this file?
These are the most common causes and fixes when .TR files fail to open.
Common reasons
- The file opens as plain text with strange markup instead of a formatted document
- Double-clicking does nothing or opens in the wrong app
- Rendering fails or output looks wrong (missing macros/preprocessors)
Fix steps
- Render the file with a troff formatter (such as GNU groff) to PDF/PS/text output and read the generated output.
- If you only need the raw content, keep using a text editor; the markup is expected.
OS-specific troubleshooting
What is a .TR file?
A .tr file is commonly a troff/roff input document written in roff markup and intended to be processed by preprocessors and a page formatter. The registered Internet media type for troff input is text/troff (RFC 4263). These files are generally plain text, but correct viewing usually requires running a formatter rather than opening them like a word-processor document.
Background
Troff is a classic Unix typesetting system in the roff family, widely used for technical documents and Unix manual pages. In practice, many troff/roff source documents are stored as plain-text files with extensions such as .tr and are processed into formatted output (terminal text, PostScript, or PDF) rather than being “opened” directly like a DOCX.
The official media type for this kind of content is text/troff, registered with IANA and defined by RFC 4263. That RFC describes it as roff/troff input that may be passed through preprocessors and then a formatter.
On Linux desktops, file associations often rely on the freedesktop.org shared-mime-info database, which maps filename patterns and/or file content to MIME types. Depending on your distribution and desktop environment, a .tr file may be recognized as troff/roff text (or simply as plain text) and opened in a text editor by default.
GNU groff is a common, actively used implementation of troff that can render .tr (troff) source into multiple output formats. If your goal is to read the content as intended (with layout), rendering to PDF (or another display-friendly format) is usually the most practical approach.
Common MIME types: text/troff
Further reading
Authoritative resources for more details on the .TR format.
Common .TR issues
The file opens as plain text with strange markup instead of a formatted document
.tr is commonly troff/roff source, so opening it in an editor shows formatting commands rather than the final laid-out result.
- Render the file with a troff formatter (such as GNU groff) to PDF/PS/text output and read the generated output.
- If you only need the raw content, keep using a text editor; the markup is expected.
Double-clicking does nothing or opens in the wrong app
Your system may not have a file association for troff/roff sources (or it may be mapped to a generic text type). Linux environments often use the shared-mime-info database to decide associations.
- Use “Open with” and select a text editor for editing, or your terminal and groff for rendering.
- On Linux, update or adjust MIME/file associations if needed (desktop environments consult the freedesktop.org shared-mime-info database).
Rendering fails or output looks wrong (missing macros/preprocessors)
Some troff/roff documents expect specific macro packages or preprocessor steps (as noted in the text/troff registration, which allows preprocessors before formatting).
- Try rendering with GNU groff and ensure required macro packages/preprocessors are included in your formatting command.
- If the .tr file came from a larger documentation project, obtain the accompanying macro files or build instructions used by the author.
FAQ
What does a .tr file usually contain?
Most commonly it contains troff/roff markup (plain text) intended to be processed by a troff formatter to produce formatted output.
Is .tr the same as a PDF or Word document?
No. A .tr file is typically source markup; you usually render it (e.g., with groff) into a final format like PDF, PostScript, or terminal text.
What is the official MIME type for troff/roff input?
The registered media type is text/troff, defined by RFC 4263 and listed in the IANA media types registry.
Can I convert .tr by renaming it to .pdf or .txt?
Renaming does not convert the content. To get a PDF, you must run a formatter (such as groff) to generate PDF output; to read as text, open the source in a text editor.
Similar file extensions
Compare related formats in the same category to find the right tool faster.
- .pdf - Portable Document Format
- .docx - Microsoft Word Open XML Document
- .xlsx - Microsoft Excel Open XML Spreadsheet
- .log - Plain-text Log File
- .pptx - Microsoft PowerPoint Open XML Presentation
- .txt - Plain Text File
- .xlsm - Excel Macro-Enabled Workbook (Office Open XML)
- .ppsx - PowerPoint Show (Office Open XML Slideshow)