AI Privacy Sanitizer Online
Detect and redact credentials, personal data, network identifiers, SQL values and database identifiers before sharing text with an AI service.
Open AI Privacy SanitizerFree · No sign-up · Browser-based processing
What AI Privacy Sanitizer does
Prepare logs, SQL statements, source snippets, configuration and support messages for an AI assistant without manually hunting for every obvious credential or personal identifier. The scanner runs in a local browser worker and treats credentials generically: it recognizes passwords embedded in database, cache, message-queue and service URLs, ODBC-style key/value connection strings, JSON, YAML, environment variables, command lines, HTTP and Cookie headers, query parameters, private keys and common provider-token formats. SQL-aware scanning maps sensitive INSERT columns and UPDATE, WHERE or JOIN comparisons to their literal values. By default it also replaces schema and table names with stable sql_table_N identifiers and field names with stable sql_field_N identifiers while preserving statement structure, quoting, aliases, keywords, functions and parameter placeholders. Set sqlIdentifiers to false to retain database identifiers. Global personal-data and network rules run alongside supplemental national-identifier checks. Overlapping matches are resolved and repeated values are replaced consistently. Automated detection can miss unusual secrets or flag harmless examples, so review the result before sharing it.
Common uses
- Clean logs before asking an AI assistant for debugging help
- Sanitize INSERT, UPDATE and query statements before AI-assisted review
- Redact configuration snippets before sharing them in a support conversation
- Create consistent placeholders while preserving repeated references
How to use AI Privacy Sanitizer
- Paste text, SQL statements or choose a local text file containing the material you want to review.
- Choose placeholder, mask or remove mode and optionally limit scanning to credentials, personal data or network identifiers.
- Run the sanitizer, review the detection summary, then copy or download only the sanitized text.
Privacy: Runs locally in your browser. Input is not uploaded to the DevNet Kit server.
AI Privacy Sanitizer example
Try the tool with this representative input:
DATABASE_URL=mysql://admin:super-secret@10.0.0.8:3306/app
INSERT INTO private_schema.users (email, password_hash, client_ip, display_name) VALUES ('ada@example.com', 'argon-secret-value', '10.0.0.8', 'Ada');
{"api_key":"sk-exampleToken123456789012345"}
Contact: +1 (415) 555-0136
IBAN: GB82 WEST 1234 5698 7654 32Options
{"mode":"placeholder","categories":["credentials","personal","network"],"sqlIdentifiers":true}Expected result
SQL output uses stable sql_table_N and sql_field_N identifiers plus value labels such as [SQL_CREDENTIAL_1], [SQL_PERSONAL_1] and [SQL_NETWORK_1].AI Privacy Sanitizer FAQ
Does the text leave my browser?
No. Detection and replacement run locally in a browser worker. This tool disables input-bearing share links and does not save the pasted text in local storage.
Does a clean result guarantee that no sensitive data remains?
No. Pattern-based scanning cannot recognize every secret, name, address or organization-specific identifier. Always review the sanitized result before sharing it.
Which SQL forms are supported?
The SQL-aware scanner covers common SELECT, INSERT, REPLACE, UPDATE, DELETE, MERGE and DDL statements. It maps columns to literal values, handles multiple VALUES rows, comparisons and joins, and supports single-quoted values, PostgreSQL dollar quotes and common quoted identifier styles. Parameter placeholders such as ?, :email and $1 are preserved because they do not contain the underlying value.
How are SQL table and field names sanitized?
Schema and table names are replaced consistently with valid identifiers such as sql_table_1, while fields become sql_field_1. Repeated references receive the same replacement, original identifier quotes remain intact, and SQL keywords, functions and aliases are preserved. Identifier sanitization remains enabled in placeholder, mask and remove modes so the resulting SQL structure stays readable. Set sqlIdentifiers to false in Options JSON when names must remain unchanged.
Which systems and credentials are supported?
URI credentials are detected independently of scheme, covering formats such as PostgreSQL, MySQL, SQL Server, MongoDB, Redis, Elasticsearch, Neo4j, AMQP and other service URLs. Key/value strings, JSON, YAML, environment variables, CLI arguments, .netrc entries, SQLPlus commands, headers and query parameters are scanned for password, token, session, signature and API-key fields. Common cloud and developer-platform token formats have additional rules.
What personal data does it detect?
It detects Unicode and ASCII email addresses, international phone numbers, payment cards, IBANs, IPv4, IPv6 and MAC addresses. Supplemental national rules cover US Social Security numbers, Canadian Social Insurance Numbers, UK National Insurance numbers, Chinese resident identity numbers and context-labelled Indian Aadhaar numbers.
Can I keep known test values unchanged?
Yes. Add an allowlist array to Options JSON. Exact, case-sensitive values in that list are skipped; use this only for values you have verified are safe.
Prepare a log excerpt for AI with consistent secret and email placeholders
Paste a log excerpt and choose placeholder mode. Supported credential, personal and network patterns are replaced locally. Repeated email values receive the same placeholder within a run, so relationships remain readable without copying the original address.
Inspect the sanitized text before sharing it. Pattern matching can miss private business information or unusual secrets. Category selection changes what is detected; an exact, case-sensitive allowlist keeps matching values unchanged. A result with no findings is not a privacy guarantee.
Worked example
Input and settings:
password=demo-secret
ada@example.com ada@example.comOptions:
{"mode":"placeholder","categories":["credentials","personal","network"]}Expected result or interpretation:
password=[SECRET_1]
[EMAIL_1] [EMAIL_1]Questions about this workflow
How can I replace repeated email addresses without losing their relationship?
Choose placeholder mode with the personal category enabled. Within a run, repeated matching email values use the same label, such as [EMAIL_1]. Review the actual sanitized text before sharing.
Does a clean detection report mean a log is safe to send to AI?
No. Detection covers supported patterns and selected categories, not all sensitive information. Check business context and unusual secrets manually; exact, case-sensitive allowlist entries are intentionally retained.