Home › Developer Tools › Jupyter Notebook Viewer

Jupyter Notebook Viewer

Open any .ipynb notebook to read it the way it looked in Jupyter: highlighted code, formatted Markdown with math, DataFrame tables, plots and error tracebacks. Nothing runs and nothing is uploaded; you only need a browser.

Last updated:

Advertisement
Advertisement

How to use the Jupyter Notebook Viewer

  1. Open the notebook: drop the .ipynb file on the box or click to choose it. A sample notebook is shown until you do.
  2. Navigate with the table of contents built from the notebook's headings.
  3. Change the view: untick Code to read only the narrative and results, or untick Outputs to see just the code.
  4. Copy code from a single cell with its Copy button, or all code cells at once with Copy all code.
  5. Export the rendered notebook as an HTML page to share or print, or as a .py script.

What is inside an .ipynb file

A Jupyter notebook is a JSON document. Its top level holds metadata (kernel and language), the format version (nbformat) and a list of cells. Each cell has a cell_type and its source text; code cells also store an execution_count and the outputs produced the last time they ran. That is why a notebook can be read without running it: the results travel inside the file.

Output typeProduced byHow it is shown
streamprint(), logging, progress bars (stdout or stderr)Monospaced text; stderr on a light red background; ANSI colors kept
execute_resultThe value of the last line of a cell, such as a DataFrameRichest format available (HTML table, image, Markdown, text) with Out [n]
display_datadisplay(), matplotlib figures, IPython.display objectsImages as PNG, JPEG or SVG; HTML sanitized
errorAn exception that stopped the cellThe full colored traceback

A single output can carry several formats at once (a MIME bundle). For a pandas DataFrame, for example, the file holds both text/html and text/plain; the viewer picks the richest one it can display safely, in the order HTML, SVG, PNG, JPEG, GIF, Markdown, LaTeX, JSON, plain text.

Tips

  • Outputs look empty? The notebook may have been saved after Clear All Outputs, or it was committed to Git with outputs stripped (for example by nbstripout). Re-run it in Jupyter to regenerate them.
  • Huge file size usually comes from embedded images: every plot is stored as base64 text, about 33% larger than the PNG itself.
  • Read it like a report by unticking Code and In [ ] numbers; what remains is the Markdown narrative with tables and charts.
  • Get a script for version control with Download .py. The # %% markers keep the cell boundaries, so tools such as Jupytext can turn the script back into a notebook.
  • Shell commands and magics (!pip install, %matplotlib inline) are commented out in the .py export so the script still runs in plain Python.

Frequently asked questions

How do I open an .ipynb file without installing Jupyter?

Drop the file onto this page. A notebook is a JSON file that already contains the code and the saved outputs, so it can be displayed without Python or a kernel. Everything you see, including plots and tables, comes from what was saved when the notebook was last run.

Can I run the code cells here?

No. This is a viewer, not a Python environment: it shows the code and the outputs that were saved in the file. To run the notebook, open it in Jupyter, JupyterLab, VS Code or Google Colab.

Why are some outputs missing or shown as text?

Interactive outputs such as ipywidgets, Plotly, Bokeh or Altair charts need JavaScript from a live kernel, which is not run here for safety; the viewer shows the static fallback saved with them, usually text or an image. Also, if a notebook was saved with outputs cleared, there is nothing to show beyond the code.

Is my notebook uploaded anywhere?

No. The file is read and rendered in your browser. Only the open-source libraries for Markdown (marked), HTML sanitizing (DOMPurify) and math (KaTeX) are downloaded from a public CDN; your notebook data stays on your device.

Is it safe to open a notebook from someone else?

Yes. Notebooks can contain HTML and JavaScript outputs. Jupyter itself only runs them in trusted notebooks; this viewer never runs scripts and cleans all HTML with DOMPurify before showing it.

How do I convert a notebook to HTML or a Python script?

Press Download HTML to save a standalone page with the rendered notebook, which you can also print to PDF. Download .py saves the code cells as a script, with Markdown as comments and # %% markers between cells, a format VS Code, Spyder and Jupytext understand.

Which notebook versions are supported?

Notebook format 4 (the format used since 2015 by Jupyter, JupyterLab, VS Code, Colab and Kaggle) and the older IPython format 3 with worksheets. Heading cells from format 3 are shown as Markdown headings.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

