Skip to content

LGTM vs CodeQL: Which is Better in 2026?

Choosing between LGTM and CodeQL comes down to understanding what each tool does best. This comparison breaks down the key differences so you can make an informed decision based on your specific needs, not marketing claims.

Bottom line: CodeQL is our overall pick for security workflows. Pick LGTM if you need a fully free option.

··Methodology
Editor reviewed0 verified reviews comparedPricing checked May 2026

Short on time? Here's the quick answer

We've tested both tools. Here's who should pick what:

LGTM

Code analysis platform integrated into GitHub for identifying security vulnerabilities.

Best for you if:

  • • You need something completely free
  • A code analysis platform that identified security issues and code quality problems.
  • Powered by CodeQL technology, it integrated with GitHub for continuous analysis.

CodeQL

Discover vulnerabilities across a codebase with industry-leading semantic code analysis.

Best for you if:

  • Semantic code analysis engine for vulnerability discovery.
  • Allows querying code like data to find security flaws.
At a Glance
LGTMLGTM
CodeQLCodeQL
Starts at
Free
$30/month per committerCode Security
Best For
SecuritySecurity
Rating
--

Choose LGTM or CodeQL?

LGTM

Choose LGTM if

Code analysis platform integrated into GitHub for identifying security vulnerabilities.

  • Integrated directly into GitHub for seamless workflow (now via GitHub code scanning)
  • Utilized powerful CodeQL analysis engine
  • Automated detection of security issues
  • You want a fully free tool (CodeQL requires payment)
CodeQL

Choose CodeQL if

Discover vulnerabilities across a codebase with industry-leading semantic code analysis.

  • Powerful code analysis
  • Security focus
  • GitHub integration
FeatureLGTMCodeQL
Pricing ModelFreeFreemium
User RatingNo ratings yetNo ratings yet
Categories
SecurityDeveloper Tools
SecurityDeveloper Tools

In-Depth Analysis

LGTMLGTM

Code analysis platform integrated into GitHub for identifying security vulnerabilities.

Strengths

  • +Integrated directly into GitHub for seamless workflow (now via GitHub code scanning)
  • +Utilized powerful CodeQL analysis engine
  • +Automated detection of security issues
  • +Provided code quality insights

Weaknesses

  • -No longer available as a standalone product
  • -Requires migration to GitHub code scanning for continued use of its core functionality
  • -Advanced build configurations might require manual migration effort

Key features

Automated code analysis for security vulnerabilitiesCode quality problem detectionIntegration with GitHub for pull request analysisCode quality badgesQuery console for custom analysis (deprecated)Historical analysis of repositories (deprecated)
Starts at Free

CodeQLCodeQL

Discover vulnerabilities across a codebase with industry-leading semantic code analysis.

Strengths

  • +Powerful code analysis
  • +Security focus
  • +GitHub integration
  • +Custom queries
  • +Free for public repos

Weaknesses

  • -Learning curve
  • -Query writing complex
  • -Slow scans
  • -Resource intensive
  • -False positives

Key features

Semantic code analysisSecurity queriesCustom queriesVulnerability detectionGitHub integrationMulti-language
Starts at $30/month per committer

Pricing: LGTM vs CodeQL

PlanLGTMCodeQL
Tier 1N/A
Free
Free (Public repos)
Tier 2N/A
$30 month per committer
Code Security
Tier 3N/A
$19 month per committer
Secret Protection

Pricing verified from each vendor's public pricing page. Compare in detail on LGTM pricing and CodeQL pricing.

Who Should Use What?

On a budget?

LGTM is free. CodeQL is freemium.

Go with: LGTM

Want the highest-rated option?

Neither has user reviews yet.

Go with: LGTM

Value user reviews?

Neither has user reviews yet.

Go with: CodeQL

3 Questions to Help You Decide

1

What's your budget?

LGTM is free. CodeQL is freemium. Go with LGTM if free matters most.

2

What's your use case?

Both are security tools. Compare their specific features to decide.

3

How important are ratings?

Neither has user reviews yet.

Key Takeaways

CodeQL

  • Free tier available
  • Our pick for this comparison

LGTM

  • Completely free

The Bottom Line

CodeQL is our pick. That said, LGTM is free, hard to beat on price.

Frequently Asked Questions

Is LGTM or CodeQL better?

CodeQL is rated in our evaluation. LGTM is free and CodeQL is freemium.

What are LGTM and CodeQL used for?

LGTM: Code analysis platform integrated into GitHub for identifying security vulnerabilities.. CodeQL: Discover vulnerabilities across a codebase with industry-leading semantic code analysis..

What does LGTM cost vs CodeQL?

LGTM is completely free. CodeQL is freemium (free tier + paid plans). Visit their websites for detailed pricing.

Related Comparisons & Resources

Compare other tools