# Minificatore JSON

> Rimuove gli spazi superflui dal JSON.

[Open tool](https://www.toolcabana.com/it/json-minifier) · [Sviluppo e dati](https://www.toolcabana.com/it/category/developer-and-data)

Tool ID: json-minifier. Requested language: it. Description language: it. Complete guide translation: yes.

## 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 (it)

Rimuove gli spazi superflui dal JSON.

## Steps (it)

1. Digita o incolla il testo di origine, oppure carica un esempio.
2. Modifica le impostazioni di base o apri la modalità avanzata per ottimizzare il risultato.
3. Esamina e copia o scarica il risultato. Metti in pausa i risultati in tempo reale per eseguire manualmente. Origini o singole impostazioni superiori a 20.000 caratteri richiedono un'esecuzione esplicita.

## Settings

- Ordina le chiavi dell'oggetto in ordine alfabetico (it; key: sortKeys; type: checkbox)
- Termina con una nuova riga (it; key: finalNewline; type: checkbox)

## Limitations (it)

Le operazioni di testo accettano in genere fino a 2.000.000 di caratteri. Parser, generatori e formule singoli applicano limiti aggiuntivi mostrati dai relativi controlli.

## Example input

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

## Privacy and connections (it)

Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.

## Questions (it)

### 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.

### Dove viene elaborato il mio input?

Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.

### Quali sono i limiti di input?

Le operazioni di testo accettano in genere fino a 2.000.000 di caratteri. Parser, generatori e formule singoli applicano limiti aggiuntivi mostrati dai relativi controlli.

## Related tools

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