Skip to main content

20% off your first payment with code See plans

Back to blog
Public sector By Anonimatum Team 6 min

Anonymize a ZIP file or a whole folder of case files without losing its structure

Illustration: a compressed folder containing other compressed folders opens into a folder tree with redacted, checked documents
Illustration: Anonimatum

Case files rarely arrive one by one. They come in a ZIP file sent by another department, in a folder with subfolders by year or by person, or in a ZIP that contains other ZIPs. Until now, anonymizing them meant unzipping, browsing folders, processing documents one at a time and rebuilding the structure. Since version 1.10.0, Anonimatum's batch anonymization accepts folders and ZIP files as they arrive and returns the result with the same folders.

What happens to the folder or ZIP when you upload it

  • Folder: its subfolders are included and each document's path is kept.
  • ZIP: it is opened in your browser, including ZIPs inside another ZIP (up to 5 levels). Each ZIP opens in a folder with its name: documents from `expedientes.zip` appear as `expedientes/…`.
  • Hidden files and `__MACOSX` folders inside ZIP files are ignored.
  • Duplicates: if the same file appears twice, even under another name, it is only added once.
  • Formats: PDF, Word, Excel, PowerPoint, OpenDocument, TXT and images, up to 500 documents per batch and 250 MB per file.

What does not get in, and why

Nothing is lost silently. Anything that cannot be added appears under Discarded with its path and reason, so you know exactly what to handle by hand:

Most common reasons for discarding
ReasonWhat it means
Unsupported formatThe file type cannot be anonymized (for example, an executable)
Too largeOver 250 MB per file
Damaged or protected ZIPThe ZIP cannot be opened, for example because it has a password
Too many nested ZIPsMore than 5 levels of ZIPs inside ZIPs
Unzipped content too largeThe unzipped content exceeds 1 GB
Invalid path inside the ZIPThe ZIP contains dangerous paths, such as `../`
Batch document limit reachedThe batch already has 500 documents

One configuration for the whole case file

Once uploaded, you configure once what to look for (template, AI, OCR, patterns, word sets, whitelist, zone patterns and redaction) and preview everything in the background, without using quota. If the case file mixes scans and digital documents, turn on OCR: it applies to all of them. You can review in the workspace only the documents you are unsure about and move between them with Save and next.

What you get when you download

  • A ZIP with the same folder structure you uploaded, for example `expedientes/resoluciones/r1_anonimizado.pdf`.
  • An `indice.csv` index that contains no file names, paths or personal data: only number, format, status, pages, detections, whether it was reviewed and the result's fingerprint. It works as a record of what was processed without exposing data again.
  • Format: PDFs, images and converted documents come out as PDF; Office files without AI or zone patterns keep their format, and with AI or zone patterns they come out as PDF.

Watch out for folder and file names: the structure is kept as it is, so if a folder is named after a person, that name will still be in the ZIP. Rename them before uploading if the result will be published or shared. The index, however, never includes them.

When to use a batch and when a case file

A batch is temporary and personal: only its creator can see it, its documents are stored encrypted and it expires after 30 days without activity. It is ideal for processing and downloading. If you need to keep a case's documents with their version history or share them with your group, use Anonimatum's case files.

Before uploading a ZIP or a folder

  • Unzip password-protected ZIP files.
  • Rename folders and files that contain names or other personal data.
  • Turn on OCR if there are scanned documents.
  • Check the Discarded list and handle those files separately.
  • .eml and .msg emails cannot be anonymized in a batch yet: process them from the workspace or the queue.
  • Check the index before delivering the ZIP.

The full step-by-step guide is in how to anonymize hundreds of documents at once, and every change is in the 1.10.0 release notes. For administrative case files in general, see the case files use case.

Frequently asked questions

Are ZIP files unzipped on the server?

No: ZIP files are opened in your browser and the documents inside are uploaded with their paths. They are then stored encrypted while the batch exists.

How many levels of nested ZIPs are supported?

Up to 5 levels. Beyond that, the ZIP appears under Discarded with the reason «too many nested ZIPs».

Does the index include document names?

No. The indice.csv contains no file names, paths or personal data: only number, format, status, pages, detections, whether it was reviewed and the result's fingerprint.

What about emails inside the ZIP?

They can be uploaded but cannot be anonymized in a batch yet. Anonymize them from the workspace or the document queue.

Sources and legislation

  1. Anonimatum: 1.10.0 release notes
  2. ICO: Anonymisation guidance
  3. Regulation (EU) 2016/679 (GDPR), Recital 26 (EUR-Lex)