Code Duplication Detector
Paste code and find repeated 4+ line blocks and the percentage of duplicated lines - a single-file preview of what repo-wide duplication analysis catches.
Paste code (one file)
75.0%
Duplicated lines
6
Duplicate blocks (4+ lines)
Repeated at lines 4, 17
if (!res.ok) {
throw new Error("Request failed: " + res.status);
}
return await res.json();Repeated at lines 5, 18
throw new Error("Request failed: " + res.status);
}
return await res.json();
} catch (err) {Repeated at lines 6, 19
}
return await res.json();
} catch (err) {
console.error("Failed to fetch:", err);Repeated at lines 7, 20
return await res.json();
} catch (err) {
console.error("Failed to fetch:", err);
return null;Repeated at lines 8, 21
} catch (err) {
console.error("Failed to fetch:", err);
return null;
}Exact-match block detection - catches literal copy-paste, not renamed-variable clones. The full Repository Analysis engine goes deeper across your whole codebase.
Was this tool helpful?
See this same kind of analysis applied to your whole repository
Call graphs, dead code, blast radius, and a health score. Results in 60 seconds, free.
Related tools
See all Repository Intelligence tools →Dependency Graph Visualizer
Paste package.json - dependencies grouped by type, plus packages listed twice with conflicting versions.
Cargo.toml Dependency Auditor
Paste Cargo.toml - every dependency listed, with wildcard or bare-major version ranges flagged.
Cyclomatic Complexity Calculator
Paste one function - get its cyclomatic complexity score, the same signal behind Repository Analysis.
Code Churn Visualizer
Paste git log churn output - a ranked bar chart of your highest-churn files.
Technical Debt "Interest Rate" Estimator
When does fixing it properly pay for itself?
Runs entirely in your browser. Nothing is stored. Free forever.
