Clean JSON payloads by stripping null, empty string, and undefined properties
Recursively purge null, empty string, and undefined attributes from JSON payloads.
Interactive Sample Data
| id | name | phone | |
|---|---|---|---|
| 1 | Grace Kerubo | grace@corp.com | +254712345678 |
| 2 | Peter Njoroge | peter@corp.com | null |
How this tool works
Things that usually go wrong
- Removing rows with any null deletes more rows than expected if most rows have at least one empty column. Use column-specific mode instead.
- The string literal 'null' (common in JSON exports) is treated as null.
Edge cases we tested
Purges the child null and cleans up the orphaned parent object.
Filters out null elements leaving clean packed array ([1, 2]).
Preserved intact; valid falsy data is never confused with null.
Frequently Asked Questions
What counts as null?
Empty strings (''), the literal string 'null', 'NULL', 'N/A', 'n/a', 'NA', and actual JSON null values.
Can I fill nulls instead of removing them?
Yes — use the Fill Missing Values tool or Fill Down Blank Cells instead.
Related tools
Split Full Name into First and Last
Separate full name columns into dedicated first_name and last_name columns in CSV and Excel spreadsheets.
Open Tool →Combine First and Last Name
Merge separate first and last name columns into a single clean full_name column, trimming extra spaces.
Open Tool →Remove Duplicate Rows
Eliminate duplicate rows across your entire dataset or based on specific unique key columns.
Open Tool →