Text & Code Compressor
Minify code or text — strip comments and extra whitespace for JS, CSS, HTML, PHP.
Input
0 chars
Result
Press compress or format
Usage guide
Shrink code or text by removing comments and extra whitespace. Format only adds rough line breaks — comments aren't restored.
- Comments are stripped first so line comments don't swallow the rest.
- Comment-like sequences inside strings are preserved for JS/CSS/PHP.
- Pick a language chip or use detect to guess the input.
How to use
Paste code or text, pick a language chip or detect it — compress strips comments and whitespace, format adds rough line breaks.
Frequently asked
- Are comments removed?
- Yes — compress strips comments first, then whitespace.
- Does format restore comments?
- No — format only adds rough line breaks; comments are gone.
- Is my code uploaded?
- No — everything runs locally in your browser.
code minifiertext compressorremove commentsminify JSminify CSS