Free calculators, PDF, photo and audio tools.
Or pick a job
New tools, new guides and money tips by email. No spam, and you can leave any time.
Free. We never share your email.
Developer Tools
Code Minifier
Minify HTML, CSS and JavaScript: remove comments, spaces and line breaks to make files smaller and pages faster, and see the size saved before and after gzip.
Browsers do not need comments, indentation or line breaks, but every byte still has to be downloaded. Minifying typically makes CSS and JavaScript 20 to 50% smaller, so pages load faster, especially on slow mobile data, and Google PageSpeed Insights stops warning you to "minify CSS" and "minify JavaScript". Faster pages also rank better in search and keep more visitors.
Pick HTML, CSS or JavaScript, paste your code (or tap Sample), and the minified version appears below with the size before and after. Tap Copy or Download to save it as a .min file. Keep your original file for editing: minified code is hard to read. For HTML pages, leave "Also minify CSS and JavaScript inside the page" on to shrink inline <style> and <script> blocks too.
Most web servers and CDNs (including Cloudflare, Netlify and Vercel) already compress files with gzip or Brotli when sending them. Minifying and gzip work together: minified files compress even smaller. The After gzip number shows roughly what visitors will download. In big projects, build tools like esbuild, Vite or Terser also shorten variable names; use this tool for quick jobs, small sites, WordPress custom code and checking a snippet.
It never renames variables or functions, never rewrites your logic, and leaves strings, template literals, regular expressions and the text inside <pre> exactly as written. Comments that start with /*! are kept because they usually hold a licence that must stay with the code. Conditional comments for old Internet Explorer are kept in HTML.
CSS before: /* Main button */ .btn { color : #ffffff ; padding: 10px 16px; } (about 70 bytes with line breaks). After: .btn{color:#ffffff;padding:10px 16px} (37 bytes), about 45% smaller. The comment, spaces around : and ;, and the last ; before } are gone.
Keep the original files in your project, ideally in Git, and minify a copy. Test the page in a browser after minifying. If something breaks, compare the two and look for a missing semicolon at a line end in the original JavaScript, which is the most common cause.
Paste your CSS and the comments, spaces and last semicolons go. A short rule set like body { color: red; } becomes body{color:red}. The tool shows the size before and after, and the gzip size too.
Minify the JavaScript for a small landing page and test the page again before you upload. The tool keeps the line breaks that the code needs, but your own test is the final check.
Paste the HTML and minify it. Extra spaces between tags are removed, but text inside pre and textarea is kept exactly, so code samples and addresses stay as they were.
It should not. The minifier understands strings, regular expressions, template literals and comments, keeps a line break wherever JavaScript might need it to end a statement, and never renames anything. Still, test the minified file before you put it live, and keep the original for editing.
Minified code loses comments and layout, which cannot be brought back, but its structure can be re-indented. Open the file in your browser's developer tools (Sources tab, then the { } button), or use a formatter like Prettier in your code editor.
For JSON use our JSON Formatter and Validator: pick Minify as the output style to put it on one line, or 2 or 4 spaces to make it readable again. JSON-LD data blocks inside an HTML page are minified here too.
Hand-written CSS and JavaScript with comments and indentation usually shrink by 20 to 50%. Code that is already compact saves less. The After gzip figure is closer to what visitors actually download, because servers compress files before sending them.
No. Your code is minified on your device. Everything runs in your browser on your own phone or computer, and nothing is sent to our servers or saved.
Yes. There is no sign-up, no limit and nothing to install. It also works offline once the page has loaded.
No. Minifying removes characters the browser does not need, and the file is still normal code. Compressing (gzip or Brotli) packs the file for sending and the browser unpacks it. Use both: they add up.
It helps a little, usually 5 to 15%, because most of the page is text and tags that must stay. Minifying CSS and JavaScript saves more. For WordPress, a caching plugin can do all three automatically.
JavaScript uses line breaks to end statements when there is no semicolon. Where removing a break could change the meaning (for example a line starting with ( or [), the minifier keeps it to stay safe. Add semicolons to your code to remove them.
No. It never changes what the code does, so console.log and debugger lines stay. Remove them in your code before minifying, or use a build tool option like esbuild's drop: ["console"].
Free calculators, PDF, photo and audio tools.
New tools, new guides and money tips by email. No spam, and you can leave any time.
Free. We never share your email.
Every tool on Quick Work Studio, free and in your browser. Prefer reading first? See the guides or full directory.
Minify HTML, CSS and JavaScript: remove comments, spaces and line breaks to make files smaller and pages faster, and see the size saved before and after gzip.
Save favourites across visits.
Update the password for your account.
This permanently deletes your account, your saved favourites, your synced notes and tasks, and any feedback linked to it. It can't be undone. Every tool keeps working without an account.
Found a bug or want a new tool? Tell us. We read every message.
Prefer email? contact@quickworkstudio.com
Your feedback is on its way to us.
Open all 182 tools from your home screen, full screen, like an app.
Free, no app store, under 1 MB. Remove it any time like any other app.
It opens straight into this tool, full screen, like an app.
A few taps, under 30 seconds.
What kind of tool?
How often would you use it?
Sign in to keep your favourites, saved results and settings on all your devices.
New here? Create a free account
Forgot your password? Reset it by email
Your saved results (0)Every tool works without signing in. An account keeps your favourites, saved results, settings and Selnah chats on all your devices.
Open any saved answer again, or share it.
Takes 20 seconds. No card, no spam.
Already have one? Sign in
Enter the email you signed up with. We'll send you a link to set a new password.
Remembered it? Sign in
Choose a new password for your account. You'll be signed in, and signed out on your other devices.
Link not working? Get a new one
Your favouritesSee all
Recently used
Settings
Tools keep working without an account, and you can sign up again any time.
Appearance
Tools
Your data
Help & info
Legal
Quick Work Studio · version 2.99