Text utilities

JSON Redactor

Replace values for selected property names throughout a JSON document before sharing a sanitized copy.

Text stays in your browserCopy your result
Data workspace
Data workspace

Check delimiters and structure before downloading the output.

See the method

Your source data

Runs on your device

Your transformed data

Your result

Let’s calculate.

Use the Calculate button to see your result.

Your content is processed locally.

How to use this tool

  1. Enter json document, property names to redact — one per line, replacement text.
  2. Select Update result to view the result.
  3. 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.

InputFormat and unitsSample
JSON documentKeep 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 lineKeep the structure and separators shown in the sample. Line breaks are retained in this input.password token secret
Replacement textKeep 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.

A WORKED EXAMPLE

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.