ipynb to pdf

IPYNB to LaTeX

Notebook to LaTeX,ready to compile.

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.

  • Jupyter Notebook
  • JupyterLab
  • Google Colab
  • VS Code
  • Kaggle
  • Deepnote

1 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

A .tex document, not a template that has to be assembled.

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.

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.

Markdown to LaTeX markup

Headings become sections, lists become itemize and enumerate, emphasis and code spans become textbf, emph and texttt — the constructs notebook authors actually write.

Code in verbatim

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.

Outputs after their cell

Stream text, results and tracebacks follow the code that produced them, so a compiled PDF reads in the same order the session ran.

Escaping handled

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.

Made for papers and theses

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

Reads every notebook you can throw at it.

Notebooks from Jupyter Notebook, JupyterLab, Google Colab, Kaggle, Deepnote and VS Code all convert, including the older nbformat 3 files.

Notebook formats

  • nbformat 4 (current)
  • nbformat 3 worksheets (legacy)
  • UTF-8 content, any language
  • title from the notebook or file name

Cell types

  • markdown → sections, lists, emphasis
  • code → verbatim blocks
  • raw cells → quote blocks
  • empty cells skipped quietly

Output types

  • stream text as verbatim
  • results and JSON as verbatim
  • tracebacks complete and unstyled
  • images noted, not embedded

Known limits

  • figures are not embedded in a standalone .tex
  • HTML outputs get a note and a short excerpt
  • math passes through as LaTeX source
  • no image files or assets are written

How it works

Three steps to the file.

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.

  1. 01

    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.

  2. 02

    Check the document

    The preview shows the start of the .tex — the preamble, then the title block and the first cells.

  3. 03

    Download the .tex file

    Save notebook.tex and compile it with pdflatex, upload it to Overleaf, or paste the body into an existing document.

Every route from notebook to LaTeX

From the browser converter above to nbconvert, Overleaf and a local TeX install — pick the route that fits where you already are.

jupyter nbconvert --to latex

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.

Jupyter's own menus

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 and a local TeX install

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.

What the file keeps (and what it drops)

  • A compilable preamble — article, inputenc, fontenc, hyperref, geometry.
  • verbatim for every code cell — indentation preserved exactly.
  • fvextra line breaking — long code lines wrap instead of overflowing.
  • Markdown as sections and lists — headings, bullets, numbering, emphasis.
  • Escaping done for you — special characters survive in running text.
  • No sidecar files — one .tex, no image folder to keep in step.

FAQ

IPYNB to LaTeX: frequently asked questions

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.

How do I convert IPYNB to LaTeX?

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.

How do I compile the .tex file?

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.

How is this different from jupyter nbconvert --to latex?

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.

What happens to plots and figures?

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.

Does the converter handle markdown formatting?

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.

How is math handled?

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.

Can I paste the body into an existing paper or thesis?

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.

Do special characters in prose break the document?

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.

Do code-cell outputs end up in the .tex file?

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.

Does the conversion work offline?

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.

Is my notebook uploaded when I convert it here?

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.

Is the IPYNB to LaTeX conversion free?

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.

LaTeX is still what papers are written in.

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