Short answer: there is no single best editor
For most beginners, Overleaf is the easiest place to start, because it runs in a browser and needs no installation. For offline work, TeXstudio and Texmaker are popular cross-platform choices. Pick based on your operating system, whether you need to work offline, and whether you will share files with co-authors.
An editor is not the same as a LaTeX install
Two separate things are involved:
- The editor is where you write your
.texsource and usually where you press the build button. - The distribution (TeX Live, MiKTeX, or MacTeX) supplies the compiler, fonts, and packages that turn the source into a PDF.
Desktop editors need a distribution installed on your computer. Overleaf runs the compiler on its own servers, so you have nothing else to install.
Quick picks by goal
| Your goal | Good starting point | Why |
|---|---|---|
| Start with no install | Overleaf | Runs in a browser and includes templates |
| Offline on Windows or Linux | TeXstudio or Texmaker | Cross-platform, with a built-in PDF viewer |
| Offline on a Mac | TeXShop (with MacTeX) or TeXstudio | TeXShop comes with MacTeX |
| Already use VS Code | VS Code with LaTeX Workshop | Keeps your current editor setup |
| Less raw code | LyX | Word-processor-style editing that generates LaTeX |
| A simple, light editor | TeXworks | Ships with TeX Live and MiKTeX |
Online: Overleaf
Overleaf is a browser-based editor with templates, a live preview, and built-in sharing for co-authors. It is useful for trying LaTeX, for collaborative papers, and for working from any computer. It has a free plan with limits, and paid plans add features. Your files are stored on Overleaf’s servers, so check that this suits your work before you rely on it.
Desktop editors
TeXstudio and Texmaker
TeXstudio and Texmaker are both free, cross-platform editors for Windows, macOS, and Linux. Both include a built-in PDF viewer, code completion, and spell checking. TeXstudio is a common choice for beginners, and Texmaker offers a similar feature set. Either one works well if you want an offline editor that is separate from your distribution.
TeXworks
TeXworks is a simple editor that ships with TeX Live and MiKTeX, so it may already be installed when you set up LaTeX. It is light and easy to start with, though it has fewer advanced features than TeXstudio.
TeXShop on macOS
TeXShop is the macOS editor that comes with MacTeX. It is a good choice for Mac users who want a native app. See can I use LaTeX on a Mac for setup steps.
VS Code with LaTeX Workshop
If you already use Visual Studio Code, the LaTeX Workshop extension adds LaTeX support, including build and preview commands. To check spelling there, see LaTeX spell check in VS Code with LaTeX Workshop. You still need a distribution installed underneath.
LyX: writing without raw code
LyX is a document processor that looks more like a word processor. You type and format text in its window, and it writes LaTeX for you. It suits people who want LaTeX’s typeset results without writing every command. LyX still uses a LaTeX installation to produce a PDF, and you can export the LaTeX it generates to read and learn from.
Best editor for Windows
On Windows, TeXstudio is a common first choice. TeXworks ships with MiKTeX, so it may already be installed. Overleaf works in any browser if you don’t want to install anything. To set up a Windows install, see install LaTeX on Windows 10.
Best editor for Linux
On Ubuntu and similar systems, TeXstudio and Texmaker are both available from the standard package repositories, and VS Code with LaTeX Workshop is another option. Overleaf works on any system with a browser. For the install steps, see how to install LaTeX on Ubuntu with TeX Live.
How to choose
Answer these questions:
- Do you need to work offline? If yes, choose a desktop editor and install a distribution. If no, Overleaf is the simplest start.
- What operating system do you use? Windows, macOS, and Linux each have a natural choice listed above.
- Will other people edit the files? Overleaf makes sharing and co-authoring easy.
- Do you want to write commands or click through formatting? Write commands in TeXstudio, Texmaker, or Overleaf. Use LyX if you want a word-processor feel.
Once you have picked an editor, read getting started with LaTeX to write and compile your first document.