JSON Cleaner

Recursively remove nulls, empty strings, arrays and objects. Keep zero, false, whitespace strings and the root value.

Loading workspace…

Usage guide

Recursively remove nulls, empty strings, arrays and objects. Keep zero, false, whitespace strings and the root value.

  1. 01

    Paste data or read from a file.

  2. 02

    Review the options; results update automatically. Run manually for larger inputs, and check warnings before applying changes.

  3. 03

    Copy or download the result. Your original document stays unchanged until you apply it.

Example input

{"name":"Ada","empty":null,"nested":{"blank":""},"items":[null,{},[],0,false," "]}

Frequently asked questions

Can I recover my documents after closing the page?

Documents are saved automatically in this browser and restored when you return. Closing a document with X deletes it. Browser cleanup can also remove saved work; download important results or export your workspace.

Which values can be removed?

Selected nulls, empty strings, empty arrays and empty objects can be removed recursively. Zero, false and whitespace-only strings remain.