JavaScript-minifier
Basisminificatie van JavaScript: verwijdert commentaar en onnodige witruimte. Gebruik een echte minifier (Terser, esbuild) voor productie.
Hoe u deze tool gebruikt
- 1
Paste or type your JavaScript into the input textarea.
- 2
The minified output appears instantly in the panel below as you type — there is no button to press.
- 3
Check the size readout (original length, an arrow, and minified length) to see how much was removed.
- 4
Select the text in the output box and copy it manually into your file.
Wat is de JavaScript-minifier?
Minificatie van JavaScript verkleint de bundelgrootte en de parsetijd. Deze tool voert een basisverwijdering van witruimte en commentaar uit. Gebruik voor productiebundels Terser, esbuild of SWC: deze voeren naamverkorting en het verwijderen van dode code uit, wat een drastisch kleinere uitvoer oplevert (vaak tussen de 60 % en 80 % reductie).
Veelvoorkomende toepassingen
Quickly shrinking a short, comment-heavy snippet before pasting it into a tight inline <script> tag.
Stripping comments out of a code sample to share a compact version in a chat or gist.
Estimating roughly how much comment and whitespace overhead a small file carries before setting up a real build.
Cleaning up a hand-written configuration object or constant block that has no strings containing slashes.
Demonstrating to students or teammates what basic comment and whitespace removal looks like versus a real compiler.
Minifying a tiny utility function for a bookmarklet where pulling in a full toolchain is overkill.
Veelgestelde vragen
Hoe verhoudt het zich tot Terser?▼
Breekt dit mijn code?▼
Gerelateerde tools
JWT-decoder
Decodeer JSON Web Tokens (JWT) direct. Draait in uw browser: de tokens verlaten uw apparaat nooit, dus veilig te gebruiken met productiegeheimen.
JSON-formatter en -validator
Formatteer, valideer en minificeer JSON online. Werkt volledig in uw browser: uw gegevens verlaten nooit uw apparaat.
XML-formatter
Formatteer en verfraai XML-documenten. Handig voor SOAP, sitemaps, RSS-feeds en configuratiebestanden.
Base64-encoder en -decoder
Codeer tekenreeksen naar Base64 of decodeer Base64 naar tekst. Respecteert uw privacy: draait in uw browser.
URL-encoder en -decoder
Zet tekst om naar URL-veilige codering (procentcodering) en omgekeerd. Handig voor querystrings, omleidingen en OAuth-flows.
HTML-entiteit-encoder en -decoder
Zet speciale tekens om naar HTML-entiteiten (&, <, enz.) en omgekeerd. Handig om tekst veilig in HTML in te sluiten.