Open Chrome DevTools Stay organized with collections Save and categorize content based on your preferences.
There are many ways to open Chrome DevTools. Choose your favorite way from this comprehensive reference.
You can access DevTools using Chrome UI or keyboard:
- Fromdrop-down menus in Chrome.
- With dedicatedshortcuts that openElements,Console, or the last panel you used.
Additionally, learn how toauto-open DevTools for every new tab.
Open DevTools from Chrome menus
If you prefer UI, you can access DevTools from drop-down menus in Chrome.
Open the Elements panel to inspect the DOM or CSS
To inspect, right-click an element on a page and selectInspect.
DevTools opens theElements panel and selects the element in the DOM tree. In theStyles tab, you can see CSS rules applied to the selected element.
Open the last panel you used from Chrome's main menu
To open the last DevTools panel, click the
button to the right of the address bar and selectMore Tools >Developer Tools.Alternatively, you can open the last panel with a shortcut. See the next section to learn more.
Open panels with shortcuts: Elements, Console, or your last panel
If you prefer keyboard, press a shortcut in Chrome depending on your operating system:
OS | Elements | Console | Your last panel |
---|---|---|---|
Windows or Linux | Ctrl +Shift +C | Ctrl +Shift +J | F12Ctrl +Shift +I |
Mac | Cmd +Option +C | Cmd +Option +J | Fn +F12Cmd +Option +I |
Here's an easy way to memorize the shortcuts:
- C stands for CSS.
- J for JavaScript.
- I designates your choice.
TheC shortcut opens theElements panel in
inspector mode. This mode shows you helpful tooltips when you hover over elements on a page. You can also click any element to view its CSS in theElements >Styles tab.For the full list of DevTools shortcuts, seeKeyboard shortcuts.
Auto-open DevTools on every new tab
Run Chrome from the command line and pass the--auto-open-devtools-for-tabs
flag:
Quit any running Chrome instance.
Key point: This flag works only for the first Chrome instance you open. If it doesn't work for you, for example, on Windows, make sure to end any residing Chrome processes from the Task Manager.Run your favorite terminal or command line application.
Depending on your operating system, run the following command:
macOS:
open-a"Google Chrome"--args--auto-open-devtools-for-tabs
Windows:
startchrome--auto-open-devtools-for-tabs
Linux:
google-chrome--auto-open-devtools-for-tabs
DevTools will automatically open for every new tab until you close Chrome.
What's next?
Success: Congratulations! You've successfully unlocked the power of Chrome DevTools.Next, watch the following video to learn some useful shortcuts and settings for quicker DevTools navigation.
For a more hands-on learning experience, seehow to customize DevTools.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2018-12-14 UTC.