Line Counter
Count code, comment and blank lines by language for pasted code, files or a whole project ZIP.
Open toolEstimate the cyclomatic complexity of each function in pasted JavaScript, TypeScript, Python or C-like code.
Cyclomatic complexity counts the independent paths through a function: one, plus one for every if, loop, case, catch, boolean && / || and ternary. Functions that score high are harder to test and more likely to hide bugs, so the number is a quick way to find refactoring candidates. This tool scans pasted code, finds each function and lists its estimated complexity with a simple/moderate/complex rating, its branches, parameter count and deepest nesting.
It’s an estimate made by scanning the text after blanking out comments and strings, not by fully parsing the language, so unusual syntax can be missed and dedicated analysers (ESLint’s complexity rule, radon, Lizard) may differ by a point or two. Nested functions are scored on their own. The code is never run. Everything runs in your browser. Your data is never uploaded, logged or stored.
Your code or text
JavaScript / TypeScript, Python, Java, C#, C/C++, Go, PHP
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Ready to download or copy
Pick the language and paste one or more functions.
Read the table, highest complexity first.
Split up functions rated complex, or add tests for each branch.
Zero-upload architecture
Free, with no sign-up or watermark · Your files stay on your device
Launch the app and add your file. There is nothing to install and no account to create.
Read the table, highest complexity first.
Split up functions rated complex, or add tests for each branch.
Count code, comment and blank lines by language for pasted code, files or a whole project ZIP.
Open toolBeautify minified or messy JavaScript with configurable indentation and brace style, plus a syntax check that parses the code without running it.
Open toolCompare two texts or code snippets line by line, word by word or character by character, side by side or as a unified diff.
Open toolPretty-print, beautify and validate JSON with precise error locations, key sorting and custom indentation.
Open tool