de
//
comment
Paste code in on the left. It strips the comments and leaves the code on the right — line comments, block comments, and HTML comments, across most common languages. Strings are left alone, so nothing inside quotes gets touched.
Auto-detect
HTML + JavaScript + CSS (full page)
JavaScript / TypeScript / Java / C / C++ / C# / Go / Rust / Swift / PHP
Python / Ruby / Shell / YAML
HTML / XML
CSS
SQL
collapse blank lines left behind
input
0 chars
output
0 chars
Strip comments
Copy result
Download .txt
Clear