Method using Google Colab only

  1. Download your .ipynb file

You can actually do it using only Google Colab. File -> Download .ipynb


  1. Reupload it so Colab can see it

Click on the Files icon on the far left:

Then Upload to session storage:

Select & upload your .ipynb file you just downloaded.


  1. Get your file's path

then obtain its path (you might need to hit the Refresh button before your file shows up):


  1. Conversion using %%shell

Then, just as in Julio's answer, execute in a Colab cell:

%%shell
jupyter nbconvert --to html /PATH/TO/YOUR/NOTEBOOKFILE.ipynb

The %%shell lets the interpreter know that the following script is interpreted as shell. Don't write anything before %%shell, use a distinct cell for this.

The form of /PATH/TO/YOUR/NOTEBOOKFILE.ipynb will be something like /content/lightaberration3.ipynb.


  1. Your file is ready

Might need to click Refresh again, but your notebook.html will appear in the files, so you can download it:


The great thing about this is that nothing python-related has to be installed on your computer, not conda, not pip, only a browser.

Answer from zabop on Stack Overflow
🌐
Runcell
runcell.dev › tool › ipynb-to-html
Jupyter to HTML Converter (.ipynb → .html) — Free
The VS Code Jupyter extension makes converting IPYNB to HTML straightforward. Install the official Jupyter extension and open your IPYNB file inside VS Code. Press Ctrl+Shift+P (Cmd+Shift+P on macOS) to open the Command Palette.
🌐
Vertopal
vertopal.com › en › convert › ipynb-to-html
Online IPYNB (Jupyter Notebook) to HTML Converter - Vertopal
Convert IPYNB (Jupyter Notebook) documents to HTML file format using Vertopal free online converter tools. You can edit and optimize your documents.
People also ask

How to convert IPYNB to HTML using nbconvert?
Run the command: jupyter nbconvert --to html notebook.ipynb. Replace notebook.ipynb with your actual filename.
🌐
code-format.com
code-format.com › tool › converter_ipynbtohtml
Convert IPYNB to HTML Online – Export Jupyter Notebooks to HTML
How to convert IPYNB to HTML in Google Colab?
In Google Colab there is no direct export to HTML. Download your notebook (File → Download .ipynb) and run !jupyter nbconvert --to html your_notebook.ipynb in a Colab cell.
🌐
code-format.com
code-format.com › tool › converter_ipynbtohtml
Convert IPYNB to HTML Online – Export Jupyter Notebooks to HTML
How do I convert an .ipynb file to HTML with no extra tools?
Use the built‑in Jupyter utility: jupyter nbconvert --to html your_notebook.ipynb. nbconvert comes with every standard Jupyter install.
🌐
docs.kanaries.net
docs.kanaries.net › topics › Python › ipynb-to-html
How to Convert .ipynb to HTML – Kanaries
🌐
VCF Viewer
htmtopdf.herokuapp.com › ipynbviewer
Jupyter Notebooks(ipynb) Viewer and Converter
This online app allows you to convert Jupyter Notebooks (ipynb) to HTML, PDF format. It is easy to use, With just a few clicks, you can get the converted HTML or PDF, and View this file from your browser directly.
🌐
TheOnlineConverter
theonlineconverter.com › convert-ipynb-to-html
Free IPYNB to HTML Converter - Online Converter
Convert Jupyter Notebook (.ipynb) to HTML in seconds. No install needed. Preserve code, markdown, and outputs. Fast, free, and secure!
🌐
Jupyterconverter
jupyterconverter.com
Convert Jupyter and Markdown Files Online – Free to PDF, Word, IPYNB, or HTML
Convert IPYNB and Markdown files to PDF, Word, HTML, EPUB, PPTX, IPYNB, LaTeX, ODT, RTF, TXT, and more.
🌐
Code-format
code-format.com › tool › converter_ipynbtohtml
Convert IPYNB to HTML Online – Export Jupyter Notebooks to HTML
Free IPYNB to HTML converter. Turn Jupyter Notebooks into HTML pages online — no setup required.
Top answer
1 of 7
77

Method using Google Colab only

  1. Download your .ipynb file

You can actually do it using only Google Colab. File -> Download .ipynb


  1. Reupload it so Colab can see it

Click on the Files icon on the far left:

Then Upload to session storage:

Select & upload your .ipynb file you just downloaded.


  1. Get your file's path

then obtain its path (you might need to hit the Refresh button before your file shows up):


  1. Conversion using %%shell

Then, just as in Julio's answer, execute in a Colab cell:

%%shell
jupyter nbconvert --to html /PATH/TO/YOUR/NOTEBOOKFILE.ipynb

The %%shell lets the interpreter know that the following script is interpreted as shell. Don't write anything before %%shell, use a distinct cell for this.

The form of /PATH/TO/YOUR/NOTEBOOKFILE.ipynb will be something like /content/lightaberration3.ipynb.


  1. Your file is ready

Might need to click Refresh again, but your notebook.html will appear in the files, so you can download it:


The great thing about this is that nothing python-related has to be installed on your computer, not conda, not pip, only a browser.

2 of 7
42

Google Colab doesn't currently have such a feature as a built-in.

Your best route is to first download it through File > Download .ipynb and then use the standard tool for Jupyter Notebook conversion, nbconvert:

jupyter nbconvert --to html notebook.ipynb

If you use an Anaconda Python distribution, nbconvert is most likely already installed. If not, refer to what is described in their install instructions to be able to convert:

