Minificatore HTML
Comprimi l'HTML rimuovendo commenti e spazi extra.
Funziona nel tuo browser. I tuoi file non lasciano mai il dispositivo. Scopri come verificarlo
…
Come si usa
- 1Compila i campi
Scrivi i tuoi numeri o scegli le opzioni che ti servono.
- 2Guarda il risultato
La risposta si aggiorna subito quando cambi un valore.
- 3Usalo
Copia il risultato o annotalo. Nulla viene inviato da nessuna parte.
About this tool
Paste your HTML to remove comments and collapse extra spaces and line breaks. Content inside pre, textarea, script and style blocks is kept as it is. Tick the aggressive option to also remove the spaces between tags, which makes the file smaller but can close the gap between inline words.
When to use it
Compress HTML by removing comments and extra spaces.
Tips
Check pre blocks, which keep spacing.
Privacy
Everything runs in your browser, so your data is not uploaded or stored.
Notes
Minifying removes comments and extra spaces, but not required spaces between inline elements. Keep a readable source and publish the minified copy.
Consigli per il miglior risultato
Controlla ogni campo prima di fidarti di un risultato, perché una sola cifra sbagliata cambia tutta la risposta. Usa i numeri esatti di una busta paga, una fattura, un certificato o un contratto e annota la data del calcolo. Aliquote, soglie e regole cambiano di tanto in tanto, quindi per tasse, tariffe e questioni legali considera il risultato una stima e verificalo con la fonte ufficiale indicata in questa pagina. Puoi provare quanti scenari vuoi: nulla viene salvato o inviato e ricaricare la pagina cancella i campi.
In breve
- Categoria: Documenti
- Funziona nel browser, senza registrazione né caricamento.
- Le informazioni che inserisci restano sul tuo dispositivo.
- Disponibile in molte lingue.
- Contenuto rivisto l'ultima volta il:
Domande frequenti
Is it safe to use?
Yes with the default settings. Check the page after using the aggressive option, because spaces between inline tags can matter.
Are conditional comments kept?
Yes. Conditional comments for old versions of Internet Explorer are left alone.
Are pre blocks kept?
Yes.
How much does it save?
Often 10 to 30 percent.
Does it minify inline CSS and JS?
This tool handles the HTML only. Use the CSS and JS minifiers for those.