How to minify code
- Choose the language: CSS, JavaScript, HTML or JSON.
- Paste your code. The minified version appears with the size saved.
- Copy or download it.
What gets removed?
Comments, spaces and line breaks the browser does not need. For JavaScript, Pockit uses Terser, the same minifier used by most build tools, which also shortens variable names.
Will it break my site?
Minifying does not change how correct code works. Keep the original file for editing and test the minified version before going live.
Is my text saved or uploaded?
No. Everything happens in your browser. Nothing you type is sent to Pockit or anyone else.
