About Uncommenter
Uncommenter is a free tool that removes comments from source code. It supports 50+ programming languages and uses a context-aware state-machine parser to intelligently strip comments without breaking your code.
Unlike simple regex-based tools, Uncommenter understands the difference between a comment and comment-like syntax inside strings, template literals, regex patterns, and other contexts. It handles edge cases like "https://example.com" (not a comment), color = "#ff0000" (not a comment), and nested block comments in languages like Rust, Swift, and Haskell.
Everything runs client-side in your browser. Your code never leaves your machine. There are no servers, no databases, no APIs, no analytics, and no cookies.
Privacy by design
Your code is processed entirely in your browser. We have no server, no database, no API. There is literally no way for us to see your code.
Real parsing, not regex
We use a character-by-character state machine that tracks context: strings, template literals, regex, nested comments. Regex-based tools break on edge cases. Ours doesn't.
Free and open
Uncommenter is free to use, forever. No accounts, no paywalls, no usage limits. Clean code should be accessible to everyone.