# Maskera vs Microsoft Presidio for Swedish PII

> Maskera vs Microsoft Presidio on Swedish text: 97.0% vs 72.3% names, 68 MB vs 245 MB, local ONNX vs Python, and where Presidio wins.
>
> Canonical: https://maskera.dev/en/vs-presidio (en) · sv: https://maskera.dev/jamfor/presidio · Markdown: https://maskera.dev/en/vs-presidio.md · Overview for agents: https://maskera.dev/llms.txt

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
| Tool | Size | Names | Lowercase names | Places | Addresses | Hit in a sentence without personal data |
| --- | --- | --- | --- | --- | --- | --- |
| Maskera v24 | 68 MB | 97.0% | 92.8% | 97.3% | 95.2% | 4.4% |
| Microsoft Presidio | 245 MB | 72.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
| Area | Maskera | Microsoft Presidio |
| --- | --- | --- |
| Language focus | Swedish-first (and mixed Swedish/English), trained for Swedish inflections and lowercase chat | Multi-language framework (20+ languages via spaCy or Transformers) |
| Runtime and size | TypeScript/Node.js and browser (WebGPU/WASM), 68 MB q4 ONNX model | Python service/library, 245 MB for sv\_core\_news\_lg |
| Ready-to-use tools | Browser extension (Chrome/Edge), local MCP server/proxy (@maskera/mcp), and npm SDK | Python SDK and Docker services (no built-in browser extension or MCP server) |
| License | MIT (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 AnalyzerEngine
from presidio_anonymizer import AnonymizerEngine

analyzer = 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.

- [Try the browser demo](https://maskera.dev/en#testa)
- [Accuracy](https://maskera.dev/en/accuracy)
- [SDK & operations](https://maskera.dev/en/docs/sdk)
- [Products](https://maskera.dev/en/services)
- [Maskera vs Avidentifiera.se](https://maskera.dev/en/vs-avidentifiera)
- [Guide: AI and GDPR](https://maskera.dev/en/guides/chatgpt-gdpr)
- [Raw benchmark JSON on GitHub](https://github.com/joelhagvall/maskera/blob/main/docs/benchmark-independent-v24.json)

Product

- [Products](https://maskera.dev/en/services)
- [Documentation](https://maskera.dev/en/docs)
- [Industries](https://maskera.dev/en/industries)
- [Accuracy](https://maskera.dev/en/accuracy)
- [Customer portal](https://app.maskera.dev/en/login?utm_source=maskera_dev&utm_medium=referral&utm_content=footer_portal)

Trust

- [Security](https://maskera.dev/en/security)
- [Privacy & transparency](https://maskera.dev/en/privacy)
- [FAQ](https://maskera.dev/en/faq)
- [Privacy policy](https://maskera.dev/en/privacy-policy)
- [Test data](https://maskera.dev/en/test-data)

Project

- [Open source](https://github.com/joelhagvall/maskera)
- [Custom-trained Swedish AI model](https://huggingface.co/joelhagvall/maskera-sv-ner)
- [White paper (PDF)](https://maskera.dev/whitepaper.pdf)
- [About & contact](https://maskera.dev/en/about)

A product of [Hägvall Labs AB](https://hagvall-labs.com).
