Your files say more than you wrote.
Deleted text, comments, author names, hidden sheets, GPS positions. PrivacySchema finds them on your own device, removes what it can, then reads the file again to prove what's left.
$ privacyschema check report.docx
Data is still in this file. Do not share it yet.
still in file: Bank account number (IBAN) in report.docx (2)
still in file: Failed redaction in report.docx
still in file: 1 tracked change(s) with an author name
still in file: Hidden or failed-redaction content is still in the file
This check looks for known patterns and hidden content. It does not detect names or addresses in free text, so review the file before sharing it.
exit code 2$ privacyschema clean report.docx -o report-clean.docx
Nothing found, and every part of the file was read.
done: Cleared document properties: docProps/core.xml
done: Removed company and application fields from docProps/app.xml
done: Accepted 1 tracked change(s) and removed deleted text in word/document.xml
This check looks for known patterns and hidden content. It does not detect names or addresses in free text, so review the file before sharing it.
Cleaned copy: report-clean.docx
exit code 0Real output, unedited. The file is a Word test document from our public corpus with a bank account number left in a tracked deletion. It's renamed report.docx here.
It won't call a file clean when it isn't
A black box drawn over a bank number in a PDF hides it on screen. The number is still in the file, and anyone can copy it out. PrivacySchema can't remove this one yet, so it tells you, and returns exit code 2 so a script can stop the send.
$ privacyschema clean letter.pdf -o letter-clean.pdf
Data is still in this file. Do not share it yet.
still in file: Bank account number (IBAN) in letter.pdf (2)
still in file: Failed redaction in letter.pdf
still in file: Hidden or failed-redaction content is still in the file
This check looks for known patterns and hidden content. It does not detect names or addresses in free text, so review the file before sharing it.
Cleaned copy: letter-clean.pdf
exit code 2
Across 140 test files it has never once said "clean" with data still inside.
How it decides
- Read every part of the file. Document text, properties, comments, tracked changes, hidden sheets, attachments, image data.
- Remove what it can, on a copy. Your original file is never changed.
- Read the copy again from scratch. The check runs on the new file's bytes, not on what the cleaner meant to do.
- Give a verdict. Anything it couldn't read counts against the file.
| Verdict | What it means | Exit code |
|---|---|---|
| Clean | Nothing found, and every part of the file was read. | 0 |
| Clean with limits | Nothing found, but some parts couldn't be read. They're listed. | 1 |
| Not clean | Known data or hidden content is still in the file. | 2 |
| Not checked | The file couldn't be read, so nothing is confirmed. | 3 |
No verdict means "safe to share". It looks for known patterns and hidden content. It doesn't yet find names or addresses in ordinary text, or read text inside pictures. Always look at a file before you send it.
What it finds
44 of the 70 kinds of hidden data we test are removed today. The rest are found and reported, so you know before you send.
Word32 of 48 test files fully cleaned
| Hidden item | Today |
|---|---|
| Author name | Removed |
| Comment text | Removed |
| Company name in the file's properties | Removed |
| Custom XML data | Found, not removed yet. Reported. |
| Custom properties | Removed |
| Deleted text kept as a tracked change | Removed |
| Deleted text tracked in headers | Removed |
| Document variables | Found, not removed yet. Reported. |
| Embedded objects | Found, not removed yet. Reported. |
| Formatting changes with names | Removed |
| Hidden text in footnotes | Removed |
| Insertions with the editor's name | Removed |
| List of reviewers | Found, not removed yet. Reported. |
| Manager field | Removed |
| Name of the last person to save it | Removed |
| Names of people who commented | Removed |
| Path to the template on someone's computer | Found, not removed yet. Reported. |
| Photo data inside embedded pictures | In a part it can't read yet. Reported as unchecked. |
| Saved preview image | Found, not removed yet. Reported. |
| Text formatted as hidden | Removed |
| Text hidden under black highlighting | Removed |
| Text hidden under black shading | Removed |
| Title property | Removed |
| White text on a white page | Found, not removed yet. Reported. |
Excel10 of 26 test files fully cleaned
| Hidden item | Today |
|---|---|
| Author name | Removed |
| Cell comments | Removed |
| Company name in the file's properties | Removed |
| Custom properties | Removed |
| Data cached for pivot tables | Found, not removed yet. Reported. |
| Deleted cell text still stored | Found, not removed yet. Reported. |
| Hidden columns | Found, not removed yet. Reported. |
| Hidden sheets | Found, not removed yet. Reported. |
| Links to other workbooks | Found, not removed yet. Reported. |
| Named ranges | Found, not removed yet. Reported. |
| Names of hidden sheets | Found, not removed yet. Reported. |
| Names of people who commented | Removed |
| Sheets hidden from the Unhide menu | Found, not removed yet. Reported. |
PowerPoint4 of 12 test files fully cleaned
| Hidden item | Today |
|---|---|
| Author name | Removed |
| Company name in the file's properties | Removed |
| Embedded objects | Found, not removed yet. Reported. |
| Hidden slides | Found, not removed yet. Reported. |
| Slide comments | Found, not removed yet. Reported. |
| Speaker notes | Found, not removed yet. Reported. |
PDF18 of 30 test files fully cleaned
| Hidden item | Today |
|---|---|
| Annotation authors | Found, not removed yet. Reported. |
| Annotation text | Found, not removed yet. Reported. |
| Attached files | Found, not removed yet. Reported. |
| Author in document info | Removed |
| Compressed XMP metadata | Removed |
| Custom document info | Removed |
| Earlier saved versions | Removed |
| Editing-app data on pages | Found, not removed yet. Reported. |
| Filled-in form values | Found, not removed yet. Reported. |
| Info values after escaped characters | Removed |
| Info values in UTF-16 | Removed |
| Info values stored as hex | Removed |
| Text under a black box | Found, not removed yet. Reported. |
| Title in document info | Removed |
| XMP metadata | Removed |
JPEG photos12 of 12 test files fully cleaned
| Hidden item | Today |
|---|---|
| Data hidden after the end of the image | Removed |
| Embedded comment | Removed |
| GPS location | Removed |
| Image description | Removed |
| Photographer name | Removed |
| XMP metadata | Removed |
PNG images8 of 8 test files fully cleaned
| Hidden item | Today |
|---|---|
| Compressed text chunks | Removed |
| EXIF data | Removed |
| International text chunks | Removed |
| Text chunks | Removed |
WebP images4 of 4 test files fully cleaned
| Hidden item | Today |
|---|---|
| EXIF data | Removed |
| XMP metadata | Removed |
Results
Measured on 140 test files, each hiding one item, plus 11 control files that hide nothing.
- Said "clean" with data still inside
- 0
- Hidden item removed
- 88
- Left in, and reported as not clean
- 42
- Left in a part it reported as unreadable
- 10
- False alarms on control files
- 0
- Files damaged by cleaning
- 0
Full method and the leaderboard are on DSAR Benchmarks.
Use it
PrivacySchema is in early development. It's a Python command-line tool, tested on Windows today. Tests for macOS and Linux are set up and start running when the source code is published on GitHub under the Apache-2.0 licence.
Want to try it before then, or have a subject access request to get through? Email webcomplianceuk@gmail.com.