{ } 2DevKit
Tools / Data & JSON

JSON Minifier

Minify valid JSON in your browser, remove unnecessary whitespace, copy or export compact JSON without sending data to a server.

Removes insignificant whitespace without changing parsed values.

The JSON is processed locally in your browser.

What is JSON Minifier?

JSON minification removes formatting whitespace outside string values while preserving parsed JSON values. A proper JSON parser is required: deleting whitespace with regular expressions can corrupt strings and escape sequences. This tool validates the input before outputting compact JSON.

How to use this tool

  1. Paste valid JSON, including objects, arrays or primitive JSON values.
  2. Click Run tool to validate and remove formatting whitespace.
  3. Copy the compact output or download it as a JSON file.

Example

{"user":"Ada","active":true}

Related developer tools