Remove comments
from any language.
Free online comment remover for 55+ languages. Each guide below includes before/after examples, language-specific edge cases, and a FAQ. The same live tool, REST API, and npm package power all of them.
Free, no signup Runs in your browser Instant
Remove comments from JavaScript
.js
Remove comments from TypeScript
.ts
Remove comments from Python
.py
Remove comments from Java
.java
Remove comments from C
.c
Remove comments from C++
.cpp
Remove comments from C#
.cs
Remove comments from Go
.go
Remove comments from Rust
.rs
Remove comments from Ruby
.rb
Remove comments from PHP
.php
Remove comments from Swift
.swift
Remove comments from Kotlin
.kt
Remove comments from Shell / Bash
.sh
Remove comments from SQL
.sql
Remove comments from HTML
.html
Remove comments from CSS
.css
Remove comments from YAML
.yaml
Remove comments from Lua
.lua
Remove comments from R
.r
Don't see your language? The full tool supports 55+ including HTML, CSS, SCSS, YAML, TOML, XML, Haskell, Elixir, Dart, Objective-C, MATLAB, Julia, Groovy, Clojure, F#, VB.NET, Assembly, Zig, Nim, OCaml, Erlang, Fortran, Lisp, Prolog, COBOL, Pascal, Ada, CoffeeScript, V, Crystal, Solidity, Terraform, Dockerfile, Makefile, and more.