Open office compare documents
How OpenOffice's Compare Document marks revisions, how it differs from recording changes or plain-text diffs, and how to check the result works for readers.
When two versions of a document exist and nobody recorded the edits, you need to reconstruct what changed between them. Apache OpenOffice Writer has a built-in command for this. This guide explains what that comparison changes, how it differs from other ways of reviewing paragraph revisions, and what to check before you share the result.
What comparing documents in OpenOffice actually changes
Writer's built-in help documents a Compare Document command under the Edit menu. You open the edited (newer) version, run the command, and choose the original (older) file. Writer then marks the differences as tracked changes in the open document. Text found only in the original appears as deletions. Text found only in the edited version appears as insertions. A dialog then lets you accept or reject each change. Menu labels can differ between releases, so if the command is not where described, look up "compare" in the help of your installed version.
The result lives in the open document. If you save it, the change marks are written into that file. Save the compared result under a new name if you want to keep the edited version as it was.
- 1. Make copies of both versions.
- 2. Open the edited (newer) version in Writer.
- 3. Choose Edit > Compare Document.
- 4. Select the original (older) file and confirm.
- 5. Review each marked change in the Accept or Reject Changes dialog.
- 6. Save the result under a new file name.
A comparison works on the characters stored in each file, not on how the text looks. This matters if either version passed through a text transformation. Some "font generator" tools replace ordinary letters with Unicode lookalikes, such as mathematical bold characters. Those are different characters from the plain word, so a comparison can report them as changed even though the text reads the same. Reversing text character by character also changes the stored content. Invisible characters can cause the same problem: non-breaking spaces and bidirectional direction marks look like nothing on screen but still count as differences. If a comparison flags text that looks identical, suspect substituted or invisible characters before suspecting a reworded sentence. Whether differences in formatting alone are reported may depend on your version, so test with a sample if that matters to you.
Which approach suits your intended result
Choose based on what you need: a reviewable formatted document, a quick check of wording, or a record of who changed what. The table compares common options against the same criteria. The rows for other products describe their general category. Check the exact behavior in each product's own documentation.
| Approach | What you see | What gets stored | Editing and reversibility | Best suited to |
| OpenOffice Compare Document | Insertions and deletions marked inline in Writer | Change records in the open document, kept when saved as ODF | Each change can be accepted or rejected; source files are untouched unless you save over them | Two versions of a formatted document where tracking was not used |
| Recording changes from the start (Edit > Changes > Record) | The same inline marks, captured as edits happen | Change records with author and date | Accept or reject individually, as above | Ongoing collaborative revision where you want authorship rather than a reconstruction |
| Compare in another word processor (for example LibreOffice Writer or Microsoft Word) | Inline or side-by-side marks, depending on the product | Change records in that product's document | Accept or reject within that product | Recipients who work in that software, or a second opinion on a confusing result |
| Plain-text diff tool | Changed lines or words in a terminal or viewer | Nothing written into the document; output is separate | Sources unchanged; formatting ignored | Checking wording only, version control, many files at once |
| Online comparison website | Highlighted differences in a browser | Depends on the service | Usually view-only output | Quick checks of text that is not sensitive |
Comparing after the fact and recording changes involve a real tradeoff. A comparison has to infer what happened, so it can show a moved paragraph or heavy rewording as a block deleted in one place and inserted in another. It cannot tell you who made an edit. Recording changes captures each edit as it is made and attributes it. That only helps if everyone turned it on before editing. Plain-text diffs are fast and predictable but discard formatting, so they cannot show a changed heading style or table layout.
Illustrative example with matched input
The rows below are illustrative. They were not produced by running the tools for this article. Both versions use the same input. Original: "The committee will review the draft on Friday." Revised: "The committee will review the revised draft on Monday."
| Approach | Likely presentation (illustrative, not observed) |
| Word-processor comparison | "revised" marked as an insertion; "Friday" marked as deleted and "Monday" as inserted. Depending on how finely the program splits changes, a larger span may be marked instead. |
| Line-based diff | The whole original line shown as removed and the whole revised line as added |
| Word-level diff | Only the changed words marked, e.g. [-Friday.-]{+Monday.+}, with punctuation attached because words are split on spaces |
To compare wording without formatting, you can export both versions to plain text and diff them. LibreOffice's command line can do the conversion as shown below. Apache OpenOffice's command-line options differ, so check its documentation, or use Save As with a plain-text format. The diff commands are standard on most Linux and macOS systems. The second one requires Git.
soffice --headless --convert-to txt:Text original.odt
soffice --headless --convert-to txt:Text revised.odt
diff -u original.txt revised.txt
git diff --no-index --word-diff original.txt revised.txt
Will the compared document stay readable and usable where you need it?
File format. Change records are part of the OpenDocument format, so they are kept when you save as .odt. Saving to a Word format generally carries tracked changes across, but conversion between formats is not guaranteed to be exact. Open the saved file in the recipient's software before sending it. Plain-text formats cannot hold change marks at all.
Copy and paste. When you copy a passage that contains tracked changes into another application, the source and destination determine what comes along. Deleted text may be included or dropped, and the marks themselves are usually lost. If the destination needs clean text, accept or reject the changes first and then copy. If it needs to show the revisions, paste a test passage and check it before relying on it.
PDF and print. Whether change marks appear in an exported PDF or printout depends on how changes are displayed at the time of export. Open the PDF and confirm it matches what you intended: a clean final text or a marked-up review copy.
Accessibility. Change marks rely mostly on color, underlining, strikethrough and margin bars. Readers who cannot distinguish the colors, or who use screen readers, may not receive them reliably. No assistive-technology testing was available for this guide, so do not assume the marks will be announced. A dependable alternative is to send a clean, accepted copy along with a short plain-text summary of the substantive changes.
Sensitive content. Writer is desktop software, and its comparison runs on your own computer. An online comparison site is different: pasting text into one sends that text to a third party, which may log or retain it. Do not paste contracts, personal data or confidential drafts into such services unless you have checked their retention policy. A local tool such as Writer or a command-line diff is safer.
Gaps in this guide
No tests were run for this article. No version-specific documentation, figures or screenshots were supplied. The menu paths reflect commands described in OpenOffice's help and may vary by release. The example outputs are illustrative. If a comparison will support a contract, legal review or publication decision, run it on a short sample first and confirm the marks match the edits you know were made.