How to open a .tex file online
Someone sent you a .tex file — a paper draft, lecture notes, a Beamer deck — and you want to see what it looks like. A .tex file is plain-text source; opening it in a text editor shows markup, not the document. To see the real thing, the source has to be compiled with a TeX engine such as pdfLaTeX.
The fast way: compile it in the browser
texviewer runs pdfLaTeX (TeX Live 2026, WebAssembly) on your device:
- Open the editor and press Upload .tex — or drag the file onto the editor pane.
- Press Compile. The first run downloads the engine (about 30 MB, cached afterwards); typical documents compile in seconds.
- Read the PDF in the right pane and download it if you need a copy.
Why “just open it” needs a compiler
A minimal .tex file looks like this:
\documentclass{article}
\begin{document}
Hello, world. $E = mc^{2}$
\end{document}
Only a TeX engine can turn those commands into typeset pages — line breaking, math rendering, section numbering and all. Sites that merely display the source show you markup; a proper viewer compiles the source and shows the PDF.
Common hiccups
- Missing figures. If the document references images that were not sent along with the source, compilation stops with a file not found error — see the file-not-found guide.
- Split projects. Documents that \input other files need those files too. Single-file and bundled sources compile as-is; multi-file uploads are on the roadmap.
- Unknown commands. A package the engine does not carry produces an undefined control sequence error — see the guide.
Try it with a real document
The example below is a typical paper-style source. Open it, press Compile, and you have the PDF.