CommentStripper is a simple web-based tool that allows you to remove comments from code in multiple programming languages. It supports a wide range of languages and provides configurable options for different types of comments (e.g., line comments, block comments, etc.). You can simply paste your code, choose the desired preset for the language you're working with, and remove the comments instantly.
- Removes line and block comments from various programming languages.
- Supports customizable comment delimiters (line comments, block start, and block end).
- Includes presets for popular programming languages (e.g., C, Java, Python, PHP, JavaScript, etc.).
- Dynamic button generation for easy preset selection.
- Simple and intuitive interface to paste and clean your code.
- Trim Whitespace at End of Lines
- C/C++/C#
- PHP
- Java
- JavaScript
- Python
- HTML
- CSS
- SQL
- MATLAB
- Ruby
- Swift
- Assembly
You can use this tool directly from the web without the need for installation. Simply clone the repository or download the code and open the index.html
file in your browser.
Alternatively, you can deploy it to any static file hosting service like GitHub Pages, Netlify, or Vercel.
To clone the repository:
git clone https://github.com/BaseMax/CommentStripper.git
- Paste your code into the "Input Code" section.
- Select your language preset from the "Presets" section, or customize the comment delimiters as needed.
- Click the Remove Comments button.
The processed code will appear in the "Output Code" section, free of comments.
If you have any ideas or improvements, feel free to open an issue or submit a pull request. Contributions are welcome!
This project is licensed under the MIT License - see the LICENSE file for details.
For questions, suggestions, or feedback, you can reach out to Max Base at BaseMax.
© 2025 Max Base