# Formattatore e minificatore CSS

> Formatta il CSS con un'indentazione coerente.

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

Tool ID: css-formatter. Requested language: it. Description language: it. Complete guide translation: yes.

## Overview (en)

CSS beautifier formats a stylesheet so each rule and declaration sits on its own line with consistent indentation from 1 to 8 spaces. It adds missing semicolons, puts a space after colons and lowercases hex colors. Comments and nested rules are kept. Unparseable CSS returns an error rather than partially formatted output.

## Supported tasks (it)

Formatta il CSS con un'indentazione coerente.

## Steps (it)

1. Incolla l'origine nell'editor di input, oppure carica l'esempio integrato.
2. Imposta gli spazi di indentazione.
3. Esegui il formattatore e minificatore CSS, esamina il risultato, poi usa i controlli disponibili per copiare o scaricare.

## Settings

- Spazi di indentazione (it; key: indent; type: number); minimum: 1; maximum: 8

## 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
.card{padding:20px;color:#17243a}
```

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

### How do I beautify minified CSS?

Paste the compressed stylesheet and run the tool. Each selector block is expanded so every declaration is on its own line, indented by the number of spaces you set, from 1 to 8.

### Does the CSS beautifier keep my comments?

Yes. Comments are kept in the formatted output, and nested rules stay nested. Hex color values are written in lowercase, so #17243A becomes #17243a.

### Can this tool minify CSS?

This tool formats CSS for readability; it does not produce minified output. Its only setting is the indent size, which accepts 1 to 8 spaces.

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

- [HTML beautifier](https://www.toolcabana.com/it/html-formatter)
- [JavaScript formatter](https://www.toolcabana.com/it/js-formatter)
- [SQL formatter](https://www.toolcabana.com/it/sql-formatter)
- [XML formatter](https://www.toolcabana.com/it/xml-formatter)
