Chrome Lighthouse Audit How to Run
In this article
Run a Chrome Lighthouse audit directly in Google Chrome by opening Developer Tools, navigating to the Lighthouse panel, selecting categories and device type, then clicking Generate report. This built-in tool analyzes web pages for performance, accessibility, SEO, best practices, and more, providing actionable insights to improve quality.
What Is Chrome Lighthouse?
Chrome Lighthouse is an open-source, automated tool developed by Google to help developers improve web page quality. Integrated directly into Google Chrome’s Developer Tools, it runs audits on web pages and generates detailed reports across key metrics including performance, accessibility, progressive web app (PWA) compliance, SEO, and best practices. Originally created to support Progressive Web App development, Lighthouse has evolved into a comprehensive auditing solution used by developers, testers, and site owners globally. It operates by simulating real-world user conditions, loading the page in a controlled environment, and measuring core web vitals such as Largest Contentful Paint (LCP), First Input Delay (FID), and Cumulative Layout Shift (CLS).
How Lighthouse Works Under the Hood
Lighthouse runs in a headless Chrome environment, meaning it loads your page in a clean, isolated browser session without extensions or cached data that could skew results. When you initiate an audit, Lighthouse navigates to the specified URL, captures performance metrics during page load, and evaluates the page against a predefined set of rules and heuristics. Each audit category—performance, accessibility, SEO—contains dozens of individual checks. For example, the performance category evaluates resource load order, image optimization, JavaScript execution time, and server response speed. Accessibility checks include proper use of ARIA labels, color contrast ratios, and keyboard navigation support.
The tool assigns a score from 0 to 100 for each category, with higher scores indicating better optimization. These scores are weighted based on real-world impact and best practices. Lighthouse also pulls data from Chrome User Experience Report (CrUX) when available, giving insights into how real users experience the page across devices and network conditions. All findings are compiled into a shareable HTML report with specific recommendations, such as deferring non-critical JavaScript or serving images in modern formats like WebP.
How to Run a Lighthouse Audit in Chrome
Running a Lighthouse audit in Chrome is straightforward and requires no additional software. Follow these steps:
- Open Google Chrome and navigate to the web page you want to audit.
- Right-click anywhere on the page and select Inspect to open Developer Tools, or press Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (Mac).
- In the Developer Tools panel, click the Lighthouse tab. If you don’t see it, use the >> menu to reveal hidden tabs and select Lighthouse.
- Under Document, ensure the correct URL is loaded.
- Select the categories to audit: Performance, Accessibility, Best Practices, SEO, and/or Progressive Web App.
- Choose the device type: Desktop or Mobile. Note that mobile emulation applies network and CPU throttling to simulate real device conditions.
- Click Analyze page load to start the audit.
- Wait 30–60 seconds while Lighthouse reloads the page and runs tests.
- Review the generated report, which includes scores, metrics, and actionable suggestions.
The report can be saved as a PDF or shared via a JSON file for integration with other tools.
Using Lighthouse in Other Environments
Beyond Chrome DevTools, Lighthouse can be used in several other ways:
- Chrome Extensions: The Lighthouse extension for Chrome allows audits without opening DevTools, useful for quick checks.
- Node.js CLI: Developers can install Lighthouse via npm (
npm install -g lighthouse) and run audits from the command line, ideal for automation and CI/CD pipelines. - Web.dev: Google’s web.dev site offers a free online Lighthouse scanner where you enter a URL and receive a report without installing anything.
- PageSpeed Insights: This Google service uses Lighthouse behind the scenes, combining lab data with real-world field data from CrUX.
- GitHub Actions and CI Tools: Lighthouse can be integrated into build processes to flag performance regressions before deployment.
Each method has trade-offs: DevTools offers the most control, while web-based tools are more accessible but less customizable.
Common Lighthouse Audit Problems and Fixes
Many users encounter misleading or confusing audit results. Common issues include:
- Flaky performance scores: Small score variations between runs are normal due to network fluctuations. Run multiple tests and use median values.
- Third-party scripts affecting performance: Ads, analytics, and widgets can inflate load times. Use Lighthouse’s Block request URL feature to exclude specific domains and isolate your site’s performance.
- Incorrect mobile simulation: Ensure mobile throttling is enabled when auditing for mobile. Desktop audits don’t simulate slower networks or CPU limitations.
- Ignored manual checks: Some accessibility items require human verification. Lighthouse flags them as “manual” and won’t score them automatically.
- Service worker issues in PWA audits: If your site lacks a service worker or has an invalid manifest, PWA scores will be low. Ensure your PWA assets are correctly configured and served over HTTPS.
Always verify suggested fixes in context—automated tools can’t assess design intent or user experience nuances.
Frequently Asked Questions
Can I run Lighthouse on password-protected pages?
Yes, but only in Chrome DevTools or CLI if you’re already logged in. Lighthouse cannot enter credentials automatically. Navigate to the authenticated page first, then run the audit.
Why are my Lighthouse scores different from PageSpeed Insights?
Lighthouse in Chrome uses lab data from a single run on your machine. PageSpeed Insights uses the same engine but may incorporate field data from real users and run under different conditions, leading to score differences.
Does Lighthouse test for mobile-first indexing?
Yes, especially when you select the mobile device option. It evaluates mobile usability, viewport configuration, tap target sizing, and responsive design—key factors for mobile-first indexing.
Is Lighthouse accurate for single-page applications (SPAs)?
Lighthouse can audit SPAs, but results may vary depending on when the tool captures metrics. For client-side rendered apps, ensure the page is fully interactive before the audit ends. Using the CLI with custom configuration can improve accuracy.
Do I need to run Lighthouse on every page of my site?
Lighthouse audits one URL at a time. To assess an entire site, run audits on key pages like the homepage, product listings, and content hubs. Patterns in results can inform site-wide improvements.
Can Lighthouse detect security issues?
Lighthouse includes basic security checks, such as whether the page is served over HTTPS and if mixed content is present. However, it is not a full security scanner and won’t detect vulnerabilities like XSS or CSRF.