YAML Anonymizer & Data Masker
Sanitize YAML config or data before sharing it. Swap real values for realistic fake data, mask them with ***, or replace only the keys you choose. Everything happens locally in your browser, so the original data never leaves your device. Note: anonymizing re-serializes YAML, so comments and anchors are not preserved.
How to use the YAML anonymizer
- Paste or upload the YAML you want to sanitize.
- Choose a scope: replace All values, or only specific keys (type key names like email, name, ssn).
- Pick a style: Realistic fake data, Redact (***), or Type placeholder.
- Press Anonymize, then copy or download the safe-to-share result. Your original data never leaves the browser.
Example: Masking secrets in a config file
db:
host: prod-db.corp.internal
password: s3cr3t
user: admindb:
host: lorem
password: "***REDACTED***"
user: user1Secret-like keys (password, token, apiKey…) are always fully redacted. Comments and anchors are not preserved, since anonymizing re-serializes the document.
Frequently asked questions
- Is my YAML sent anywhere to be anonymized?
- No. It is parsed and rewritten entirely in your browser. Your original values never leave your device.
- Are comments and anchors preserved?
- No. Anonymizing re-serializes YAML from its data model, so comments, anchors, and aliases are dropped — the tool warns you about this. Use the YAML formatter if you need lossless formatting.
- Can I target only certain keys?
- Yes. Use the “Only these keys” scope and list key names such as password, email, or token. Matching is case-insensitive and works at any depth.
- What replacement styles are available?
- Realistic fake data (key-aware), Redact (mask with ***), and Type placeholder. Secret-like keys are always fully redacted.