Redacting Legal Documents: Court Filings, Discovery, and Contracts

Extract text from images and redact sensitive regions locally. Tesseract WASM runs in your browser — no uploads, no server, no account needed.

ZERO UPLOAD · ALL LOCAL
  1. Drop a JPEG, PNG, or WebP image onto the drop zone — OCR starts automatically.
  2. Wait for text extraction to complete. The image appears on the left, extracted text on the right.
  3. Draw rectangles over sensitive regions on the canvas to redact them. Covered words become block characters in the text panel.
  4. Use Undo Last or Clear All to adjust redactions at any time.
  5. Export with Download PNG (redacted image), Download PDF, or Download Text.

What this page covers

  • Pricing terms covered by the protective order in the worked example
  • Proprietary formulas covered by the protective order in the worked example
  • Third-party vendor names covered by the protective order in the worked example
  • Account number leave only the last four digits visible, per FRCP 5.2

Zero upload guarantee

Your file never leaves this device. OCR runs locally via WebAssembly — no server, no account, no logs.

Drop an image here

or click to select · JPEG, PNG, WebP · max 20 MB

Initialising OCR engine…

Extracting text… 0%

SOURCE IMAGE

EXTRACTED TEXT

Redact Legal Documents: Protect Privileged Information in Court Filings

Court filings require complete redaction of personal identifiers. Federal Rules of Civil Procedure Rule 5.2 mandates redaction of Social Security numbers, taxpayer identification numbers, dates of birth, financial account numbers, and home addresses in documents filed electronically1. Improperly redacted documents filed publicly expose litigants to identity theft risk and can result in court sanctions.

Legal discovery responses often require redacting attorney-client privileged communications, work product, and confidential business information before producing documents to opposing counsel2. The OCR Redactor processes scanned documents with no upload, producing a raster image with no recoverable text layer, which satisfies the technical requirements for proper redaction in both contexts.

What must be redacted in court filings and discovery

FRCP Rule 5.2 specifies a short list of mandatory redactions for any document filed in federal court: Social Security numbers and taxpayer identification numbers (replace with last four digits only), financial account numbers (last four digits only), dates of birth (year only), names of minors (initials only), and home addresses (city and state only)1. State court rules vary but follow similar patterns.

Discovery redaction beyond Rule 5.2

For discovery productions, the scope extends to anything covered by the protective order, attorney-client privilege assertions, or work product doctrine2. Drawing rectangles over each identified field and exporting the raster result produces a document suitable for filing or production. CapyToolkit processes everything locally, so privileged content never leaves your device during the redaction workflow. Protective orders in commercial litigation often specify exact redaction categories, and failing to cover every listed category can result in a motion to compel or sanctions.

Why raster redaction is more reliable than PDF redaction

Legal discovery has produced multiple examples of opposing counsel recovering text from improperly redacted PDFs by simply pasting the document contents into a text editor. The copied text includes all text layers, even those underneath visible black boxes. Building on this, some early e-filing systems stripped PDF security settings on upload, exposing previously hidden content. A raster image contains no text layer to strip or recover. Selecting text in an exported PNG produces no selection because there is no text to select. Consequently, raster redaction eliminates the technical vulnerability regardless of what software processes the file downstream. The recipient cannot extract what does not exist in the file structure, which makes the raster approach the most defensible method for court filings and discovery productions alike.

Workflow for legal document redaction

Scan the document at 300 DPI and drop the JPEG onto the OCR Redactor drop zone. Tesseract extracts text and identifies word bounding boxes. Draw rectangles over every field requiring redaction according to the applicable rule or protective order. Review the text panel to confirm covered fields are replaced with block characters. Export the PNG for digital filing. For paper filing, print the redacted PNG directly. For multi-page documents, redact each page individually and combine the exported PNGs into a single PDF using any local PDF tool. Furthermore, retain the original unredacted scan separately in a secure location for your own records, as courts and clients may require access to the unredacted version under seal.

State court redaction rules and e-filing system requirements

State courts have adopted redaction requirements that parallel FRCP Rule 5.2 but vary in scope and enforcement mechanism. California Rule of Court 1.201 requires redaction of Social Security numbers, financial account numbers, and in juvenile and family law matters, the names of minors3. New York Uniform Rule 202.5(e) requires redaction of the same FRCP-listed identifiers in all civil filings. Texas Rule of Civil Procedure 21c requires redaction of Social Security numbers, driver's license numbers, financial account numbers, and dates of birth. Each state specifies whether the redaction requirement is self-enforcing or subject to clerk review before docketing.

