Word Comments Export
Operator: Abdulla Al Fahad. How tools are built and checked
A contract draft with 140 comments is hard to review inside Word: you scroll, filter by reviewer in a pane, and cannot sort or count anything. The same comments in a spreadsheet can be sorted by author, filtered to the open ones and ticked off one by one.
This tool reads the comments straight from the .docx package, rebuilds the reply threads and resolved flags that newer Word versions keep in a separate part, and finds the exact words each comment was attached to. It does not need Word, and it never changes the document.
Key features
- Author, initials, date and full comment text for every comment
- The exact anchored text, with the paragraph number and nearest heading
- Reply threads and resolved status, when the file records them
- Filters by author and by open or resolved status
- Export to CSV, Excel with a by-author summary sheet, or Markdown grouped by thread
Where Word stores a comment and how threads are rebuilt
A .docx stores each comment's text, author, initials and date in word/comments.xml. The thread structure lives elsewhere: word/commentsExtended.xml, written by Word 2013 and later, lists each comment's paragraph ID, the paragraph ID of the comment it replies to, and a done flag for a resolved thread. A file saved by a tool that omits that part has no reply or resolved data, and the export reports that instead of guessing.
The anchor is read from the document itself. Each comment has a commentRangeStart and a commentRangeEnd with the same ID, and the text between them is the anchor, joined across paragraphs by a line break. Deleted tracked text is skipped and inserted text is kept. Ranges are read in the body, footnotes, endnotes, headers and footers, and anchors over 600 characters are cut. Word repeats the parent's range on a reply; a reply with no range of its own borrows its parent's.
Each comment also gets its paragraph number within its part and the nearest heading above it, taken from a paragraph styled Title or Heading 1 to 9. A .docx does not record page numbers, because pages depend on fonts and printer, so none are offered. The date is shown as stored, to the minute; Word writes the author's own clock time and may add a Z, so it is not reliably UTC.
How it works
The .docx is unzipped in the browser, up to 50 MB with no single part over 150 MB, and the XML parts are read with a small built-in parser.
Threads are ordered by position: each root comment goes where its anchor starts, body first, then footnotes, endnotes, headers and footers, and its replies follow by date. Comments with no anchor come last, in comment-ID order.
CSV and Excel use the shared writers that prefix text starting with =, +, - or @ with an apostrophe so a spreadsheet does not run it. The Excel file has a frozen header row, filters and wrapped text, and the Markdown puts each anchor in a quotation with its comments listed underneath.
Common use cases
- A 140-comment contract draft: filter to open comments and export Excel, sort by section, and send the unresolved ones back to the author as a checklist.
- A thesis chapter with 62 comments from a supervisor: the Markdown export, with each comment under a quotation of the sentence it concerns, reads like a review letter.
- Three reviewers on a policy document: the by-author sheet counts each person's comments, replies and resolved threads.
- A template audit to find which comments sit in headers and footers: the Location column marks them, since they are easy to miss in Word.
How to use this tool
- Drop the .docx and read any warning about missing reply data.
- Untick authors or choose open or resolved only.
- Check the list of comments.
- Save as CSV, Excel or Markdown.
Example
A document with three comments
Alice on "quarterly revenue" under the heading Introduction: Check this figure / with finance.
Bob on the next two paragraphs: Rewrite =SUM(A1), marked resolved
Alice replying to Bob: Done, rewritten.Rows in the CSV
Thread 1: comment by Alice, 2025-03-09 10:15, open, Introduction paragraph 2, on "quarterly revenue"
Thread 2: comment by Bob, 2025-03-10 09:00, resolved, Introduction paragraph 3, on "Second para anchor / continues here"
Thread 2: reply by Alice, 2025-03-11 12:30, resolved, reply to Bob
The two threads are numbered 1 and 2, and the reply shares thread 2 with the comment it answers.Tips for best results
- Tick off one reviewer in the author list to produce a per-person file from the same document.
- Choose Open only before exporting when the file is a to-do list; resolved threads then leave the export without any deleting.
- The Paragraph and Section columns let you find a comment in Word with the navigation pane even though page numbers are unavailable.
Common pitfalls
Comments anchored inside text boxes or shapes are not matched to their text, because those parts are skipped; the comment is listed with an empty anchor and a warning.
Formatting inside a comment is flattened to plain text, and pictures or equations in comments are dropped.
An anchor of deleted tracked text shows as empty because deleted text is not read; the comment itself is still listed.
Common errors and how to fix them
- "This is an old .doc file or a password-protected Word file"
- Only the .docx package can be read. Open the file in Word, remove any password to open, and save it as .docx.
- A warning that the file has no reply or resolved information
- The file has no commentsExtended part, as with some converters and older versions. Every comment is listed as its own thread, and the replies appear as ordinary comments you can still tell apart by date and author.
What each column holds
The CSV and Excel exports have one row per comment, replies included, in thread order.
- Thread, Type and Reply to: the thread number, whether the row is a comment or a reply, and the author of the comment it answers.
- Comment ID, Author, Initials and Date: as stored in comments.xml.
- Resolved, Location and Section: resolved flag, part of the document (Body, Footnote, Endnote, Header or Footer) and nearest heading.
- Paragraph, Anchored text and Comment: paragraph number, the words the comment points at, and the comment's own text.
Frequently asked questions
Why are replies separate rows rather than part of the comment?
A row per comment sorts and filters cleanly. The Thread column keeps a reply with its parent, and the Markdown export nests replies under their parent comment.
Does it include tracked changes?
No, only comments. Remove Track Changes in Word here deals with tracked insertions and deletions.