jscpd is free open-source software with API, Linux, macOS, self-hosted, and Windows support.
Best Code Clone Detection Tools in 2026
jscpd leads this chart of 23 (7.4/10, free plan). PMD is next (6.8/10, free plan), and Duplo is the next highest-placed with a free plan (6.5/10). Code clone detection tools find repeated or similar code; your choice depends on detection method and supported platforms, especially Android availability. Check whether the tool runs on Android, then review web, Windows, iPhone or iPad, Mac, and Linux support. Compare scan scope, clone types, supported languages, CI and IDE connections, self-hosting, and price. If you need to inspect or change code, read the…
PMD is free Linux, macOS, self-hosted, and Windows code analysis software with copy-paste detection.
Duplo is free Linux, macOS, and Windows software that finds duplicate source code blocks.
- 4
CCFinderSW
CCFinderSW is free open-source Windows software for token-based code clone detection.
Free planWindows6.4Free plan - 5
CopyPaste
CopyPaste is free Windows and macOS clipboard software with local history and search.
Free planmacOSWindows6.2Free plan - 66.2Free plan
- 7
NiCad
NiCad is free Linux, macOS, self-hosted, and Windows near-miss clone detection software.
Free planLinuxmacOSSelf-hostedWindows6.2Free plan - 8

Simian Similarity Analyzer
Simian is free open-source Linux, macOS, and Windows software for duplicated code blocks.
Free planLinuxmacOSWindows6.2Free plan - 9
Hound
Hound is free API, Linux, macOS, self-hosted, and web source code search software.
WebAPILinuxmacOS6.1 - 10
CloneWorks
CloneWorks is free Linux, macOS, and Windows software for prepared code clone detection.
Free planLinuxmacOSWindows6.0Free plan - 11
copydetect
copydetect is free API, Linux, macOS, self-hosted, and Windows code plagiarism software.
APILinuxmacOSSelf-hosted5.9 - 12
phpcpd-next
phpcpd-next is free open-source API, Linux, and self-hosted software for PHP copy detection.
Free planAPILinuxSelf-hosted5.9Free plan - 13
dskDitto
dskDitto is free Linux and macOS duplicate-file software with terminal and graphical interfaces.
LinuxmacOS5.8 - 14

CodeMatch
CodeMatch is paid Windows software with a free plan and trial for comparing source files.
Windows5.7 - 15
Deckard
Deckard is free open-source API, Linux, macOS, self-hosted, and Windows tree-based clone software.
APILinuxmacOSSelf-hosted5.7 - 16
QuickDup
QuickDup is free open-source Linux, macOS, and Windows structural clone detection software.
LinuxmacOSWindows5.7 - 17
semdup
semdup is free open-source Linux, macOS, self-hosted, and Windows semantic clone detection software.
LinuxmacOSSelf-hostedWindows5.6 - 18
DUDE (DUplicates DEtector)
DUDE is free Linux and Windows GUI software for finding and managing duplicate files.
LinuxWindows5.5 - 19
SourcererCC
SourcererCC is free open-source Linux and self-hosted token-based clone detection software.
LinuxSelf-hosted5.5 - 20

art-dupl
art-dupl is an open-source tool for finding code clones in Go repositories.
5.4 - 21
@kongyo2/similarity-ts
@kongyo2/similarity-ts is a free TypeScript-only analyzer for structurally comparing functions, types and classes across a repository.
5.3 - 22
Amimica
Amimica is free API and self-hosted software for offline repeated-code detection.
APISelf-hosted5.2 - 234.4
Choosing well
Which clone detection method fits your code?
Exact matching catches identical blocks, while fuzzy, token, tree, structural, and semantic methods can find changed or rearranged code. jscpd detects exact clones by default and offers renamed, near-miss, and semantic modes; semdup compares semantic meaning.
CloneWorks supports Type-3 detection and accepts a similarity threshold from 0.0 to 1.0. CCFinderSW uses token-based analysis, and Deckard builds vectors from parse trees. Choose the method that matches the duplication you need to review.
What files, languages, and granularity must it scan?
Check supported languages and whether scanning works at file, function, block, or statement level. NiCad supports file, function, and block analysis; SourcererCC supports files, methods, statements, or blocks.
Simian lists source code, markup, stylesheets, Markdown, and plain text. copydetect uses Pygments tokenization for more than 500 languages, while PMD supports multiple languages and includes its CPD copy-paste detector.
Does it run on Android or your other systems?
No listed tool provides an Android platform entry for this category. Check Linux, Windows, macOS, self-hosted, API, web, and iOS support instead. Algo VPN lists Android and iOS, but it is a VPN rather than a clone detector.
jscpd, copydetect, and Deckard list API or self-hosted options. dcd lists Linux and macOS. A self-hosted option keeps the service on infrastructure you control, subject to setup requirements.
Can it fit CI, editors, or local review?
For automated checks, look for build or workflow support. jscpd can fail a build when duplication passes a configured threshold, semdup provides a GitHub Actions workflow, and art-dupl includes baseline checking for CI.
Local tools differ in output and privacy. dcd supports fuzzy matching and gap tolerance; phpcpd-next produces console, XML, JSON, and SARIF reports. Review the command options and report formats before adding a tool to a pipeline.
Questions people ask
Are code clone detection tools available on Android?
The listed clone detectors do not show Android platform support. Check Linux, Windows, macOS, web, API, or self-hosted options for your workflow.
Which tool supports the most languages?
copydetect says Pygments tokenization supports more than 500 languages. jscpd lists support for 224 languages, while other tools list narrower sets.
What is semantic clone detection?
Semantic detection compares meaning rather than exact token sequences. semdup uses semantic comparison, and jscpd offers semantic detection as an experimental option.
Can clone detection run in CI?
jscpd can fail a build after duplication exceeds a threshold. semdup provides a GitHub Actions workflow, and art-dupl supports baseline checking.
Which tools can run self-hosted?
jscpd, NiCad, copydetect, Deckard, Hound, semdup, SourcererCC, phpcpd-next, and others list self-hosted platforms. Check setup requirements.
Are these clone detection tools free?
Many listed tools have free plans or free pricing. CodeMatch lists a paid model with a free plan and trial, so verify current terms before adoption.
