Free JSON formatter and minifier API

Paste JSON and choose readable or compact. Only the whitespace between the parts changes, so large numbers, escapes and key order stay exactly as you sent them. The form calls the same free API your code can call, and the result waits in Storage for 24 hours.

The whole API
curl -s -X POST https://aisenseapi.com/services/v1/json_format \
  -H "Content-Type: application/json" \
  -d '{"data":"{\"id\":123456789012345678901234567890,\"price\":1.50,\"tags\":[\"a\",\"b\"],\"note\":\"caf\\u00e9\"}","mode":"pretty","indent":2}'

{
  "storage_id": "8d564f58-1e87-4697-81c9-3011597e864d",
  "storage_url": "https://aisenseapi.com/services/v1/storage/8d564f58-1e87-4697-81c9-3011597e864d",
  "sha256_hash": "855db31facc03d7d89934d9647ba6aa870cf70db6ccde072cb2cd4470dd1f63a",
  "bytes": 117,
  "expire_timestamp": 1790760065,
  "expire_datetime": "2026-09-30T09:21:05+00:00",
  "content_type": "application/json",
  "filename": "result.json",
  "operation": "json_format"
}
No API key No account Pretty or compact Numbers kept exactly 5000 req / IP / 24h

Try it in the browser

This form posts to the same endpoint and shows the stored result. What you enter is sent to aisenseapi.com, and the result is kept for 24 hours at a link that anyone with the link can open.

Any JSON value: an object, a list, a string, a number, true, false or null.
Drop a JSON file here or click to choose one

Only the whitespace changes

The result stored for the example at the top of the page:

{
  "id": 123456789012345678901234567890,
  "price": 1.50,
  "tags": [
    "a",
    "b"
  ],
  "note": "caf\u00e9"
}

The API

POST https://aisenseapi.com/services/v1/json_format with Content-Type: application/json. The JSON to format goes in as text, in a string.

FieldRequiredMeaning
datayesThe JSON text, as a string.
modeno"pretty" (default) or "compact".
indentno2 (default) or 4.

The result is stored as result.json and served as application/json.

The answer is a Storage link

The endpoint never sends the converted file in its answer. It stores the result for 24 hours and answers with the same fields the Temporary Storage API answers with, plus what the result is:

FieldMeaning
storage_id, storage_urlWhere the result is. A GET on the URL returns the bytes.
sha256_hash, bytesThe digest and size of the stored bytes.
expire_timestamp, expire_datetimeWhen the result is removed, 24 hours after it was stored.
content_type, filenameWhat the result is and the name to save it under.
operationThe endpoint that made it.

The id and the expiry in the examples on this page come from a test run and are different on every call. The hash and the size are what the example request gives every time.

Anyone with the link can read the result until it expires, so do not send personal or confidential data. Stored results count against the Storage budget of 80 MB per IP address per day.

Limits

Errors

A refused request stores nothing and answers with error. The endpoint's own refusals also carry fix, a sentence saying what to send instead.

StatusWhen
400The body is not a JSON object, a field is missing, unknown or has the wrong type, or the input breaks the rules above.
405The method is not POST.
413The request, the rows or the result is over a limit.
415The Content-Type is not application/json.
429More than 5000 requests from one IP address in 24 hours, or the day's Storage budget is used up.
503The result could not be stored. Try again later.

Questions

Is the JSON formatter API free?

Yes. No API key, no account and no sign up. The limit is 5000 requests per IP address per 24 hours, and stored results count against the Storage budget of 80 MB per IP address per day.

Does it change large numbers?

No. The formatter moves whitespace and never rewrites a number, so 123456789012345678901234567890 and 1.50 come back exactly as sent.

Does it remove duplicate keys?

No. Duplicate keys, key order and string escapes are kept. Formatting does not change what the JSON says.

What happens with invalid JSON?

The request is refused with HTTP 400 and the parser message, and nothing is stored.

All conversion endpoints All free public APIs