利用可能.ipynb

WordをJupyter Notebookへ

.docxをアップロードして有効な.ipynbを取得。Wordの見出しと段落はMarkdownセル、書式付きコードはフェンス付きブロック、表と任意で埋め込み画像もすべてブラウザ内でローカル処理。

Free and instant. Files are processed briefly on our servers for conversion, then discarded — nothing is stored.

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.

なぜ人々は Word 文書を Jupyter Notebook に変換するのか

データサイエンスの課題を提出したことがある方、学生の分析を採点したことがある方、あるいは自分は Jupyter なのに同僚は Microsoft Word しか使わない——そんな協業をしたことがあるなら、フォーマットのギャップがいかに苛立たしいかよく分かるはずです。

Word 文書はどこにでもあります。本当の分析が走るのは Jupyter Notebook です。

問題は繰り返し起こります。学生は Word で書くが、講義では .ipynb の提出が求められる。データサイエンティストは方法論を Word に書き、実行可能なコードセルが必要になる。研究者は Word で下書きし、最初からやり直さずにライブな Python 可視化を足したい——。

だからこのコンバーターがあります。Word 文書(.docx)をドラッグすると、きれいな Jupyter Notebook(.ipynb)が手に入ります。本文は Markdown セル、コードブロックは実行可能なコードセル、見出しは一貫した Markdown 階層にマッピングされます。コピペ不要。再整形不要。手強いコマンドラインに週末を奪われることもありません。

変換の仕組み(ステップごと)

Word から Jupyter への変換は魔法ではなく、構造化テキストの翻訳です。.docx は XML のパッケージ、ノートブックは JSON です。コンバーターは構造を読み、各要素を適切なセル種別にマッピングし、JupyterLab・VS Code・Google Colab がネイティブに開ける有効な .ipynb を書き出します。

ファイルをアップロードすると次のことが起きます。

  1. 1

    Word 文書構造の解析

    ツールは .docx を読み、段落、見出し(H1–H6)、コード風ブロック、表、リスト、埋め込み画像を識別し、順序を保持します。

  2. 2

    コンテンツをセル種別へマッピング

    段落と見出しは Markdown セルに。等幅やコード指定の段落はコードセルに。GFM 表を有効にすると、表は Markdown セル内の Markdown 表になります。

  3. 3

    .ipynb JSON の構築

    有効な nbformat 4.5 構造を組み立てます。JupyterLab、VS Code、Colab が期待する形式です。メタデータ、カーネルヒント、セル ID は自動生成されます。

  4. 4

    プレビューとダウンロード

    数秒で .ipynb が用意できます。変換はブラウザ内でローカル実行され、.docx は当社サーバーにアップロードされず、ダウンロードまでこのタブ内に留まります。

Word を Jupyter Notebook に変える三つの方法

ワークフローは人それぞれです。ブラウザでの手早さ、Pandoc での再現性、Python での完全自動化——三つの補完的な道を紹介します。

最も簡単 — インストール不要

このオンラインコンバーターを使う

.docx をアップロードし、セルをプレビューして .ipynb をダウンロード。Pandoc も Python もターミナルも不要。一回限りの変換に最適です。

開発者 — コマンドライン

ターミナルで Pandoc

Pandoc を入れて pandoc file.docx -o file.ipynb を実行。自動化やオフラインのバッチ向けです。

Python — スクリプト

python-docx + nbformat

python-docx で段落を読み、ルールに合わせて nbformat でセルを組み立てます。

上級者 — バッチ

フォルダ一括変換

Pandoc を使った短いシェルループや Python の subprocess で、.docx ディレクトリを一度に処理します。

Pandoc で .docx を .ipynb に(CLI)

Pandoc は文書変換のデファクトスタンダードです。2.11 から docx → ipynb をネイティブサポート。インストール済みなら多くの場合ワンコマンドで足ります。

pandoc my-report.docx -o my-notebook.ipynb
for f in *.docx; do pandoc "$f" -o "${f%.docx}.ipynb"; done

