Python (.py) to Jupyter Notebook (.ipynb) online
Bring an ordinary Python script into Jupyter format with sensible cells, markdown, and imports. Upload your .py file here and download a valid .ipynb that opens in JupyterLab, VS Code, Google Colab, PyCharm, Cursor, or Kaggle.
This py to ipynb converter is built for the exact workflow people usually mean when they search py to ipynb, py to ipynb converter, py to ipynb online, or python script to notebook: take source code that already exists as a .py file and rebuild the notebook structure without manually copying blocks into Jupyter one cell at a time.
The converter recognizes common patterns: Jupytext / VS Code percent markers (# %%), markdown cells (# %% [markdown]), classic IPython script lines (# In[1]:), and Spyder cells. If your file has no markers, it still splits intelligently so you are not stuck with one giant cell.
Like the rest of Jupy Tools, conversion stays in your browser. Your source code never gets uploaded to a backend—useful for private repos, student work, and production scripts. The output is a real nbformat notebook, not a screenshot or a renamed text file.

