llm2doc

IPYNB to PDF converter. No LaTeX to install.

Drop a Jupyter notebook and download it as a PDF, with the code, printed results, charts, DataFrames and formulas it saved. Word and HTML come from the same document. No account, and the file is opened in your browser.

Checked

— or drop a .ipynb file here · up to 30 MB · the notebook is read in your browser, not uploaded

How do I convert a Jupyter notebook to PDF?

Run all the cells, save the notebook, and drop the .ipynb file on the box above. It is opened in your browser, not uploaded, and its code is not run: the PDF shows the outputs the notebook saved. Text cells keep their headings, lists and LaTeX formulas. Each code cell becomes a code block with its output underneath, whether printed text, an error traceback or a pandas table, and Matplotlib charts stay where they appeared. The converter opens with PDF chosen and a note that counts what came through; a switch in that note hides the code. Check the document in the preview, then click Download PDF. Nothing needs installing: no Jupyter, no nbconvert, no LaTeX. The same document also downloads as a Word file, with formulas as equations you can edit, or as one HTML page. Widgets and interactive Plotly charts are left out unless the notebook saved a picture of them.

Save it with its outputs

Run every cell and save, so the file holds the results: this page shows outputs, it does not compute them. From Colab, File → Download → Download .ipynb. Up to 30 MB.

Look it over

The notebook opens in the editor, with the page it makes beside it. A note counts the cells, outputs, pictures and tables and says what was left out. Hide the code there if your reader only needs the results.

Download

Download PDF sends the document's text once to our converter and typesets the pages in your browser. Choose DOCX or HTML above the editor instead and the same document downloads in that format.

What comes through, cell by cell

In the notebookIn the PDF, Word or HTML file
Text cellsHeadings, lists, links, tables and emphasis as written, and LaTeX between $…$ or $$…$$ typeset as formulas. A picture pasted into the cell comes along, also one placed with <img>; one that is a separate file beside the notebook does not, and when it is written as ![…](images/plot.png) or as <img> with that address a line in its place names the file and the note counts it. A fence, a comment or an HTML tag a cell leaves open ends with that cell, so it does not run into the next one, as each cell stands on its own in Jupyter; a cell that starts indented still continues a list the cell before it ends with, and lists in consecutive cells run on as one.
Code cellsA code block in the notebook's language, with Python, R and Julia in syntax colours. Empty cells are skipped, and the In [n] numbers are not shown.
Printed outputWhat print() and logging wrote, stdout and stderr together, as a plain block under the code. A progress bar keeps its last state, and terminal colour codes are removed.
ErrorsThe traceback, ending with the error's name and message, as plain text under the cell that raised it. When the traceback lacks that last line, it is added at the end.
Charts and picturesMatplotlib, seaborn and any other saved image (PNG, JPEG, GIF, WebP, SVG) as a picture in its place, up to about 6 MB of pictures per notebook; Word keeps the first 24. A figure past that, or one saved only as a PDF, is replaced by a line saying so.
DataFramesA real table with its header row and index. A two-level header is joined as "2025 / Q1", the "1000 rows × 3 columns" line under a shortened frame is kept, and a caption set with df.style becomes a line above the table. Markdown in a cell is not formatted, so an underscore stays an underscore; a web address may still become a link. Pictures in an HTML table, such as two plots side by side, come along in their cells. Colab's buttons around a table are dropped, and so are colours set with df.style. Past 100 columns, the rest are cut and a last column says so.
Formula outputA sympy result, or any other LaTeX output that is one formula, becomes a displayed formula: typeset in the PDF and the HTML, an editable equation in Word. A sentence written with Latex() reads as text with its formulas set; other LaTeX, and a formula over 20,000 characters, is shown as LaTeX code.
Markdown, HTML and JSON outputdisplay(Markdown(…)) as written. An object that also saved plain text, such as a scikit-learn model or a rich table, comes through as that text, as Jupyter prints it. Other HTML output becomes ordinary text, lists and links, with its scripts and styles removed. display(JSON(…)) becomes a laid-out JSON block.
Widgets, Plotly, maps, playersLeft out and counted in the note, unless the notebook also saved a picture of the output: widgets, Plotly and Bokeh charts, folium maps, and Audio, Video and IFrame players. Text an output shows beside a player stays. A tqdm progress bar keeps its last saved state.
Very long outputOver 500 lines, an output keeps its first 400 and last 100; over 50,000 characters, its first 40,000 and last 10,000, with a line between saying how much was left out. A table over 500 rows is shortened the same way.
Raw cellsLeft out, and the note says how many.
Cell tagsremove-cell, remove-input and remove-output are followed: the whole cell, its code, or its result is left out.
Hide the codeOne switch in the note. The code blocks go, every text cell and output stays, and Show the code brings them back.

