Code Comment Remover

Upload or paste source code and strip single-line and multi-line comments instantly.

Cleaned Code

About this tool

Before sharing a code snippet, minifying a script, or cleaning up a file inherited from an old project, stripping out leftover comments by hand is tedious. Upload a JS, PHP, CSS, or HTML file — or paste code directly — and this tool removes both single-line (//) and multi-line (/* */) comments in one pass.

Good to know

This is a straightforward text-based removal, not a full language parser — always review the output on code containing comment-like patterns inside strings or regular expressions before using it in production.