How to Convert IPYNB to PDF on Windows (Without WSL)
A Windows-native guide to converting Jupyter Notebooks to PDF. Covers MiKTeX setup, nbconvert --to webpdf, and a no-install browser option for users who can't (or won't) run WSL.
- #windows
- #guide
- #ipynb-to-pdf
Windows is historically the hardest OS for Jupyter Notebook PDF conversion. The default nbconvert --to pdf path assumes a Unix-like environment, and Windows users often end up in WSL just to avoid PATH headaches. But you don't actually need WSL — here are three Windows-native paths that work reliably in 2026.
Method 1 — Online Converter (Zero Install)
The fastest path on Windows: use a browser-based converter like ipynbtopdf.org.
- Open the site in Edge, Chrome, or Firefox.
- Drag your
.ipynbfile onto the page. - Download the PDF ~3 seconds later.
Works on Windows 10 and 11, including ARM64 devices like the Surface Pro X. No Python, no WSL, no MiKTeX, no PowerShell gymnastics.
Method 2 — nbconvert --to webpdf (No LaTeX)
If you have Python installed via the official installer or winget, you can skip LaTeX entirely:
pip install "nbconvert[webpdf]"
playwright install chromium
jupyter nbconvert --to webpdf notebook.ipynb
This renders the notebook in headless Chromium and prints to PDF. It's the most reliable local path on Windows because it doesn't depend on a working TeX install.
Common gotcha: if playwright install chromium fails, make sure long path support is enabled:
# Run as Administrator
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
Method 3 — nbconvert --to pdf with MiKTeX
The classic path, if you want maximum fidelity and don't mind a TeX install.
- Install MiKTeX from miktex.org (download the 64-bit installer).
- Open "MiKTeX Console" → "Update now" to pull the latest packages.
- Open a new PowerShell window (so
PATHis refreshed) and run:
pip install jupyter nbconvert
jupyter nbconvert --to pdf notebook.ipynb
Pros: Excellent output quality, matches LaTeX-rendered academic papers. Cons: MiKTeX's "install missing packages on the fly" prompt can interrupt the first few conversions. To make it non-interactive, open MiKTeX Console → Settings → "Always install missing packages".
Method 4 — WSL2 (If You Already Have It)
If you're already using WSL2 for Python work, the Linux path works perfectly:
sudo apt install texlive-xetex texlive-fonts-recommended texlive-plain-generic
pip install nbconvert
jupyter nbconvert --to pdf notebook.ipynb
But if you're considering installing WSL just for PDF conversion — don't. The online converter or webpdf path will save you an hour of setup.
Windows-Specific Gotchas
Path Length Limits
Windows historically limits paths to 260 characters. nbconvert's intermediate files can exceed this. Enable long paths (see Method 2) to avoid cryptic FileNotFoundError messages.
Antivirus Blocking
Some enterprise antivirus tools flag xelatex.exe or chromium.exe (from Playwright) as suspicious. If conversions fail silently, add exclusions for:
C:\Users\<you>\AppData\Local\ms-playwright\C:\Program Files\MiKTeX\
PowerShell Execution Policy
If PowerShell refuses to run Python-related scripts:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
Line Endings in Notebooks
If you've edited notebooks on Windows and macOS, line endings can confuse some converters. Normalize with:
# In PowerShell, from the notebook's directory
(Get-Content notebook.ipynb -Raw) -replace "`r`n", "`n" | Set-Content -NoNewline notebook.ipynb
Which Method Should You Use?
| Your situation | Best method on Windows |
|---|---|
| No Python, just need a PDF | ipynbtopdf.org |
| Have Python, don't want LaTeX | nbconvert --to webpdf |
| Have Python, want maximum fidelity, don't mind TeX | nbconvert --to pdf + MiKTeX |
| Already using WSL2 | Linux path inside WSL |
Conclusion
Windows doesn't have to be the hard mode for IPYNB to PDF conversion. The online converter works in any browser with zero install, webpdf gives you a fully local path without LaTeX, and MiKTeX remains the high-fidelity option for users who want classic nbconvert output. Pick the one that fits your environment and you'll never need WSL for PDF conversion again.