📄

Word to MD

Unpack a docx locally and rebuild headings, lists, tables and code blocks as Markdown with .md export.
docx 📂 Text 👤 ToolCMS 🏷️ v1.0.0 ⚙️ clipboard

文档未选择

docx 在本机解包解析,文件不会离开设备。

识别结果—

导入文档后,这里列出每个段落的样式判定:标题级别、列表、表格。

解析选项

切换选项会立即按新规则重新解析,不用重新导入文档。

导出

Markdown等待导入

How to Use

📖 What it does

Moving a Word document into a docs site, a Git repository or a knowledge base is mostly retyping: heading levels, bullets and pipe tables. This tool reads the docx structure directly and rebuilds Markdown from the styles Word already stores.

Everything runs in the browser: the file is unpacked and parsed locally, so the document never leaves your machine. It suits technical documentation migration, README writing and turning specs into repository docs.

A 10,000-character docx parses to Markdown in about 0.1 s. The original XML stays cached, so toggling code blocks, quotes or the image list re-runs conversion without unzipping the file again.

Images are listed by rels name only, never inlined as base64, which keeps the Markdown from growing by hundreds of kilobytes. Inline them separately when you really need a self-contained file.

The workspace exposes 4 controls, from 把 .docx 拖进来,或点击选择 to 图片输出占位链接, and every one of them only affects the local rendering: nothing is sent back to a server.

The 把 .docx 拖进来,或点击选择 control toggles a single behaviour on or off; the preview updates at once and the exported file follows the current state.

The 识别代码块样式 control toggles a single behaviour on or off; the preview updates at once and the exported file follows the current state.

The 识别引用块样式 control toggles a single behaviour on or off; the preview updates at once and the exported file follows the current state.

The 图片输出占位链接 control toggles a single behaviour on or off; the preview updates at once and the exported file follows the current state.

✨ Features

  • Heading levels from Heading 1 to 6, including localised style names.
  • Bold, italic, bold italic, strikethrough and inline code restored per run.
  • Bullets and numbered lists with two indent levels and automatic numbering.
  • Tables become pipe tables with padded columns; line breaks inside cells become
    .
  • Hyperlinks resolved through document relationships.
  • Live two-pane preview plus character, paragraph, heading and table counts.

🚀 How to use

  1. Drop a .docx or pick one; up to 20 MB.
  2. Wait for parsing; the Markdown preview appears on the right.
  3. Check headings and tables: paragraphs merely bolded in Word stay as body text.
  4. Copy or download the result and use it in your docs.
  5. If parsing fails, check the hint: encrypted files, .doc and scans have no readable structure.

⚠️ Before you rely on it

  • docx only: .doc is a binary format, save as .docx first.
  • Images are skipped: they live as separate media and cannot be embedded in Markdown.
  • Styles matter: only paragraphs using a heading style become # lines.
  • Complex layouts degrade: columns, text boxes, headers, footers and footnotes are dropped; merged cells become normal cells.
  • Rows are padded: short rows get empty cells so the pipe table stays valid.
  • Nothing is uploaded.

Questions people ask: Q: Why did my heading stay plain text? A: It was not using a heading style, only a larger bold font; apply Heading 1 in Word and convert again. Q: Where did images go? A: Images are not part of Markdown; export them separately and link them. Q: It says the file is not a valid docx A: It may be a renamed .doc or encrypted; save an unencrypted .docx from Word. Q: Will a huge document freeze the page? A: Up to 100,000 characters it takes about 0.2 s. Larger files pause the interface briefly while unzipping, since it runs on the main thread; split the document by chapter.

Typical use: Moving a product spec from Word into a repository wiki. Migrating technical docs to a static site with headings and tables intact. Turning meeting notes into Markdown for an editor.

What you can enter: A single .docx up to 20 MB; no .doc, .docm, encrypted files or scans. Conversion uses paragraph styles and numbering properties, not page layout.

What you get back: Markdown text, copyable or downloaded as a same-named .md file. Counts of characters, paragraphs, headings, tables and list items.

Limits to keep in mind: docx only; no doc, docm, encryption or OCR. No images, headers, footers, footnotes, text boxes or columns. Merged and nested tables degrade to plain tables.

Related

⏫︎