Amazon Web ServicesComparisons

AWS Comprehend PII alternative

Looking for an AWS Comprehend PII alternative? Per AWS, Amazon Comprehend detects PII only in English and Spanish text. Diskretio handles German and English – in whole documents.

anonymize.shresponse.json

# Anonymize a file, report as JSON

$ curl -X POST "$API/v1/files?response=json" \

-H "x-api-key: $ANON_KEY" \

-F "file=@Employment_Contract_Smith.pdf" \

-F 'options={"strategy":"placeholder","language":"en"}'

HTTP/1.1 200 OK · x-pages-charged: 3 · x-pages-remaining: 1757

{

"filename": "anonymized.pdf",

"pages": 3,

"report": {

"counts": {

"PERSON": 6,

"ORG": 2,

"ADDRESS": 3,

"IBAN": 1,

"TAX_ID": 1,

"NATIONAL_ID": 1,

"EMAIL": 1

},

"entities": [{ "id": "PERSON_1", "label": "PERSON", "occurrences": 4 }, …],

"warnings": []

},

"content_base64": "JVBERi0xLjcKJeLjz9MKMSAwIG9iago8PC9UeXBl…"

}

# page 1 of the output

Between [ORG_1] and [PERSON_1], [ADDRESS_1] …

Your formats and the AI tools you work with afterwards

  • Word
  • Excel
  • PowerPoint
  • Outlook (emails)
  • PDF
  • Scans & photos
  • TXT Text & CSV
  • ChatGPT
  • Claude
  • Microsoft Copilot
  • Gemini
  • Mistral
  • DeepL
  • Perplexity

What to check with Amazon Comprehend PII

  • Document language – per AWS only English and Spanish are supported
  • Input as UTF-8 text, up to 100 KB for real-time calls
  • Country-specific types exist for the US, UK, Canada and India
  • For redaction: async jobs with S3 input/output and an IAM role
  • Billing in units of 100 characters

How it works

  1. 1

    API access from Pro

    Diskretio REST API – no AWS account, S3 or IAM roles.

  2. 2

    Send a document

    DOCX, XLSX, PPTX, PDF, images or text in German or English.

  3. 3

    Receive the result

    Anonymized file in its original format with placeholders, fake data or redaction.

Side-by-side comparison. Diskretio vs. Amazon Comprehend (PII)

Criterion DiskretioAmazon Web Services Amazon Comprehend (PII)
LanguagesGerman and EnglishEnglish and Spanish
German ID numbersTax ID, social security, ID card numbers and moreNone; country-specific only US, UK, Canada, India
InputDOCX, XLSX, PPTX, PDF, images, textUTF-8 text
OutputFile in original formatOffsets or masked text
InfrastructureNone, REST API from ProAWS account; S3 and IAM for jobs
BillingBy pages, from €24/monthPer 100 characters, free tier in the first year

Our verdict

Amazon Comprehend is the better choice for English or Spanish text pipelines already running in AWS at large volume. For German documents – with German names, addresses and ID numbers, as Word or PDF – Diskretio is the better fit.

How to redact PII with Amazon Comprehend

DetectPiiEntities returns entities with type and confidence for a text; ContainsPiiEntities returns only labels. Input is UTF-8 text up to 100 KB. For redaction, start an async StartPiiEntitiesDetectionJob with files in S3; masking uses a mask character or replacement with the entity type. Detected types include name, address, email, phone, IBAN, SWIFT code, date and IP address. Comprehend is available in European regions such as Frankfurt (eu-central-1).

Where Amazon Comprehend reaches its limits

PII detection supports only English and Spanish, per AWS. Country-specific IDs cover the US, UK, Canada and India, not Germany. Only plain text is documented; PDFs and Office files must be converted and rebuilt by you.

FAQ

Questions. Answered briefly.

Try it with your own document

10 pages per month are free. No subscription, no credit card.