.tex
📄 DocumentText-based

.tex File — LaTeX Source Document

application/x-tex

File Inspector

Drop any file to identify its extension and type — runs entirely in your browser

TEX

Drop a .tex file here or click to choose

Or drop any file to identify its extension

Expected MIME type:application/x-tex

Quick Facts

Extension.tex
Full NameLaTeX Source Document
MIME Typeapplication/x-tex
CategoryDocument
TypeText-based (human-readable)
Typical Size5 KB – 500 KB
First Appeared1978

What Is a .tex File?

TEX files contain source code written in the LaTeX typesetting system, which is built on Donald Knuth's TeX typesetting engine created in 1978. LaTeX uses markup commands to describe document structure, mathematical equations, cross-references, bibliographies, and formatting. It produces publication-quality output, particularly for documents with complex mathematical notation, making it the standard in academia for scientific papers, theses, and technical documentation. TEX files are plain text that can be compiled into PDF, DVI, or PostScript output using tools like pdflatex, xelatex, or lualatex. The format supports packages that extend functionality for diagrams, code listings, chemical formulas, musical notation, and more through the Comprehensive TeX Archive Network (CTAN). LaTeX enforces logical document structure through commands like section, chapter, and figure, encouraging authors to focus on content rather than visual formatting. The ecosystem includes BibTeX for bibliography management and specialized document classes for journals and institutions.

How to Open .tex Files

TeXstudio
Overleaf
VS Code
TeXmaker
LyX
Emacs
vim

Related File Extensions

More Document File Extensions

Other document formats you might encounter

Browse File Extensions by Category

Explore our reference of 259 file extensions with details, programs, and related formats.