Code Minifier — JavaScript, CSS, HTML & JSON
Shrink JS, CSS, HTML & JSON safely — shows the bytes saved. Runs in your browser.
Stays on your device. This tool runs in your browser — nothing you paste or open ever leaves it. Nothing uploaded, nothing to leak.
Why minify
Smaller CSS, JS and HTML mean fewer bytes to download and faster pages — which helps Core Web Vitals and, in turn, SEO. Minify production assets before you deploy, and keep the readable original in source control. To reverse minified code for reading, use the Code Beautifier.