JSON ViewerExplore JSON as a collapsible tree, search keys and values and copy any node's path.Markdown EditorWrite Markdown with a toolbar, live split preview, autosave and .md or HTML export.CSV ViewerOpen a CSV or TSV file as a sortable, filterable table.SQLite ViewerOpen .db and .sqlite files in your browser, browse tables and run SQL queries.Online Python CompilerRun Python 3 in your browser with input(), numpy, pandas, charts and share links.JSON EditorEdit JSON in a tree and as code side by side: add, rename, drag, change types, undo and download.Unzip FilesOpen and extract ZIP files online.RAR & 7z ExtractorOpen RAR, 7z and other archives online and extract files.Regex TesterTest and debug regular expressions live.File Info ViewerCheck file size, type, date and MD5/SHA hashes.DOCX ViewerOpen and read Word .docx files in your browser, then print or save them as HTML.EPUB ReaderOpen and read EPUB e-books in your browser with pages, a table of contents and font controls.What Is My BrowserSee your browser, version, OS, engine, screen and which web features it supports.Font ViewerPreview TTF, OTF, WOFF and WOFF2 fonts with sample text, waterfall, glyphs and metadata.Regex Cheat Sheet75+ ready-to-use regex patterns for emails, URLs, IPs and dates, each with a live test box.JavaScript Keycode FinderPress any key to see its JavaScript key, code, keyCode, which, location and modifiers.QR Code ScannerScan QR codes with your camera or from an image and safely read the link or text.RAID CalculatorUsable capacity, efficiency and fault tolerance for RAID 0, 1, 5, 6, 10, 50 and 60 arrays.JSONPath TesterTest JSONPath expressions live: filters, slices, wildcards and recursive search, with matches highlighted.Mermaid Diagram EditorWrite Mermaid code and see flowcharts, sequence, Gantt and ER diagrams live. Export SVG or PNG.Country Codes ListSearch ISO 3166 alpha-2, alpha-3 and numeric country codes with calling codes and TLDs.CSS Selector TesterTest CSS selectors on your HTML: highlighted matches, match count and specificity.Git Cheat SheetSearchable Git command reference by task, with copy buttons and an undo/rename/fix wizard.HAR File ViewerOpen a .har file to see a waterfall timeline, headers, bodies, timings and size totals.jq PlaygroundRun jq filters on JSON in your browser with live output, flags and an example library.Markdown Cheat SheetInteractive Markdown syntax reference: edit every example and see the live rendered preview.Regex ExplainerPaste a regular expression and get a plain-English breakdown, railroad diagram and flag notes.XPath TesterTest XPath expressions on XML or HTML: highlighted matches, node paths, values and examples.EML File ViewerOpen .eml email files to read the message, headers and raw source and save attachments.Graphviz Online ViewerWrite Graphviz DOT code and render graphs live; switch layout engines, export SVG or PNG.JavaScript Online CompilerWrite and run JavaScript in your browser with a console, timing, error lines and share links.LaTeX Table GeneratorEdit a table like a spreadsheet or paste from Excel and get LaTeX tabular or booktabs code.Log File ViewerOpen huge log files with level colors, regex and time filters, JSON pretty-print and tail -f.Logic Gate SimulatorBuild logic circuits with AND, OR, NOT, XOR gates and flip-flops; see live outputs and truth tables.MSG File ViewerOpen Outlook .msg emails in your browser: sender, recipients, body, headers and attachments.Online Code EditorVS Code-style editor in your browser: tabs, 50+ languages, find/replace, autosave.Online Hex EditorOpen any file as hex and ASCII, edit bytes, search, inspect values and save the result.PHP Online CompilerRun PHP 8 code in your browser with output, HTML preview, error lines and share links.Semantic Version CalculatorBump, compare, sort and test SemVer versions against npm ^, ~ and x ranges.XSLT TesterRun an XSLT 1.0 stylesheet on XML in your browser and see the output as HTML, XML or text.ASCII Diagram EditorDraw boxes, arrows and text on a character grid and copy plain-text diagrams for code and READMEs.DBF File ViewerOpen dBase .dbf files and shapefile tables, search and sort records, export CSV or XLSX.MBOX File ViewerOpen .mbox mail archives: list and search messages, read them, save attachments, export EML.MDB File ViewerOpen Access .mdb and .accdb databases in your browser: list tables, view rows, export CSV.Shapefile ViewerView zipped shapefiles on a map with the attribute table, then export to GeoJSON or CSV.PlantUML EditorWrite PlantUML and see sequence, class, activity and more diagrams live. Export SVG or PNG.Sorting Algorithm VisualizerWatch bubble, insertion, merge, quick, heap and radix sort step by step with live counters.Lottie ViewerOpen Lottie JSON or .lottie files to play, pause, scrub frames, change speed and see details.Diff ViewerPaste a git diff or .patch file and view it side by side or inline, with file navigation.EditorConfig GeneratorBuild an .editorconfig with indent, charset, line endings and trim rules per file pattern.Folder Compare ToolCompare two folders by file list, size and SHA-256 hash, then open a text diff of changed files.Glob Pattern TesterTest glob patterns like **/*.js, {a,b} and !exclusions against a list of file paths.JMESPath TesterEvaluate JMESPath expressions against JSON live, the query language used by the AWS CLI.MongoDB Query TesterTest MongoDB find filters, projections and aggregation pipelines on sample JSON documents.
See all 53 Code Playgrounds & Testers →