Xloc is a native macOS app that lets you easily count lines of code in source files. Simply drag and drop a folder or a single source file to get started -- no need to open Terminal.
Once analysis completes, Xloc will show you results broken down by programming language. We support everything from native languages like Objective-C and C# to web languages such as PHP and TypeScript.
You can even exclude "trivial" lines of code that only include comments and whitespace, and the app includes Shortcuts actions that allow you to use its functionality from Shortcuts workflows. Xloc is the best app for counting lines of code on the Mac.
Pricing
We hate subscriptions as much as you do, so our business model is simple: Xloc is a one-time purchase that costs as much as a cup of coffee in San Francisco. 🌁
We just want to remain self-employed and maintain the development of the app. Thanks for your support. ❤️
Reviews
★★★★★
It works. That's not to say that the bar is low, you're just paying for a good app that does exactly what it says.
- App Store Review
Xloc is compatible with macOS 15 "Sequoia" on Intel and Apple Silicon
Macs.
The minimum system requirement is macOS 10.15 "Catalina".