Minify removes line and block comments and collapses redundant whitespace to make your JavaScript smaller, while a hand-written scanner keeps string literals, template literals and regular-expression literals byte-for-byte intact so nothing inside quotes or slashes is ever touched. Beautify re-indents the code by tracking curly braces and breaking after semicolons for a readable layout.
This is a deliberately lightweight formatter, not a full JavaScript parser or an AST-based tool like Prettier, so it will not rename variables, rewrite expressions or perfectly reflow every edge case. It is ideal for quickly tidying or compressing snippets. Everything runs locally in your browser — your code is never uploaded.