Maskera vs Microsoft Presidio for Swedish PII

Across 23,980 zero-overlap Swedish texts, Maskera hides 97.0% of names and 95.2% of street addresses (68 MB), versus 72.3% of names and 47.0% of addresses for Microsoft Presidio (245 MB). Presidio has lower over-masking (2.5% vs 4.4%) and broader multi-language Python support.

Measured on zero-overlap Swedish text

Both systems ran on CPU across SUC 3.0 test, SIC2 Swedish blogs, MultiCoNER v2 Swedish persons, and ai4privacy Swedish rows (23,980 texts never seen in Maskera training). Presidio ran at version 2.2.366 with spaCy sv_core_news_lg.

Comparison of Maskera and Microsoft Presidio on independent Swedish corpora
ToolSizeNamesLowercase namesPlacesAddressesHit in a sentence without personal data
Maskera v2468 MB97.0%92.8%97.3%95.2%4.4%
Microsoft Presidio245 MB72.3%71.4%97.1%47.0%2.5%

Presidio's spaCy model is trained on SUC 3.0. Personnummer, organisationsnummer, bankgiro, and IBAN have no independent Swedish corpus and are handled by checksum-validated rules in both tools.

Architecture and day-to-day fit

Technical comparison between Maskera and Microsoft Presidio
AreaMaskeraMicrosoft Presidio
Language focusSwedish-first (and mixed Swedish/English), trained for Swedish inflections and lowercase chatMulti-language framework (20+ languages via spaCy or Transformers)
Runtime and sizeTypeScript/Node.js and browser (WebGPU/WASM), 68 MB q4 ONNX modelPython service/library, 245 MB for sv_core_news_lg
Ready-to-use toolsBrowser extension (Chrome/Edge), local MCP server/proxy (@maskera/mcp), and npm SDKPython SDK and Docker services (no built-in browser extension or MCP server)
LicenseMIT (core, NER model, SDK, and @maskera/mcp)MIT

When to choose each tool

Choose Maskera when

  • Your text is Swedish and includes street addresses, lowercase chat names, or Swedish formats like bankgiro and apartment numbers.
  • Redaction needs to run directly in the browser, inside a Node/TypeScript app, or in front of coding agents like Claude Code and Codex via @maskera/mcp.
  • Non-technical staff need a ready Chrome/Edge extension with local PDF, Word, and Excel redaction and no servers to operate.

Choose Microsoft Presidio when

  • You need PII detection across many languages beyond Swedish and English in a single pipeline.
  • Your backend is already Python and you want a server-side microservice with the lowest possible over-masking (2.5%).
  • You are building image and OCR redaction workflows on top of presidio-image-redactor.

Code comparison

TypeScript (maskera)
import { createNerRecognizer, redactWithNer } from "maskera"const recognizer = createNerRecognizer()const { text, restore } = await redactWithNer(  "hej jag heter provnamn maskera, personnummer 19900101-2385, och bor i provbyn",  { recognizer },)
Python (Microsoft Presidio)
from presidio_analyzer import AnalyzerEnginefrom presidio_anonymizer import AnonymizerEngineanalyzer = AnalyzerEngine()anonymizer = AnonymizerEngine()results = analyzer.analyze(text=sample, language="sv")anonymized = anonymizer.anonymize(text=sample, analyzer_results=results)

Details and measurements verified as of 2026-12-01 against Maskera v24 and Microsoft Presidio 2.2.366.