Minify CSS and JavaScript code to reduce file size. CSS minification removes comments, whitespace, and shortens hex colors. JS minification safely removes comments and whitespace without variable renaming.
LevnTools CSS / JS Minifier lets you format, validate, and transform your code directly in your browser. Everything runs locally in your browser — your code and data never leave your device. Unlike cloud-only alternatives that require uploads and accounts, this tool is completely free with no usage limits or watermarks. It is designed for developers debugging API responses, DevOps engineers working with configuration files, students learning data formats — anyone who needs a fast, reliable developer tool without the overhead of installing software. Just open the page and start working.
CSS / JS Minifier is used by a wide range of people. Explore how different groups use this tool:
Format, beautify, minify, and validate JSON with syntax highlighting.
Encode and decode Base64 with UTF-8 support and file-to-data-URI.
Encode, decode, and parse URLs with editable query parameters.
Convert text to camelCase, snake_case, kebab-case, and 7 more.
Convert between metric and imperial length units.
The CSS minifier removes all comments, collapses whitespace, removes unnecessary semicolons and spaces around selectors and properties, and shortens 6-digit hex colors to 3-digit when possible (e.g., #AABBCC becomes #ABC).
Yes. The JS minifier performs safe-only transformations: it removes comments (single-line and multi-line), collapses whitespace, and preserves necessary spaces between identifiers. It does NOT rename variables or perform code transforms.
Yes. After minification, the tool shows the original size, minified size, and savings percentage. This helps you understand how much bandwidth the minification saves.
Inputs larger than 100 KB are processed in a Web Worker to keep the page responsive. There is no hard size limit — performance depends on your device capabilities.
No. This is a lightweight minifier for quick results. Production build tools like Terser (JS) and cssnano (CSS) perform more aggressive optimizations including variable renaming, dead code elimination, and advanced CSS transforms.