A report for someone without Jupyter

A notebook written for yourself makes a long PDF: every import, every check, every intermediate print. For a manager or a client, start with the text cells, because their headings become the document's headings. Then press Hide the code in the note, and the reader gets the prose, the tables and the charts in order, with none of the Python. Tag a cell remove-cell in Jupyter and it is left out here, or remove-output to keep its code and lose a noisy result. Document setup, the sliders button above the preview, adds a cover page with the title, author and date, a contents list built from the headings, page numbers, and A4 or Letter paper. If the reader wants to comment or change the wording, send the Word file instead: its tables are Word tables and its charts are ordinary pictures.

Other ways to a PDF, and what each needs

RouteGood forWhat it takes
This pageA notebook you have to hand in or send today, from any computer, including one where you cannot install software.Nothing to install, and the notebook file stays on your computer; for a PDF or Word file its text goes once to our converter, which keeps nothing. It shows the saved outputs and does not run code. PDF, Word with editable equations and HTML from one document; one switch hides the code. Widgets and interactive charts stay out, and Word takes fewer pictures than the PDF.
Jupyter: File → Save and Export Notebook As → PDFNotebooks on your own computer when TeX is already set up.nbconvert with Pandoc and XeLaTeX, from a TeX distribution such as TeX Live or MacTeX. Without them the export stops with "xelatex not found on PATH" or "Pandoc wasn't found". The PDF uses LaTeX's article layout.
Jupyter: export as HTML, then printA quick PDF on a computer without LaTeX.Save and Export Notebook As → HTML, open the file in a browser, print it and choose Save as PDF. The browser's print function decides the page breaks.
jupyter nbconvert on the command lineMany notebooks at once, or a course with a fixed toolchain. --no-input leaves the code out.--to pdf needs Pandoc and XeLaTeX, like the menu. --to webpdf renders the HTML in headless Chromium instead: pip install "nbconvert[webpdf]", and --allow-chromium-download when no Chromium is found.
VS Code: … → ExportNotebooks you already edit in VS Code.HTML, PDF or a .py script. PDF needs TeX installed, and output that is only SVG does not appear in it; VS Code suggests HTML and the browser's Save as PDF for that case.
Google Colab: File → PrintA notebook that lives in Colab, printed the way Colab shows it.The browser's print dialog, where you choose Save as PDF. To use this page instead, File → Download → Download .ipynb.
Upload convertersA one-off file, when sending the notebook to another company's server is fine.The .ipynb is uploaded and converted there; what the site keeps, and for how long, is up to it. Read its terms if the notebook holds data that is not yours to share.

Menus and requirements as the Jupyter, nbconvert and VS Code documentation gives them, and as Colab's own menus showed them, on 3 December 2026.

Common questions

Is my notebook uploaded?

No. The .ipynb is opened by the page in your browser and turned into a document on your computer, and the HTML file is made there too; the notebook file itself never reaches our server. The PDF, Word, EPUB and slides use the server: the converted document, not the notebook file, is sent once to our Pandoc converter. For a PDF only its text goes, Pandoc prepares it for typesetting, and the pages are typeset back in your browser, where the pictures stayed; for Word its pictures go too, and Pandoc turns LaTeX into equations Word can edit. The temporary files are deleted as soon as the answer is sent back, and nothing from the document is logged or kept, unless you choose to attach it to a problem report.

