No upload, 100% local, no account

Minify / Beautify

Minify or beautify code. Everything stays in your browser.

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.

Frequently asked questions

Are my files uploaded to a server?

No. Every operation runs inside your browser tab using JavaScript and WebAssembly. Your file is read into memory on your own device, processed there, and the result is offered as a local download. Nothing is transmitted to Sunasty or any third party. You can verify it yourself: open your browser DevTools, go to the Network tab, and watch, no request carries your file.

Does minification change what my code does?

No. Minification only removes whitespace and comments and shortens variable names in some cases. It does not alter the logic or behavior of your HTML, CSS, or JavaScript.

Can I use it to obfuscate code?

Minification is not obfuscation. It reduces readability but does not provide meaningful protection against reverse-engineering. Use a dedicated obfuscator if that is your goal.

What is the size limit for pasted code?

There is no hard limit imposed by the tool, it processes whatever you paste. Very large files (several MB) may cause a brief delay as the parser runs in the browser's main thread.

Does it work offline?

Yes, once the page has loaded. Because the processing happens on your device, you can disconnect from the network and the tool keeps working. This is the clearest proof that your data never leaves your machine.

Is it free? Do I need an account?

It is completely free and requires no sign-up. There are no watermarks, no daily limits and no tracking cookies needed to use the tool.