Minificatore JavaScript

Rimuovi commenti e spazi dal JavaScript.

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 JavaScript and the tool removes comments and unnecessary whitespace while keeping strings, template text and regular expressions safe. This is a light minifier: it does not rename variables. For the smallest possible file use a build tool, but this is quick for small scripts and snippets.

When to use it

Remove comments and spaces from JavaScript.

Tips

Use a full build tool for large projects.

Privacy

Everything runs in your browser, so your data is not uploaded or stored.

What it does not do

This simple minifier removes comments and extra whitespace. It does not rename variables or remove dead code, so the saving is smaller than with a full build tool. Always test the minified script.

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

Does it rename my variables?

No. It only removes comments and extra whitespace, so the code stays readable to debug.

Is my code uploaded?

No. Everything runs in your browser.

Does it rename variables?

No. It only removes comments and spaces.

Is it safe?

It keeps the logic unchanged.

Is the minified file safe to use?

Test it, since removing line breaks can matter in rare cases without semicolons.

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