How to Remove Metadata from LibreOffice Files
LibreOffice documents often store hidden metadata, including author names, editing time, revision history, operating system details, and printer information. Sanitizing this data is essential for preserving privacy and preventing sensitive information leaks before sharing files. This article outlines the primary methods to inspect, sanitize, and permanently remove personal metadata from LibreOffice files using built-in application settings, export options, and external utilities.
Method 1: Clear Document Properties Manually
You can directly view and remove metadata stored within an individual document’s properties.
- Open your document in LibreOffice.
- Go to File > Properties.
- Under the General tab, look for user-related data (such as author name, creation date, and total editing time).
- Click the Reset Properties button to clear the editing time and modification dates.
- Uncheck the Apply user data box to prevent LibreOffice from recording your name in future edits.
- Click the Custom Properties and Description tabs to manually delete any remaining titles, subjects, keywords, or custom fields.
- Click OK and save the document.
Method 2: Enable Automatic Metadata Removal on Save
LibreOffice includes a built-in security feature that strips personal metadata automatically whenever a document is saved.
- Navigate to Tools > Options (on macOS: LibreOffice > Preferences).
- Expand the LibreOffice section on the left and select Security.
- Under Security options and warnings, click the Options… button.
- Check the box labeled Remove personal information on saving.
- (Optional) Check Warn if document contains recorded changes, versions, or hidden information to receive alerts before sharing.
- Click OK, then Apply.
Once configured, LibreOffice will strip author names, timestamps, and version histories each time you save.
Method 3: Remove User Data from LibreOffice Preferences
If you do not want your personal details associated with any newly created documents, you can remove your global user profile data.
- Go to Tools > Options > LibreOffice > User Data.
- Clear the fields for First/Last name, Initials, Company, and other identifying details.
- Click Apply and OK.
New documents will no longer automatically inherit personal profile data.
Method 4: Sanitize Tracked Changes and Comments
Metadata often hides within version histories, comments, and tracked changes.
- Accept or Reject Changes: Go to Edit > Track Changes > Manage… to accept or reject all tracked edits, ensuring deleted text and editor names are fully erased.
- Delete Comments: Right-click individual comments to delete them, or navigate to View > Comments to review and purge all annotations before distribution.
Method 5: Export as a Sanitized PDF
If the recipient only needs to read the file, exporting to PDF allows you to strip document information during export.
- Go to File > Export As > Export as PDF….
- Under the General tab, uncheck Export document properties and Export bookmarks.
- Click Export to generate a clean PDF file without ODF-specific metadata tags.
Method 6: Use External Metadata Removal Tools
For high-security workflows or batch operations, external tools offer comprehensive sanitization.
- MAT2 (Metadata Anonymisation Toolkit): A
command-line tool capable of cleaning
.odt,.ods, and.odpfiles by stripping all metadata tags. - Manual XML Editing: Because LibreOffice formats
(such as
.odt) are standard ZIP archives, you can rename the file extension to.zip, extract the archive, and delete or edit themeta.xmlfile directly before repackaging it.