Do I need Jupyter, nbconvert or LaTeX installed?

No. Jupyter's own PDF export hands the notebook to nbconvert, which writes it out as LaTeX and typesets it with XeLaTeX, so Pandoc and a TeX distribution have to be on the same computer. When one is missing, Jupyter reports "nbconvert failed" with "xelatex not found on PATH" or "Pandoc wasn't found". Here our converter prepares the text and the pages are typeset in your browser by Typst, an engine that needs no installing, so there is nothing to set up. It works on a school or work laptop where you cannot add software, and on a computer that has never had Python on it.

Does it run my code?

No. It shows what the notebook saved the last time it was run, and nothing is executed, here or on a server. If an output is missing in the preview, it is missing in the file: the cell was never run, or its output was cleared before saving; when a notebook saved no outputs at all, the note says so. Run everything first (in Jupyter, Run → Run All Cells; in Colab, Runtime → Run all), save, and drop the file again. A cell that stopped with an error shows that error, as it was saved.

How do I get the .ipynb out of Colab, Kaggle or VS Code?

In Colab, open File → Download → Download .ipynb. A Kaggle notebook can be downloaded as a .ipynb file too. In VS Code, and in Jupyter on your own computer, the notebook already is a .ipynb file in your project folder: save it and drop that file here. In JupyterLab, File → Download saves a copy of the open notebook. Run all the cells before you download, because the copy carries the outputs as they stand at that moment.

Can I leave the code out of the PDF?

Yes. Press Hide the code in the note above the preview: the code blocks disappear, and the text, tables, charts and formulas stay in order. Show the code brings them back, as often as you like before you download. To leave out single cells, tag them in Jupyter: remove-input drops a cell's code, remove-output its result, remove-cell the whole cell. nbconvert's --no-input option makes much the same choice on the command line.

Can I get Word or HTML instead of a PDF?

Yes, from the same document. Choose DOCX above the editor and click Download DOCX: LaTeX in text cells and formula output such as a sympy result arrive as Word equations you can double-click and edit, DataFrames become Word tables, and the first 24 pictures are embedded. Word takes a document of up to 2 million characters with its pictures counted in, so a notebook with more than about 1.5 MB of pictures is too large for it: download that one as a PDF or HTML. Choose HTML for a single .html file with the pictures inside it, which opens in any browser; its formulas use KaTeX's stylesheet from the web, so they are typeset when the file is opened online.

Can I just open and read a notebook here?

Yes. You do not have to export anything. Drop the .ipynb and read it in the converter: the preview shows the text, the code, the outputs and the charts. Switch the layout to Preview to put the editor away, and choose Wide for a full-width page. That makes it a viewer for a notebook someone emailed you, on a computer without Jupyter, with nothing installed or uploaded. GitHub shows notebooks that are kept in a repository; this is for a file on your disk.

Why is my Plotly chart or widget missing?

Plotly figures, ipywidgets and folium maps are drawn by JavaScript while the notebook is open, and the file stores what that script needs rather than a picture of the result; an audio or video player and an embedded web page have nothing to print either. A page in a PDF cannot run them, so those outputs are left out, and the note says how many. For Plotly, show the figure as a picture before you save: fig.show(renderer="png") does that, and needs the kaleido package. Matplotlib and seaborn charts are saved as PNG pictures by default, so they come through as they are.

How large a notebook can it take?

Up to 30 MB. Pictures come through up to about 6 MB in all, and a figure past that is replaced by a line saying so; the PDF and the HTML file keep every picture that came through. Word, EPUB and slides are made on our server, which takes a document of up to 2 million characters with its pictures counted in: a notebook with more than about 1.5 MB of pictures is over that, so take it as a PDF or HTML. Word also keeps only the first 24 pictures. An output longer than 500 lines keeps its first 400 and last 100, and one over 50,000 characters its first 40,000 and last 10,000. Pictures that are separate files beside the notebook stay behind, and a notebook in the old format (nbformat 3 or earlier) has to be opened and saved again in Jupyter first. The note above the preview says when anything was shortened or left out and, once you choose DOCX, when the notebook is too large for Word.