Code and data

JSON Minifier

Compact JSON to the smallest valid form.

  • Free
  • Runs in your browser: nothing is sent
  • API: 120 runs a minute without an account
  • No sign-up

TryPretty JSONOne line

About JSON Minifier

Remove every unnecessary space and line break from a JSON document. The input is parsed first, so you also find out if it is invalid, and the output is guaranteed to be valid JSON.

  • Validates while it minifies
  • Reports how many bytes were saved
  • Runs in your browser; the data is not uploaded
Questions · 1

Does minifying change the data?

No. Only whitespace outside strings is removed. Keys, values and their order stay the same.

Use it from code · API

Input: text. No account needed within the free limit; a token with tools.tool.run raises it.

curl -X POST https://openvibe.tools/api/v1/tools/jsonminify/run \
  -H 'Content-Type: application/json' \
  -d '{"input":{"text":"{\n  \"a\": 1\n}"}}'

JSON Schema · OpenAPI · API docs