Copydetect: Free Code Plagiarism Detection
github.com · checked 2 Oct 2026
Free, self-hosted code plagiarism checker that compares directories and creates HTML reports.
How it plugs in
Signal on Code Clone Detection Tools6.3#4 of 23
Copydetect compares code folders, highlights matching slices, and writes an HTML report. It uses Winnowing fingerprints and Pygments tokenization, covering more than 500 detectable languages. You can run it from a command line or Python code, set reference and boilerplate folders, and adjust matching thresholds. It is free, self-hosted, MIT-licensed software for Python 3.7 or newer.

Review
In a line
Copydetect is a code plagiarism detection tool for comparing directories. It produces an HTML report that highlights copied sections.
What it does
Run `copydetect -t DIRS` to search supplied folders recursively and compare their files. The tool uses token filtering and Winnowing document fingerprints to find likely copied code.
You can provide separate reference folders, such as earlier submissions, and boilerplate folders whose matches should be ignored. Noise, guarantee, and display thresholds control which matches appear in reports. Reports can be saved to a chosen path, with truncated highlighted code and optional custom CSS.
How it connects
Copydetect runs on Linux, macOS, and Windows as self-hosted Python software. Installation uses pip and requires Python 3.7 or later. It also offers a Python API with CopyDetector, CodeFingerprint, file comparison, and HTML report functions.
Settings can come from command-line options or a JSON configuration file. Pygments tokenization covers more than 500 languages that Pygments can detect. The project is open source under the MIT License.
Good fit
Copydetect suits educators and others who need to compare code repositories or submissions on their own machines. It fits workflows that need reference folders, boilerplate exclusions, adjustable matching rules, and HTML results.
PyPI classifies it for Education and lists it as a Beta development-status project.
Watch for
Copydetect reports likely plagiarism, but it does not prove that plagiarism happened. Its documentation also says dedicated attempts to evade detection may not be caught.
There is no listed CI or IDE integration. Check that a self-hosted Python tool and command-line or Python-based workflow match your setup before choosing it.
Pricing
Copydetect is free under its free plan. There is no free trial, and no paid plan is listed.
Verdict
Choose Copydetect if you need a no-cost way to compare code folders, inspect highlighted matches, and control reference or boilerplate directories. Its broad Pygments language coverage and Python interface add flexibility for education workflows.
Avoid relying on it as final proof of misconduct. The project is marked Beta, has no listed CI or IDE connection, and warns that deliberate evasion can defeat detection.
Our take
Copydetect is a practical choice for educators or developers who want free, self-hosted comparisons of code directories. It supports many tokenized languages, reference and boilerplate folders, adjustable thresholds, and both command-line and Python use. The trade-offs are important: results indicate likely copying rather than proving it, evasion may go undetected, and there is no listed CI or IDE integration. Its Beta status also calls for a check of project suitability before adopting it for formal decisions.
- Free plan with no charge
- Runs self-hosted on Linux, macOS, and Windows
- Supports 500+ Pygments-detectable languages
- Reference and boilerplate folders are supported
- Command-line and Python APIs are available
- Does not prove plagiarism occurred
- May miss deliberate evasion
- No listed CI or IDE integration
- Classified as a Beta project
- Pick it ifEducators comparing code submissions; Self-hosted repository comparisons; Python users needing HTML reports
- Skip it ifYou need proof of plagiarism rather than likely matches; You require built-in CI or IDE integration; You want a non-self-hosted service
Pricing
Copydetect has one free plan. No paid tier or free trial is listed.
Questions
What is Copydetect?
Copydetect compares code directories and creates an HTML report showing matching code slices.
How much does Copydetect cost?
It is free. The facts list a free plan and no free trial or paid plan.
Which operating systems can run it?
It is classified as operating-system independent and can run on Linux, macOS, and Windows with Python 3.7 or newer.
Which programming languages does it support?
Pygments tokenization gives it support for more than 500 languages that Pygments can detect and tokenize.
Can I compare against earlier submissions?
Yes. You can supply separate reference directories, including previous submissions, and exclude matches from boilerplate directories.
Does Copydetect prove plagiarism?
No. Its documentation says it identifies likely plagiarism, cannot guarantee that plagiarism occurred, and may miss dedicated evasion.
Can I use Copydetect from Python?
Yes. Its Python API includes CopyDetector, CodeFingerprint, file comparison, and HTML report generation.