Available now.py

IPYNB Python

Export code cells to a single .py file. Markdown becomes comments; you keep a runnable script for reviews or CI.

Free, instant, and 100% private — your notebook never leaves the browser.

How it works

Three steps from upload to download

1

Drop your notebook

Drag a .ipynb onto the card or browse your files. You never create an account.

2

Choose the export

Select Word, PDF, Markdown, HTML, LaTeX, ZIP, Python tools, viewer, cleaner, merger, or splitter—whatever matches your reviewer.

3

Download and ship

Grab the finished file immediately. Open it locally, attach it to email, or upload it to your LMS.

Also available

Try our other free tools

IPYNB to Python: turn a Jupyter notebook into a plain .py script in your browser

A Jupyter notebook (.ipynb) is JSON under the hood: cells, metadata, and outputs bundled together. When you need a single Python file instead—something you can drop into a repo, run with `python script.py`, or hand to someone who does not use notebooks—this ipynb to python converter online does the job right here. Upload the notebook, flip a few switches for markdown and outputs, and download a `.py` file. Nothing is uploaded to a server; the file stays on your machine.

People find this page with many phrasings: ipynb to python script, ipynb to py, convert ipynb to python file, or save ipynb as python without digging through menus in JupyterLab or VS Code. Maybe you are on a borrowed laptop, maybe your local `jupyter nbconvert` install is broken, or maybe you just want the fastest path from notebook to script. Same idea: bring the `.ipynb`, leave with runnable ipynb to python code.

The export follows a familiar pattern: code cells become real Python, markdown cells turn into `#` comment lines so you still see the narrative, and you can optionally paste cell outputs under `# Output:` comments when that helps debugging or grading. Cell boundaries use `# %%` markers so editors like VS Code still understand sections—handy if you later round-trip with a py to ipynb converter online free workflow on our Python → Notebook tool.

Use this page when you want source code, not a fixed report. If you need a printable handout, use IPYNB → PDF. If you need the raw notebook structure, use IPYNB → JSON. Keeping each tool focused helps the result match the search intent instead of stuffing one page with unrelated conversions.

Why use this ipynb to python converter

One .py from the whole notebook

Code cells are stitched into a single script with clear separators. You get something you can run, lint, or ship—without carrying the notebook JSON around.

Markdown stays in the file

Toggle “include markdown as comments” so headings and prose sit above the code as `#` lines. Readers still see the story the notebook told.

VS Code–friendly cell markers

Optional `# %%` lines mark cell boundaries—similar to Jupytext percent format—so tools that split on markers keep working after you leave Jupyter.

Outputs when you need them

Turn on “include outputs as comments” to freeze prints and streams under each cell. Leave it off for a slim script meant for production.

Private in the browser

Parsing runs locally. That matters when the notebook has grades, credentials, or unpublished results—you are not sending it through a random upload box.

No Python install required here

You still need Python somewhere if you want to execute the exported file—but you do not need nbconvert or Jupyter installed on this computer just to produce the `.py`.

How to convert ipynb to python in your browser

  1. 01

    Upload your .ipynb

    Drag the notebook in or browse. This is the same file you would open in JupyterLab, VS Code, Colab, or Kaggle after downloading.

  2. 02

    Choose export options

    Include markdown as comments, add outputs as comments, and keep separator lines—match how you want the ipynb to python file to read.

  3. 03

    Download the .py

    Save the script, run it with your interpreter, or open it in any editor. Rename it if your course or CI expects a specific filename.

Frequently asked questions

Open this page, upload your `.ipynb`, set the options you want, and download a `.py` file. There is no charge, no signup, and the conversion runs in your browser—your notebook is not stored on our servers.