JSON cleaner

Client

Remove null values from JSON objects and arrays—optionally strip empty strings, empty objects, and empty arrays too. Toggle rules, paste your document, and copy the cleaned result locally.

Learn more: cleaning null and empty values

Recursively remove exact JSON null and, when enabled, empty strings, empty objects, and empty arrays—values are dropped, not replaced with placeholders.

Not the same as redact or pick

Redact replaces values for matching key names. Pick/omit keeps or drops top-level keys by name. This tool removes values by type and emptiness at every depth.

Falsy values stay by default

Zero, false, and empty strings remain unless you enable empty-string removal. Only explicit null matches the null toggle.

Clean JSON

?

Remove unwanted values recursively—not the same as redacting by key name or picking top-level fields. Only exact JSON null is removed when "null" is enabled; 0, false, and "" stay unless you enable empty-string removal.

Removed 3 values (3 null).

Nearby workflows on Toolcore

  • JSON formatterwhen the document must parse before any transform or export.
  • JSON redact keyswhen secrets must be masked, not removed by shape.
  • JSON repairwhen the document still fails to parse before cleanup.

Common use cases

  • Strip null fields from API samples before importing into databases that reject null columns.
  • Shrink fixture JSON for docs or tests after optional fields were serialized as null.
  • Remove empty strings or hollow objects when normalizing config exports from multiple sources.
  • Prepare payloads for strict consumers after merging partial objects from several services.

Common mistakes to avoid

  • Expecting falsy values to disappear

    Only exact JSON null is removed by default. Zero, false, and empty strings stay unless you enable the matching toggles.

  • Using this instead of redaction

    Cleanup removes values by shape, not by sensitive key names. Mask secrets with the redact-keys tool when names are known.

  • Assuming empty containers always vanish

    Empty object and array removal is optional and applies to nested nodes—not the root document.

FAQ

Does this remove null from arrays?

Yes. Null array elements are filtered out when Remove null is enabled.

Is data sent to a server?

No. Parsing and cleanup run entirely in your browser.

How is this different from pick or omit keys?

Pick/omit works on top-level key names you list. This tool removes values by type (null, empty string, empty object/array) at every depth.

Common search terms

Phrases people search for that match this tool. See the full long-tail keyword index.

  • remove null from json online
  • json null remover
  • json cleaner remove empty
  • strip null values json

Related utilities you can open in another tab—mostly client-side.