Compiles as-is
A standalone document: article class, inputenc, fontenc, hyperref and geometry are already in the preamble, so pdflatex runs on the file with no edits at all.
IPYNB to LaTeX
Drop in an .ipynb file and download a standalone .tex document: a complete preamble, markdown converted to sections and lists, every code cell in verbatim, outputs after their cell — pdflatex compiles it as it is.
Converted in your browser — the notebook is never uploaded. You can also drop it anywhere on this page.
That file could not be opened
notebook.ipynb
LaTeX preview (first 200 lines)
The file is assembled in this tab from the notebook you chose. Nothing is uploaded, and the download is yours alone — the same document every time for the same notebook.
Convert to DOCX instead1 file to compile
No template, no image folder, no missing style.
0 bytes uploaded
Parsing and serialization happen on your device.
pdflatex ready
A standard preamble that TeX Live and Overleaf accept.
6 notebook sources
Jupyter, JupyterLab, Colab, VS Code, Kaggle, Deepnote.
What the file keeps
The converter writes the document itself — preamble, body and all — so the file compiles on its own instead of expecting an exporter toolchain to be in place.
A standalone document: article class, inputenc, fontenc, hyperref and geometry are already in the preamble, so pdflatex runs on the file with no edits at all.
Headings become sections, lists become itemize and enumerate, emphasis and code spans become textbf, emph and texttt — the constructs notebook authors actually write.
Every code cell lands in a verbatim block with its indentation untouched, and fvextra breaks long lines so nothing runs off the right edge of the page.
Stream text, results and tracebacks follow the code that produced them, so a compiled PDF reads in the same order the session ran.
Ampersands, percent signs, underscores, braces and carets in prose are escaped for you; a literal end-verbatim sequence inside code is neutralised rather than breaking the document.
Paste the body into a dissertation chapter, or keep the standalone file as the record of the run — LaTeX is still the format journals, supervisors and preprints expect.
Compatibility
Notebooks from Jupyter Notebook, JupyterLab, Google Colab, Kaggle, Deepnote and VS Code all convert, including the older nbformat 3 files.
Notebook formats
Cell types
Output types
Known limits
How it works
Drop in an .ipynb file and download a standalone .tex document: a complete preamble, markdown converted to sections and lists, every code cell in verbatim, outputs after their cell — pdflatex compiles it as it is.
Drop the notebook in
Choose an .ipynb file or drag it onto the page; it is parsed on your device and the LaTeX document is assembled immediately.
Check the document
The preview shows the start of the .tex — the preamble, then the title block and the first cells.
Download the .tex file
Save notebook.tex and compile it with pdflatex, upload it to Overleaf, or paste the body into an existing document.
From the browser converter above to nbconvert, Overleaf and a local TeX install — pick the route that fits where you already are.
nbconvert ships a LaTeX exporter that wraps the notebook in its own template, may produce extra files and expects the surrounding machinery to be present. This page skips the template and the sidecars: one standalone .tex with nothing left to resolve.
File → Download as → LaTeX (.tex) exists in classic Notebook and JupyterLab, but produces the templated export with external image files. The converter here writes a single portable document instead.
Overleaf compiles the file as uploaded — no project setup, no missing class. Locally, pdflatex notebook.tex is enough; TeX Live and MiKTeX both carry every package the preamble asks for.
In a hurry? Use the converter at the top.
The browser converter above reads the same notebooks as every route on this page and produces the same standalone .tex document — with nothing installed and nothing uploaded.
FAQ
Short answers about converting a notebook to LaTeX — how the file compiles, how it compares to the nbconvert exporter, and what happens to figures and math.
Use the converter at the top of this page: choose or drop in your .ipynb file and the browser writes a complete .tex document — preamble included, markdown as sections and lists, code in verbatim. Download the file and compile it. No upload, no install, no terminal.
Run pdflatex notebook.tex (twice if you added a table of contents), or upload the file to Overleaf and press Recompile. The preamble uses only standard packages — article, inputenc, fontenc, hyperref, geometry and fvextra — all present in a normal TeX Live install.
nbconvert wraps the notebook in its own LaTeX template, writes image files next to the .tex and expects that machinery to be present. This converter writes one standalone file with no sidecar images and no template dependency — easier to move, paste or archive.
A standalone .tex cannot carry binary payloads, so image outputs become a short verbatim note naming where a figure sat. For a document with the plots rendered, use the IPYNB to PDF or IPYNB to HTML converters instead.
Yes: headings become section, subsection and subsubsection; bullet and numbered lists become itemize and enumerate; bold, italic and inline code become textbf, emph and texttt. Tables and raw HTML stay as escaped text rather than being guessed at.
LaTeX math passes through as source, which is what you want — the dollar signs and environments are already LaTeX. Add amsmath to the preamble if a cell uses align or other amsmath environments and your distribution does not load it by default.
Yes. Everything after the preamble is ordinary LaTeX body content: copy it into a chapter file and it typesets alongside your own sections. The section levels translate directly, so the notebook becomes a chapter without renumbering.
No. Underscores, ampersands, percent signs, braces, carets and tildes in markdown text are escaped automatically, so prose that would normally break a LaTeX run compiles unchanged. Inside verbatim, code is copied literally.
Yes by default: stream text, results and tracebacks appear after their code cell in verbatim blocks, so the compiled PDF reads like the executed session. Turn outputs off and the document carries the code and prose only.
Yes. The file is read with the browser File API and the .tex is assembled inside the tab, so after the page loads you can disconnect the network and the conversion still works — which is also the practical proof that nothing was uploaded.
No. The notebook is parsed and the LaTeX document written inside the tab. No server is involved at any step, and closing the tab leaves nothing behind.
Yes, with no account, no file-size gate and no watermark. The conversion runs on your own device, so there is no per-file cost — same as the site's IPYNB to PDF, PY, HTML, Markdown, TXT and DOCX converters.
Drop in the notebook, download the .tex, and compile it with pdflatex or Overleaf — the analysis is done, the notation is ready.
Convert a notebook to LaTeX