Code Beautifier & Minifier
Format or minify HTML, CSS, and JavaScript — with before/after byte counts.
Your code never leaves the browser — no upload, no server.
Language
Mode
Safe-ish whitespace minifier — for production use a real build tool; this is for quick jobs. No variable renaming.
Beautify options
Input
Input:
Output
Output: — saved %
About this tool
Beautify uses js-beautify with your indent and wrap settings. Minify strips comments and collapses whitespace — enough for a quick paste into an email or gist, not a substitute for esbuild, terser, or html-minifier in CI.
JavaScript mode also formats JSON when the input parses as valid JSON. Byte counts use UTF-8 length, so savings show up right away. Minify never renames variables or dead-code-eliminates — do not ship that output to production without a real bundler.
Read more
Free books, courses, and software
Get my programming books, course editions, and complete software.
Get the download library →