---
schema_version: "1"
id: da57ad49d076291ec9fa36b83ba5b482d6ce702527cc9078452e602c9c6ff9c7
title: Lightning Locker Tools
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lwc/lightning-components-security/guides/locker/locker-tools.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-components-security/guide/locker-tools.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 257b056a69d81c1a27b1d0254547156a2251ec260025dac4bb5fe6aae6e048da
products:
  - Security for Lightning Components
  - lwc
---
# Lightning Locker Tools

Lightning Locker tools help you develop secure code that is compatible and runs efficiently with Lightning Locker. Access these tools in the Tools area of the [DX Developer Center](https://developer.salesforce.com/developer-centers/developer-experience) and the [LWC Developer Center](https://developer.salesforce.com/developer-centers/lightning-web-components).

## Lightning Locker API Viewer

Use the [Lightning Locker API Viewer](https://developer.salesforce.com/tools/locker-service-viewer) to see which standard DOM APIs are supported by Lightning Locker for the most complex wrappers: `SecureDocument`, `SecureElement`, and `SecureWindow`.

![Locker API Viewer UI with list of APIs supported by SecureDocument.](https://developer.salesforce.com/media/locker_api_viewer_guide.png '{"class": "image-framed"}')

For more information about using this tool, see [Lightning Locker API Viewer Overview](https://developer.salesforce.com/docs/platform/lightning-components-security/guide/locker-api-viewer.md).

## Locker Console

Use [Locker Console](https://developer.salesforce.com/tools/locker-service-console) to check your JavaScript code’s compatibility with Lightning Locker, and compare how it runs with Lightning Locker enabled and disabled.

Evaluate JavaScript code for issues or benchmark code without creating an app.

![Locker Console UI.](https://developer.salesforce.com/media/locker_console_guide.png '{"class": "image-framed"}')

To evaluate or benchmark your JavaScript code, paste or type it into the console (1). Enable or disable Locker and Strict CSP (2). To run the code that’s displayed in the console, click **Evaluate** (3). To run code with and without Locker and view relative performance metrics, click **Benchmark**. To clear the displayed results, click **Clear Results**.

For more information about using Locker Console, see [Evaluate JavaScript Code Compatibility with Lightning Locker](https://developer.salesforce.com/docs/platform/lightning-components-security/guide/locker-console-evaluate.md) and [Benchmark Lightning Locker Effect on JavaScript Code](https://developer.salesforce.com/docs/platform/lightning-components-security/guide/locker-console-benchmark.md).
