Chapters become files
Every markdown cell that starts with a level-1 heading opens a new notebook, carrying the heading with it. Choose level 1–2 or 1–3 when sections deserve their own files.
Split a notebook
Long notebooks are hard to read and worse to review. Choose an .ipynb and cut it into separate notebooks — one per heading, or every N cells — with each part keeping its own code, outputs and images.
Split in your browser — the notebook is never uploaded. You can also drop it anywhere on this page.
That file could not be read
Notebook
How to cut it
Files to download
Each file is written in this tab from the notebook you chose. Nothing is uploaded, the parts keep their outputs, and splitting the same notebook with the same rule always produces the same files.
Merge notebooks0 bytes uploaded
The notebook is parsed and split on your device.
1 → N notebooks
As many parts as your headings — or your chunk size — produce.
nbformat 3 + 4 read
Modern notebooks and the legacy worksheet format.
100% of the outputs kept
Plots, tables, text and tracebacks stay with their cells.
How the cut is made
A split is a partition, not a conversion: the cells are divided whole, so nothing is rewritten and nothing is lost at the seams.
Every markdown cell that starts with a level-1 heading opens a new notebook, carrying the heading with it. Choose level 1–2 or 1–3 when sections deserve their own files.
Notebooks without headings can still be divided: pick a cell count and every N cells become one file, in order, with no cell cut in half.
Plots, tables, stream text and tracebacks stay under their cells with their execution counts, so each part reads the way the original did.
Files are numbered and slugged from the heading — notes-01-intro.ipynb, notes-02-cleaning-data.ipynb — so a file manager keeps the notebook order.
Compatibility
Notebooks from Jupyter, JupyterLab, Colab, Kaggle, Deepnote and VS Code split the same way, including the older nbformat 3 files.
Reads
Writes
Keeps
Does not do
How it works
Long notebooks are hard to read and worse to review. Choose an .ipynb and cut it into separate notebooks — one per heading, or every N cells — with each part keeping its own code, outputs and images.
Choose the notebook
Pick the .ipynb or drop it on the page; it is parsed on your device as it arrives.
Pick the cut
Split at headings — level 1 only, or 1–2 and 1–3 — or choose a fixed number of cells per file.
Download the parts
Each file has its own button, and “Download all files” saves the set in order.
Splitting is not a format conversion, so nbconvert cannot do it. These are the routes that can — the browser above, a short script, or by hand.
nbconvert converts a notebook to another format (--to html, --to markdown, --to script); it has no partition step, because “split” has no output format to name. Searching for a --split flag in nbconvert is a dead end; the page above is the equivalent in a browser.
The reproducible route: read the notebook with nbformat.read, slice nb.cells at each heading index, write each slice with nbformat.write. It is the same partition this page performs — worth keeping when the split belongs in a build step.
Neither editor has a split action: the manual route is copy on the cells you want, File → New → Notebook, then paste. It works for one extraction, but it is slow for a forty-chapter notebook and easy to drop outputs on the way.
In a hurry? The rule panel is the whole workflow.
Choose the notebook, pick headings or a cell count, download the parts — no Python, no nbconvert, no temporary scripts.
FAQ
Short answers about dividing a notebook — what counts as a heading, how the files are named, and what happens to outputs and ids.
Choose the notebook at the top of this page. The browser reads it, shows how many parts the current rule produces, and lists every file with its own download button. Adjust the rule — headings or a fixed cell count — and the list updates instantly. Nothing is uploaded and no install is needed.
Yes, and that is the default. Every markdown cell whose first line is a level-1 heading (# Chapter 2) starts a new file, and the heading cell itself travels into that file. Set the selector to level 1–2 or 1–3 to also start files at ## and ### sections.
They become notes-01-intro.ipynb when they contain anything — a title, imports, setup prose. If the notebook opens straight into a heading, there is no intro file and the first chapter takes number 01.
Switch the rule to “every N cells”. The splitter cuts the cell list into consecutive groups of that size, in order, and numbers them notes-01.ipynb, notes-02.ipynb, and so on. A cell is never divided between two files.
Yes. Stream text, tables, plots, JSON and tracebacks stay under their cells with their execution counts, because the cells move as they are. The only field rewritten is the cell id, which is re-derived so ids stay unique inside each new notebook.
From the original file name, a two-digit number and the heading: analysis.ipynb with a “3. Cleaning data” heading becomes analysis-03-3-cleaning-data.ipynb. Headings in scripts that have no Latin letters keep the number only, and the original notebook’s kernel is carried into every part.
“Download all” saves several files in a row, which browsers treat as one request. Chrome and Edge ask once for permission to download multiple files — allow it and all parts are saved. You can also download each part individually from the list.
Yes — the merge tool on this site concatenates them in the order you list, with the same writer, so a split and a merge round-trip without losing cells or outputs.
No. Nothing is executed: the cells are copied into new documents with their existing outputs and execution counts. That also means a stale output stays stale after the split — the tool divides the file, it does not refresh it.
No. The file is read with the browser File API and the parts are written inside the tab. You can disconnect from the network after the page loads and the split still works.
Split the monolith once, then review, run or hand off each part on its own.
Split a notebook