Minify JavaScript layout while preserving strings, regexes, and token boundaries.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Comments and nonessential whitespace are removed while quoted values, templates, regex literals, and required separators remain. This is lexical minification, not dead-code elimination or name mangling.
// Utility function
function add(a, b) {
return a + b;
}
const result = add(2, 3);
function add(a,b){return a+b;}const result=add(2,3);
Transfer-size estimates, bookmarklets, and pre-bundle reviews minify JavaScript.