How to use this tool
- Enter json document, property names to redact — one per line, replacement text.
- Select Update result to view the result.
- Check the method and assumptions below before using the result.
Input reference and sample values
Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.
| Input | Format and units | Sample |
|---|---|---|
| JSON document | Keep the structure and separators shown in the sample. Line breaks are retained in this input. | {"user":"Sam","password":"example-only","nested":{"token":"demo"}} |
| Property names to redact — one per line | Keep the structure and separators shown in the sample. Line breaks are retained in this input. | password
token
secret |
| Replacement text | Keep the structure and separators shown in the sample. Line breaks are retained in this input. | [REDACTED] |
Result for these sample inputs
{
"user": "Sam",
"password": "[REDACTED]",
"nested": {
"token": "[REDACTED]"
}
}- Values replaced
- 2
Review the complete output before sharing. Unlisted keys and secrets inside ordinary strings are not detected.
Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.
The method, explained
Traverse objects and arrays recursively. Replace the entire value of each matching, case-sensitive property name with your replacement string. Other values and keys are preserved.
Using json document = {"user":"Sam","password":"example-only","nested":{"token":"demo"}}, property names to redact — one per line = password token secret, replacement text = [REDACTED], the result is { "user": "Sam", "password": "[REDACTED]", "nested": { "token": "[REDACTED]" } }. Change these example inputs to match your task; use the method above to check each step.
What to keep in mind
This is exact key-based replacement, not automatic personal-data detection. Do not assume the output is safe without reviewing it.
Common questions
Does it discover secrets automatically?
No. It only replaces values whose property names you list. A secret under another name, or inside a free-text value, remains unchanged.
Are nested keys included?
Yes. Matching property names are replaced at any supported depth, including objects inside arrays.
Methodology maintained by ClarityKit. How these tools are built and checked.