Strip console.log, warn, error, info and debug statements from JavaScript without touching strings, comments or regex. Console.log Remover is a free online tool from the ToolsRift JavaScript Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.
Paste your JavaScript, choose which console methods to strip (or select all console.* methods), then click Remove Console Statements and copy the cleaned code.
No. The remover scans character by character and tracks string, comment and regex literals, so a string like "console.log(1)" or a URL like "http://x.com" is never altered.
Yes. Use the checkboxes to strip only specific methods such as console.log while keeping console.error, or choose 'All console.* methods' to remove every one.
Yes. It removes the entire console call including nested parentheses and arguments, plus a trailing semicolon and the now-empty line if the call stood alone.