💻
Javascript Minifier
javascript · minify · compress · js · optimize
514 B
Original
366 B
Minified
29%
Savings
Minified output
function calculateTotal(items){return items.reduce(function(total,item){return total+item.price*item.quantity;},0);}function formatCurrency(amount,currency='USD'){return new Intl.NumberFormat('en-US',{style:'currency',currency:currency}).format(amount);}const cart=[{price:29.99,quantity:2},{price:9.99,quantity:1}];console.log(formatCurrency(calculateTotal(cart)));How to use
- 1
Paste your JavaScript.
- 2
Choose what to remove.
- 3
Copy the minified output.
FAQ
Is this tool free?
Yes — no sign-up, no installation, completely free to use right away.
What is this tool?
Minify JavaScript to shrink file size instantly. You can use it for free with no sign-up or installation — just open the page and start right away.