Remove language-style comments from source text while optionally retaining JSDoc.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
The selected language supplies line and block delimiters, optional JSDoc blocks are preserved, and matching spans are removed before the remaining source is joined. This is delimiter-based text processing rather than a complete lexer.
// Initialize counter let count = 0; /* Increment the counter */ count++;
let count = 0; count++;
Minification pre-passes, generated fixtures, and source documentation reviews strip comments.