Electronic filing systems at the state level enforce redaction requirements through varying mechanisms. Some systems perform automated scanning for common identifier patterns (nine-digit numbers formatted as SSNs, sixteen-digit numbers formatted as card numbers) and flag potential violations before accepting the filing. Others rely entirely on the filing party's certification. For documents filed in multiple jurisdictions, apply the most restrictive redaction standard among all applicable rules, then verify the specific requirements of each court's local rules before filing.

Preparing a privilege log for redacted discovery productions

A privilege log accompanies any redacted discovery response and identifies each withheld or redacted item without revealing the protected content. Each log entry typically includes: the document date, author, recipient, document type, general subject matter, and the privilege or protection asserted. For redactions within produced documents rather than full withholdings, some courts require a redaction log that notes which specific sections were redacted and the basis for each. The OCR Redactor does not generate these logs automatically. Maintain a spreadsheet with one row per redaction session, noting the source document identifier, the fields redacted, and the applicable privilege or rule number supporting each redaction.

Keeping the log next to the redacted export makes the production defensible if challenged. CapyToolkit's OCR Redactor handles only the visual redaction step, so the responsibility for documenting each withheld item stays with the filing party. A dated spreadsheet row per redaction session also helps you confirm that every field listed on the log actually received a rectangle in the image, closing the gap between what the log claims and what the exported PNG shows.

Verifying redaction completeness before filing or production

Completeness verification before filing prevents the most consequential category of redaction error. After exporting the redacted PNG from the OCR Redactor, open the file in an image viewer and zoom in on every region you intended to redact. Confirm that the black rectangles completely cover the target text, with no character visible at the edges of the rectangle. Pay particular attention to the last digit or letter of account numbers, Social Security numbers, and dates, where a tight rectangle can leave a trailing character exposed.

For text export verification, download the text file alongside the PNG. Search the text file for the identifier strings you redacted: SSN patterns, account number formats, dates, and names. If any appears in the text file, the corresponding rectangle did not fully overlap the word's bounding box. Expand the rectangle on the image and re-export before filing. For multi-page documents processed one page at a time, run this verification on every page before combining exports into a single production PDF.

Filing redacted documents through e-filing systems

Federal e-filing systems (CM/ECF) and most state e-filing portals accept PDF and image formats. Upload the exported PNG or combine multiple page PNGs into a single PDF using any local PDF tool before uploading. Do not upload the original unredacted scan alongside the redacted version unless the court specifically requires the unredacted version under seal through a separate restricted submission process. For restricted submissions, use the court's sealed filing procedure to prevent the unredacted version from appearing on the public docket. Confirm the docket entry after filing to verify that the public-facing document displays the redacted version and that no unredacted copy appears in the accessible record.

When to use this

Use this tool when preparing court filings that must comply with FRCP Rule 5.2 or equivalent state rules, when responding to discovery requests with privilege assertions, or when sharing contracts and agreements with redacted confidential terms; the text-free court filing redaction removes the recoverable text layer before you file.

Examples

Redacting a contract for production in litigation

Draw rectangles over pricing terms, proprietary formulas, and third-party vendor names covered by the protective order. Export the PNG. Log the redacted fields on a privilege log entry describing the basis for each redaction.

Redacting a bank statement for a court filing

Under FRCP 5.2, show only the last four digits of the account number. Draw a rectangle over all but the last four digits. Export the PNG and file it with the court in place of the full statement.

Sources
  1. 1.

    Cornell Law School, "Federal Rules of Civil Procedure Rule 5.2," law.cornell.edu, accessed June 2026. https://www.law.cornell.edu/rules/frcp/rule_5.2

  2. 2.

    ABA, "Accidental Misuse of Privileged Metadata Results in Sanctions," americanbar.org, accessed June 2026. https://www.americanbar.org/groups/litigation/resources/litigation-news/2023/accidental-misuse-privileged-metadata-results-sanctions/

  3. 3.

    Judicial Branch of California, "Rule 1.201 – Protection of Privacy," courts.ca.gov, accessed June 2026. https://courts.ca.gov/cms/rules/index/one/rule1_201

FAQ