Pandoc は Word の見出しスタイルを Markdown 見出し(#, ##)にマッピングし、段落を Markdown に、コード様式のテキストをコードセルに——構造忠実で、完全オフラインです。

Python で .docx を .ipynb に

プログラムで制御したい場合——例えば特定のキーワードで始まる段落をコードセルに——は python-docx と nbformat を使います。

段落を走査し Markdown かコードかを選びノートブックオブジェクトにセルを追加する短いスクリプトで、完全にカスタム可能なパイプラインになります。

pip install python-docx nbformat

実際に Word を Jupyter に変えるのは誰か

需要は思ったより多いです。代表的な状況:

課題を提出する学生

Word で下書き、Jupyter で採点——最も多いパターンです。

再現性を求める研究者

Word の方法論が査読者が実行できるノートブックに。

ドキュメント移行のデータチーム

技術ドキュメントを Git 管理のインタラクティブノートブックへ。

教材を作る教育者

Word の講義ノートが Colab や Binder 向けノートブックに。

ツールが混在するチーム

非技術者は Word、開発はパイプラインで .ipynb が必要。

アーカイブ

古い Word レポートを新データで再実行できるノートブックに。

より良い結果のためのヒント

  • ✓組み込みの見出しスタイル(見出し 1/2)を使うと # / ## にマッピングされ構造が明確になります。
  • ✓等幅や「コード」段落スタイルでコードを示すと実行可能セルになりやすくなります。
  • ✓浮動テキストボックスや複雑な段組は避けましょう。Markdown へ不均一に潰れます。
  • ✓画像はシンプルに。インライン埋め込みが最も安定しがちです。
  • ✓事前にスペルチェック——テキストはそのまま保持されます。
  • ✓変換後は JupyterLab で .ipynb を開き「Run All Cells」でコードセルを確認してください。

方式の比較——どれを選ぶか

方式速度インストール不要オフラインバッチコードセル検出
このブラウザコンバーター即時✓✗✗自動
Pandoc CLI速い✗✓✓自動
python-docx + nbformat中程度✗✓✓カスタム
手動コピー遅い✓✓✗手動

.ipynb ファイルとは

.ipynb は nbformat に従った JSON でセル(Markdown またはコード)、任意の出力、メタデータを保存します。JupyterLab、VS Code、Colab、Databricks がこの形式を扱えます。

Word からの変換は意図を保つことです。物語対実行可能な断片、表対散文、画像の位置。

オンラインでWordをJupyter Notebookに変換

Students, researchers, and teams draft in Microsoft Word but need a valid .ipynb for JupyterLab, VS Code, or Google Colab. This page is the reverse of our IPYNB to DOCX export: take a .docx hand-in, lecture note, or methodology draft and rebuild notebook cells you can run. Secure server conversion — processed briefly, not stored afterward. Upload a .docx, preview how headings and code styles map to cells, and download nbformat 4.5 JSON with cell IDs included.

We map Word through structured HTML to Markdown, then reuse the same fence-aware pipeline as Markdown to Jupyter so fenced blocks become code cells and narrative stays in Markdown cells. Real Heading 1–6 styles become Markdown # hierarchy; monospace fonts or Word “Code” paragraph styles are preferred signals for executable cells instead of prose. Optional GFM tables keep lab tables inside Markdown cells; optional inline images carry diagrams as data URLs when you need figures in the notebook.

Legacy binary .doc files are not supported—open them in Word or LibreOffice and save as .docx first. Complex floating text boxes and multi-column layouts flatten because notebooks do not have those constructs; keep content linear for best results. We never execute your Python—language tags and style hints only steer kernelspec metadata so Colab and Jupyter open the file cleanly. After download, Run all and fix any fences that Word styled inconsistently.

Use this when a classmate wrote analysis in Word for a course that requires .ipynb, when an instructor distributed .docx notes that should become a lab, or when you edited a notebook in Word via DOCX export and need the interactive format back. Pandoc remains excellent for CLI batches (pandoc file.docx -o file.ipynb); this page is the zero-install path with live preview for one-off Word → notebook conversions without maintaining python-docx scripts on a shared PC. After conversion, skim the preview for misplaced code cells; Word bold-only fake headings without real styles often need a quick fix before you rely on the outline in Jupyter.

高度なWord→ノートブック機能

スタイルを考慮したコード検出

任意のスタイルマッピングで、Wordの「コード」や等幅段落をフェンス付きコードとして扱い、実行可能セルへ送り、Markdownの散文にはしません。

GFMの表とリスト

GFM対応のTurndownで表・タスクリスト・強調を保持し、講義ノートをノートブックへ引き継ぎます。

インライン画像(任意)

埋め込みを有効にすると図をMarkdownセルにdata URLで格納。演習に便利ですがファイルが大きくなることがあります。

実行しないカーネルヒント

Pythonは実行しません。フェンス上の言語タグはMarkdownインポートと同様にkernelspecメタデータを導きます。

IPYNBからDOCXとの連携

Wordで編集し、Pandocなしで再び対話形式が欲しいときの往復に対応。

nbformat 4.5出力

ダウンロードはJupyterLab、VS Code、Colabなど互換ツールでセルID付きで開けます。

FAQ

よくある質問

Secure server conversion — processed briefly, not stored afterward. Clear the tab when finished on a shared PC.

Only modern Office Open XML (.docx) is supported. Open legacy.doc in Word or LibreOffice and save as.docx, then convert here.

Pandoc is excellent for CLI automation. This page is for zero-install, in-browser workflows with live preview and download.

With "GFM tables" enabled, HTML tables from Word typically become Markdown tables inside Markdown cells.

Yes. Colab accepts standard.ipynb files—upload the file from the Colab file panel or Drive.

Word styling is approximated. Review runnable cells after conversion and adjust kernels or fences as needed.

Yes. Export notebooks to Word for track-changes review, then convert the .docx back here when you need runnable cells again. Round-trips are structural, not pixel-perfect—review code cells after import.

Use a monospace font or a Code paragraph style, or wrap samples in clear fenced-style blocks after HTML conversion. Heading styles should be real Word headings, not bold-only fake titles.

Yes. Heading 1–6 map to Markdown heading levels inside Markdown cells so the notebook outline matches the document.

No. It only builds notebook structure. Open the .ipynb in Jupyter, VS Code, or Colab and run cells yourself in a trusted environment.

Yes. Download the .ipynb and upload it in Colab’s file panel or Drive. Adjust the kernel if needed, then Run all to verify fences became executable cells.

Simple equations and footnotes may flatten to Markdown or plain text. Complex equation editors and endnotes often need a quick manual pass after conversion.