Check a redaction in five minutes.
MaskPDF’s export drops the text you marked out of the file. Not covered by a black bar and left underneath, not in the text layer at all. This page is the test for that claim, and you run it: download a fixture, redact it, export it, and run one command.
Four files, and no install.
The script uses nothing but Node’s standard library, so there is no npm install and nothing to go stale. Keep the script and the manifest in the same folder.
- redaction-fixture.pdf — the file to redact.
- redaction-fixture.json — the manifest the script reads.
- verify-redaction.mjs — the script.
- reference-output.pdf — an export of the fixture, for comparison.
If your browser saved the script as a .txt file, rename it back to verify-redaction.mjs.
Four steps.
- 1
Download the fixture.
The fixture is a two-page PDF. The first page holds five invented values in the formats MaskPDF's auto-detect looks for, each on a line of its own. The second page holds one line of control text that has to survive. Every value in it is reserved for testing: 555-01xx is the fictional telephone range, 203.0.113.0/24 is the documentation range, example.test is a reserved domain, and 4111 1111 1111 1111 is the published test card number. None of it belongs to anyone.
- 2
Redact it.
Sign in to the app — a free account, no payment — and drop the fixture in, then press auto-detect and export. Auto-detect finds all five values on the first page. The second page has nothing in it the detector recognises, so it is left alone. Any other tool's redaction of the same fixture can be checked with the same script.
- 3
Run the check.
Download the script and the manifest, keep them in the same folder, and run the command. It prints a verdict and exits with 0 for a pass, 1 for a failure, and 2 for a file it could not read.
- 4
Read the result.
PASS means none of the five values is in the exported file, not as text and not as bytes. FAIL means one of them is still there, and the script says which. UNKNOWN means the script could not read the file, which is not a pass and should be treated as a failure to verify.
The command
node verify-redaction.mjs redacted.pdfWhat a pass looks like
MaskPDF redaction check: PASS
file: redacted.pdf
secrets checked: 5
control control-line: present
pages: 2
the file carries an image: yes
none of the marked values is in the fileThe values it looks for
412-88-7391— Social Security Number, on page 1.j.doe@northwind-example.test— Email, on page 1.415 555 0142— Telephone, on page 1.4111 1111 1111 1111— Payment card number, on page 1.203.0.113.42— Server address, on page 1.
What it checks, and what it does not.
It checks
- Reads the exported file's text layer and looks for the five values.
- Reads the exported file's raw bytes and looks for the five values.
- Reports whether the control line survived, so an empty file cannot pass quietly.
- Reports a verdict as JSON, for a CI job or a write-up.
It does not check
- It does not look at the pixels. Whether an opaque box fully covers a glyph is a question about the image, and the image depends on where you drew the box: a box that clips a character leaves the rest of that character readable. Open the exported file and look at the redacted lines, or run OCR over them, if you want to check that too.
- It does not say that any redaction is safe in every use. It says that if the text you marked is in the exported file, this finds it.
- It is not an audit, a review by a third party, or a certification. It is a test this site publishes about itself, and anyone can run it — including against another tool's output.
Check the checker.
A check that passes on everything tells you nothing. The script can be run against two files whose answers are already known: the unredacted fixture, which it must fail, and the reference export, which it must pass.
node verify-redaction.mjs --self-testThe machine-readable report, for a CI job or a write-up, is node verify-redaction.mjs --json redacted.pdf.
This is not an audit.
It is a test this site publishes about itself, and anyone can run it — including against another tool’s output, which is the point of publishing the fixture at all. A third-party review is a different thing, and the site does not claim to have one.
Who published this, and when.
Published by Roboverse Innovations Labs. This page was last reviewed on 18 November 2026. The script reads the exported file as bytes, with Node’s standard library, and does not use the site’s own engines — so its verdict does not depend on the PDF renderer being right. The engines that do the redaction are pdf.js 6.4.299 and pdf-lib 1.17.1.