Redact Personal Data API

Remove names, addresses, phone numbers, bank details and other personal data from PDF and text files with a single API call.

Everything you need to redact documents

Find and remove personal data from PDF, TXT and Markdown files before you share them.

Finds Personal Data on Its Own

An AI model detects names, contact data, dates of birth, ID and tax numbers, bank and card data, credentials and IP addresses. Like every AI model it can miss something: check the result where it matters.

Removed, Not Just Covered

In PDFs the text is removed from the document itself and a black box marks its place. Form fields, annotations, comments, bookmarks and links are checked too, and the metadata is removed.

Presets and Entity Types

Use the standard or strict preset, limit the redaction to one group such as contact or financial, or list the entity types yourself. See the full API reference.

Scanned Documents

With the ocr option, scanned pages are run through OCR first, within the same job. The recognized text is then redacted together with the scan under it.

PDF, TXT and Markdown

The output has the format of the input. In text files, personal data is replaced by its type, such as [EMAIL], masked or removed without a trace.

Seven Languages

The model knows English, German, French, Spanish, Italian, Portuguese and Dutch.

Built for Compliance

Meet your privacy obligations by redacting files before they leave your organization: before you send them to customers, partners or authorities, publish them, or pass them to an LLM, for example as Markdown. This supports data minimization under the GDPR and similar regulations.

Custom Workflows

Use Jobs to chain multiple operations in a single API call — convert to multiple formats, add watermarks, and generate thumbnails all at once.

Redact a document with a single API call

Send a file, choose a preset, and get the redacted file back. The sample PDF was redacted with the default settings: drag the divider to compare.

Raw Request
POST https://sync.api.cloudconvert.com/v2/jobs

{
  "tasks": {
    "import-my-file": {
      "operation": "import/url",
      "url": "https://my.url/contract.pdf"
    },
    "redact-my-file": {
      "operation": "ai/redact",
      "input": "import-my-file",
      "preset": "standard"
    },
    "export-my-file": {
      "operation": "export/url",
      "input": "redact-my-file"
    }
  },
  "redirect": true
}
The same document after the redaction: black boxes in place of the personal dataSample insurance claim summary with the name, date of birth, address, email, phone number and IBAN of the policyholderOriginalRedacted

Use the Job Builder to generate ready-to-use requests and code snippets.

Job BuilderAPI Documentation
On-Demand, Transparent Pricing

Starting at $0.008 per file

When Converting
10,000
Files

Calculating price... Checkout the full pricing information.