# JSON minifier

> Remove unnecessary whitespace from JSON.

[Open tool](https://www.toolcabana.com/ml/json-minifier) · [വികസനവും ഡാറ്റയും](https://www.toolcabana.com/ml/category/developer-and-data)

Tool ID: json-minifier. Requested language: ml. Description language: en. Complete guide translation: no; untranslated sections use English.

## Overview (en)

JSON minifier removes the whitespace outside strings from valid JSON and returns a compact single-line result. It reports the original and minified size in bytes and how much smaller the output is. Advanced options sort object keys alphabetically or add a final newline, and the result downloads as minified.json.

## Supported tasks (en)

Remove unnecessary whitespace from JSON.

## Steps (en)

1. Type or paste your source, or load an example.
2. Change the basic settings or open Advanced mode to fine-tune the result.
3. Review and copy or download your result. Pause Live results to run manually. Sources or individual settings above 20,000 characters require an explicit run.

## Settings

- Sort object keys alphabetically (en; key: sortKeys; type: checkbox)
- End with a newline (en; key: finalNewline; type: checkbox)

## Limitations (en)

Text operations generally accept up to 2,000,000 characters. Individual parsers, generators and formulas apply additional limits shown by their controls.

## Example input

```text
{"name":"ToolCabana","count":2}
```

## Privacy and connections (en)

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

## Questions (en)

### Does minifying JSON change any values?

No. Only whitespace outside strings is removed, so spaces inside string values are kept. Large integers that cannot be stored exactly are rejected with an error rather than rounded.

### How much smaller will my minified JSON be?

After each run the tool shows the original byte count, the minified byte count and the size change. Input that is already compact shows that there was no size change.

### Can I sort keys while minifying JSON?

Yes. Turn on Sort object keys alphabetically in Advanced mode. Keys in every nested object are reordered, while the order of items inside arrays stays as it was.

### Where is my input processed?

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

### What are the input limits?

Text operations generally accept up to 2,000,000 characters. Individual parsers, generators and formulas apply additional limits shown by their controls.

## Related tools

- [JSON validator](https://www.toolcabana.com/ml/json-validator)
- [JSON diff](https://www.toolcabana.com/ml/json-diff)
- [JSON formatter](https://www.toolcabana.com/ml/json-formatter)
- [JSON to CSV](https://www.toolcabana.com/ml/json-to-csv)
