How do I measure code complexity online?
Paste your JavaScript or TypeScript code and click Analyze to see cyclomatic complexity, cognitive complexity, nesting depth, and maintainability index for every function. Each function gets a risk rating with actionable refactoring recommendations. All analysis runs in your browser — your code never leaves your device.
Code Complexity Analyzer
Paste JavaScript or TypeScript code to analyze cyclomatic complexity, cognitive complexity, nesting depth, and maintainability index per function. 100% client-side — your code never leaves your browser.
Frequently Asked Questions
What is cyclomatic complexity and why does it matter?
What is cognitive complexity and how is it different from cyclomatic?
What is the maintainability index and how is the grade calculated?
Is this tool accurate enough for production use?
Related Inspect Tools
Color Contrast Checker
Check WCAG 2.1 color contrast ratios for AA and AAA accessibility compliance
JSON Schema Validator
Validate JSON data against JSON Schema (Draft 07) with detailed error reporting and schema generation
IP / CIDR Toolkit
Subnet calculator, VLSM divider, IP range to CIDR converter, and IP address classifier
Open Graph Preview
Preview and debug Open Graph, Twitter Card, and SEO meta tags for social sharing