Results will appear here
Options
History
Your recent uncomments will appear here.
About this tool
The editor above runs a context-aware comment-removal engine entirely in your browser. Your code is never uploaded. The same parser is shipped as the open-source uncommenter npm package and exposed as a public REST API; see the full API and CLI documentation for endpoints, code examples, and rate limits.
The parser walks each character with a small state machine rather than running a regex pass. That means it correctly handles edge cases that trip up naive tools, for example JavaScript template literals with embedded comment-like text, regex literals with slashes inside character classes, Python docstrings that span multiple lines, and nested block comments in Rust. If you find a case it gets wrong, the engine source is on npm, patches welcome.
Working with a whole project? Use the upload tab to drag in a ZIP archive, or install the CLI with npm install -g uncommenter. See the CLI section of the docs for recursive directory mode, glob filters, dry-run previews, and the full list of flags and error codes. For deeper background on parser design, head to the blog.