What does this tool do?
Recursively strip null values from a JSON document, with an option to also remove empty strings, arrays, and objects. Everything runs locally using JavaScript in your browser — nothing you paste or upload is ever sent to a server.
How to use this tool
- Paste your json document into the left-hand box.
- Fill in the strip mode field above the input.
- Click Remove Nulls.
- Copy the cleaned json from the output box.
Frequently asked questions
Does this remove nulls inside arrays too?
Yes, null entries are removed from arrays as well as from object fields, at every level of nesting.
What counts as "empty" in the second mode?
An empty string (""), an empty array ([]), or an empty object ({}) after nulls have already been removed from it.
Will this remove the number 0 or false?
No, 0 and false are valid, meaningful values and are always kept — only null, undefined, and (optionally) empty strings/arrays/objects are removed.
