Manipulation Tools

JSON Normalizer

Clean up messy JSON by trimming whitespace and converting stringified numbers and booleans to their real types.

What does this tool do?

Clean up messy JSON by trimming whitespace and converting stringified numbers and booleans to their real types. Everything runs locally using JavaScript in your browser — nothing you paste or upload is ever sent to a server.

How to use this tool

  1. Paste your messy json into the left-hand box.
  2. Click Normalize JSON.
  3. Copy the normalized json from the output box.

Frequently asked questions

What counts as a stringified number or boolean?

Any string that looks exactly like a whole or decimal number (e.g. "30") or exactly matches true/false (case-insensitive) is converted to a real JSON number or boolean.

Does this change my key names?

No, only values are touched. Whitespace inside string values is collapsed and trimmed, but keys and structure are left as-is.

Why would I need this?

Data exported from spreadsheets, forms, or legacy APIs often represents every value as a string with extra spaces — this tool cleans that up before you use the JSON elsewhere.