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

  1. 1
    Compila i campi

    Scrivi i tuoi numeri o scegli le opzioni che ti servono.

  2. 2
    Guarda il risultato

    La risposta si aggiorna subito quando cambi un valore.

  3. 3
    Usalo

    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

Incorpora questa calcolatrice nel tuo sito

Copia questo codice per mostrare la calcolatrice nella tua pagina. Include un link a shobfree.com.

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.

Completamente gratisNessun costo, nessuna registrazione
I file restano privatiTutto funziona nel tuo browser
Facile nella tua linguaDisponibile in molte lingue