Tools
Runs locally

Strip Comments

Remove //, # and /* */ comments from text.

Ctrl+Enter runs. Ctrl+Shift+Backspace clears.

Export and import are available after you sign in. Sign in

Remove //, # and /* */ comments from text. Runs in the browser. Nothing is uploaded.

About this tool

Remove comments from a config, a shell script or a code snippet before sharing it or comparing versions. Block comments, line comments and hash comments are all removed.

How to use it

  1. 01

    Paste the code.

  2. 02

    Comments are removed instantly.

  3. 03

    Review and copy the result.

FAQ

Frequently asked questions

Are URLs like https:// kept?

Yes. // and # only start a comment at the beginning of a line or after a space.

Does it understand strings?

No. It is text-based, so a // or # after a space inside a string is also removed; review the result.