JSON Empty Values Cleaner
Recursively wipe empty strings, empty arrays, objects, and null values in JSON files
Cleans data payloads by filtering empty keys recursively.
도구를 불러오는 중…
🔒 Everything runs 100% in your browser. Your files and input are never uploaded to any server.
How to use
- Paste raw JSON code.
- Click clean button to filter values.
- Copy formatted compact output JSON.
FAQ
- Are numbers like 0 filtered?
- No, number 0 and boolean false are preserved.
- If removing empty values leaves a parent object or array empty too, what happens to it?
- It gets removed as well. For example, in { "a": { "b": "" } }, b is deleted for being an empty string, which then leaves a as an empty object, so a is removed too and the final result is {}. The cleanup cascades upward recursively, so back up your original data first if you want to keep that structure.
- If removing empty values leaves a parent object or array empty too, what happens to it?
- It gets removed as well. For example, in { "a": { "b": "" } }, b is deleted for being an empty string, which then leaves a as an empty object, so a is removed too and the final result is {}. The cleanup cascades upward recursively, so back up your original data first if you want to keep that structure.