pip install nbconvert
# OR
conda install nbconvert
Find elsewhere
🌐
Kanaries
docs.kanaries.net › topics › Python › ipynb-to-html
How to Convert .ipynb to HTML – Kanaries
July 14, 2025 - A practical guide to turning Jupyter Notebooks (.ipynb) into share‑ready HTML pages. Includes a free online converter, command‑line instructions that require **no extra installations**, tips for VS Code & Colab, FAQs, and more.
🌐
MD Editor
app.mdedit.ai › home › tools › file conversion tools › jupyter notebook to html
MD Editor | Convert Jupyter Notebook to HTML Online
Convert Jupyter Notebook (ipynb) to HTML Online. You can upload a file. Download the HTML result in seconds. Works in your browser—no installs needed.
🌐
MConverter
mconverter.eu › convert › ipynb › html
IPYNB to HTML Converter • Online & Free • MConverter
Batch convert IPYNB to HTML online. Convert large IPYNB files up to 10 GB each. Fast and easy exporting from IPYNB to HTML in bulk.
🌐
nbconvert
nbconvert.readthedocs.io
nbconvert: Convert Notebooks to other formats — nbconvert 7.17.1 documentation
Primarily, the nbconvert tool allows you to convert a Jupyter .ipynb notebook document file into another static format including HTML, LaTeX, PDF, Markdown, reStructuredText, and more.
🌐
ConvertHub
converthub.com › home › ipynb converter
Convert IPYNB to HTML | ConvertHub
Converting IPYNB to HTML is simple: Upload your IPYNB file, select HTML as the output format, and click convert.
🌐
Scribd
scribd.com › document › 710181181 › Convert-ipynb-to-HTML
Convert ipynb to HTML
Convert ipynb to HTML - Free download as Text File (.txt), PDF File (.pdf) or read online for free. The document provides instructions for converting a Jupyter notebook to HTML format in 10 steps: 1) Download the ipynb file to local drive; 2) Open the ipynb file in Colab; 3) Run all code; 4) Navigate to the content folder in Colab; 5) Upload the local ipynb file; 6) Copy the file path; 7) Enter the conversion code; 8) Replace the file path; 9) Run the code; 10) Refresh and download the html file.
🌐
Free File Converter
freefileconvert.com › home › ipynb converter › ipynb to html
Convert IPYNB to HTML (Free & Online) - FreeFileConvert
Free online tool to convert IPYNB (Jupyter Notebook) files to HTML (Hypertext Markup Language File). No download required. Fast, secure, and 100% free.
Top answer
1 of 16
154

If you have LaTeX installed you can download as PDF directly from Jupyter notebook with File -> Download as -> PDF via LaTeX (.pdf). Otherwise follow these two steps.

  1. For HTML output, you should now use Jupyter in place of IPython and select File -> Download as -> HTML (.html) or run the following command:

     jupyter nbconvert --to html notebook.ipynb  
    

    This will convert the Jupyter document file notebook.ipynb into the html output format.

    Google Colaboratory is Google's free Jupyter notebook environment that requires no setup and runs entirely in the cloud. If you are using Google Colab the commands are the same, but Google Colab only lets you download .ipynb or .py formats.

  2. Convert the html file notebook.html into a pdf file called notebook.pdf. In Windows, macOS (brew install wkhtmltodf) or Linux, install wkhtmltopdf. wkhtmltopdf is a command line utility to convert html to pdf using WebKit. You can download wkhtmltopdf from the linked webpage, or in many Linux distros it can be found in their repositories.

     wkhtmltopdf notebook.html notebook.pdf   
    

Original (now almost obsolete) revision: Convert the IPython notebook file to html.

ipython nbconvert --to html notebook.ipynb

2 of 16
37

Also pass the --execute flag to generate the output cells

jupyter nbconvert --execute --to html notebook.ipynb
jupyter nbconvert --execute --to pdf notebook.ipynb

The best practice is to keep the output out of the notebook for version control, see: Using IPython notebooks under version control

But then, if you don't pass --execute, the output won't be present in the HTML, see also: How to run an .ipynb Jupyter Notebook from terminal?

For an HTML fragment without header: How to export an IPython notebook to HTML for a blog post?

Tested in Jupyter 4.4.0.

🌐
Ipynbtopdf
ipynbtopdf.net › ipynb-to-html
IPYNB to HTML Converter Online - IPYNBTOPDF.net
Convert Jupyter notebook files (.ipynb) to HTML format online free. Transform IPYNB to HTML with perfect code, output, and mathematical formulas preservation.
🌐
Saturn Cloud
saturncloud.io › blog › convert-ipynb-notebook-to-html-in-google-colab
Convert ipynb notebook to HTML in Google Colab | Saturn Cloud Blog
October 28, 2023 - Nbconvert is a tool that allows you to convert Jupyter notebooks to various formats, including HTML, PDF, and Markdown. To install nbconvert in Colab, you can run the following command in a code cell: ... This will install the nbconvert package ...
🌐
GitHub
github.com › jupyter › nbconvert
GitHub - jupyter/nbconvert: Jupyter Notebook Conversion · GitHub
Convert Jupyter notebook file, mynotebook.ipynb, to HTML using:
Starred by 1.9K users
Forked by 608 users
Languages   Python 51.5% | Jupyter Notebook 37.9% | Jinja 10.3% | CSS 0.2% | Makefile 0.1% | Go Template 0.0%
🌐
IPython
ipython.org › ipython-doc › 3 › notebook › nbconvert.html
Converting notebooks to other formats — IPython 3.2.1 documentation
For simple single-file output, such as html, markdown, etc., the output may be sent to standard output with: $ ipython nbconvert --to markdown notebook.ipynb --stdout