Open .tex files online and compile them to PDF

texviewer turns LaTeX source into a typeset PDF right in your browser. Load an example, paste your own code, or drop in a .tex file — the compiled document appears beside the source.

No sign-up Compiles in your browser Files stay on your device
Ready
main.tex
PDF preview
PDF
Press Compile to see your PDF here.
First compile may download the engine (~30 MB), then it stays cached.

How it works

Three steps — the same flow as compiling locally, without installing anything.

1. Load your source

Paste LaTeX code, upload a .tex file, or start from an example. The editor highlights syntax and numbers every line.

2. Compile in the browser

pdfLaTeX (TeX Live 2026, WebAssembly) runs on your device. The first compile downloads the engine; after that it is cached.

3. Read and download

Preview the PDF side by side, fix errors by clicking straight to the offending line, and download the result.

Hit a compile error? The guides walk through the frequent ones — starting with undefined control sequence and missing $ inserted. Need a starting point? Pick a ready LaTeX template.

Frequently asked questions

Do I need an account?

No. Every feature on this page works without signing up or paying.

Are my files uploaded to a server?

No. Compilation runs entirely in your browser with a WebAssembly pdfTeX — the source and the PDF never leave your device.

Why is the first compile slow?

The browser downloads the TeX engine and its package set first — over 100 MB — and caches them on your device. Later compiles start immediately.

What happens to my draft?

It is saved in your browser's local storage so a refresh does not lose work; the Clear button deletes it.