Data privacy · local cleanup

CSV & JSON PII Cleaner

Preview CSV, JSON, and NDJSON files in your browser, detect common sensitive patterns, then mask, hash, remove, or export cleaned data before sharing it with teams, forms, dashboards, or AI tools.

Drop a CSV, JSON, or NDJSON file

Use this for research data, analytics exports, contact lists, logs, and spreadsheet-like datasets. The file is read in this browser tab.

This tool detects common patterns only. It is not a legal, compliance, or forensic guarantee. Always review the preview and cleaned output before sharing sensitive data.

File summary

Rows0
Columns0
PII hits0
No upload requiredCSV / JSON / NDJSONReport export
StatusReady
Selected fileNone
Output—

Detected columns

Review detected patterns and choose an action per column. The default action is applied when a column contains sensitive-looking values.

ColumnDetected patternsHitsSampleAction
Analyze a file to see column findings.

Original preview

No preview yet.

Cleaned preview

Cleaned preview appears after export.

How to use this tool

  1. Drop a CSV, JSON array, object, or NDJSON file.
  2. Analyze the file to preview columns and sensitive-looking patterns.
  3. Choose mask, hash, remove, keep, or drop-column actions.
  4. Export the cleaned file and optional audit report.

Common use cases

Use this before sharing analytics exports, research datasets, CRM samples, spreadsheet extracts, log files, or AI prompt datasets. It is designed for practical cleanup before upload, review, or collaboration.

Privacy and limits

The selected file is processed in the current browser session. Large files can use significant memory, and browser performance varies. Pattern detection can miss unusual formats or flag false positives, so human review still matters.

FAQ

Does this upload my CSV or JSON file?

No server upload is required by this tool. It reads the selected file in the browser tab and creates downloadable outputs locally where supported.

What patterns can it detect?

The MVP checks common email, phone, URL, IPv4, card-like number, national ID-like, and token-like values. You should still review the output for context-specific sensitive data.

Is hashing reversible?

No. The built-in hash action creates a stable browser-side SHA-256 based label for matching repeated values, but it is not a substitute for a full data governance process.

Can it handle huge files?

This MVP is designed for practical browser cleanup and previews. Very large files depend on available memory and browser limits. A future worker/streaming lab mode can extend large-file handling.

How to use the CSV & JSON PII Cleaner

  1. Drop a CSV, JSON or NDJSON/JSONL file onto the drop area. Input type and CSV delimiter are auto-detected unless you set them.
  2. Pick the default cleaning action (Partial mask, Full mask, Stable hash or Remove value) and click "Analyze file".
  3. In Detected columns, review the patterns and samples, and change the action per column, including Keep or Drop column.
  4. Click "Clean & export", compare the original and cleaned previews, then download the cleaned file and, if ticked, the JSON audit report.

What it's useful for

  • Masking emails and phone numbers in a CRM export before sharing a sample with an agency.
  • Hashing user IDs in an analytics export so rows can still be joined without showing the raw value.

Good to know

  • Detectors cover email, URL, IPv4, phone-like numbers, card-like numbers that pass a Luhn check, 6+7 digit ID numbers and token-like strings starting with sk, pk, key, token or secret.
  • Detection scans the first 50,000 rows; the chosen actions are applied to every row when you export.
  • CSV stays CSV with the same delimiter. JSON and NDJSON are exported as a JSON array, with nested objects flattened into dot-separated keys.
  • The file is read and cleaned in your browser tab and is not uploaded.

FAQ

Is a stable hash safe to share?

It hides the raw value and keeps identical inputs matching, using the first 16 hex characters of SHA-256. It is unsalted, though, so short guessable values like phone numbers could be matched by someone hashing candidates.

What does partial masking look like?

Emails keep the first two letters and the domain, for example "jo***@example.com". Longer values keep the first three and last two characters.

Why was a column not flagged?

Only the listed patterns are detected. Names, street addresses and free-text notes are not recognised, so set those columns manually.