How Minify / Beautify works
Minify or beautify HTML, CSS, and JavaScript without a build tool. Minification strips whitespace, comments, and unnecessary characters to reduce file size; beautification re-indents and formats code for human readability. Neither operation changes the runtime behavior of your code.
Switch between minify and beautify mode, select the language, paste your code, and copy the result in one click. There is no size cap, though several-MB files may briefly pause while the parser runs on the main thread.