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.
Git-History Risk Scoring
Paste a real GitHub repo - bus factor and ownership risk from its actual commit history, not a paste-one-file estimate.
Blast Radius Explorer
Paste a real GitHub repo, pick a file, see exactly what breaks if you change it - the real reverse-dependency graph.
Dead Code Finder
Paste a real GitHub repo - functions with zero known callers, traced from the real call graph.
Dependency Hygiene Checker
Paste a real GitHub repo - packages imported in code but never declared in any package.json.
Runs entirely in your browser. Nothing is stored. Free forever.
