Formats

Anonymize text file contents, line by line

Plain text is the simplest format and still full of personal data. When you anonymize text file contents, Diskretio replaces names, email and IP addresses with placeholders, while line breaks, indentation and timestamps stay exactly as they were.

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

Typical text files with personal data

  • Server and application logs with IP addresses, usernames and emails
  • Chat exports from messengers or support tools
  • Interview and conversation transcripts
  • Notes and minutes from text editors
  • Exports from legacy systems that only output text

How it works

  1. 1

    Upload or paste

    Upload a TXT file, paste text directly or send it via the REST API.

  2. 2

    Pick categories

    For example IP addresses and emails for logs, names and phone numbers for transcripts.

  3. 3

    Same format back

    You get a UTF-8 text file again, with only the values replaced.

Log files: IP addresses and user IDs

Logs are shared for debugging, security analysis or vendor support and almost always contain IP addresses, which the CJEU has held can be personal data. Diskretio replaces IP addresses, emails, URLs and names with placeholders. The same IP address becomes the same placeholder throughout the file, so you can still follow a session.

Timestamps stay by default because ordinary dates are not replaced. Paths, status codes and error messages stay unchanged too.

Transcripts and chat exports

In transcripts, names often appear as speaker labels at the start of a line and again in the conversation. Diskretio replaces both consistently: “Anna:” and “as Anna said” both become [PERSON_1]. You can still tell who said what.

FAQ

Questions. Answered briefly.

Try it with your own document

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