The inspect shortcut in Mac browsers is Command + Option + I, which opens the developer tools beside the page. Command + Option + C goes straight to element picking, so you can click any part of the page and see its code. On Windows, F12 or Ctrl + Shift + I does the same in Chrome, Edge and Firefox.
Safari on a Mac hides these tools until you turn them on once, explained below. Inspect is used by web designers, students learning HTML, and anyone checking why a page looks wrong. It is also handy for reading the exact size of an image or font on a site you like before recreating a similar layout.
Quick facts
Mac, Chrome and Firefox
Command + Option + IMac, pick element
Command + Option + CWindows
F12 or Ctrl + Shift + IWindows, pick element
Ctrl + Shift + CConsole
Ctrl + Shift + JClose tools
Same keys again
Inspect shortcut in Mac and Windows browsers
| Browser | Windows | Mac |
|---|---|---|
| Chrome | F12 or Ctrl + Shift + I | Command + Option + I |
| Edge | F12 or Ctrl + Shift + I | Command + Option + I |
| Firefox | F12 or Ctrl + Shift + I | Command + Option + I |
| Safari | Not on Windows | Command + Option + I after enabling |
| Pick an element | Ctrl + Shift + C | Command + Option + C |
Turn on inspect in Safari
- Open Safari and choose Settings from the Safari menu.
- Go to the Advanced tab.
- Tick Show features for web developers, or Show Develop menu in menu bar on older versions.
- Now Command + Option + I opens the Web Inspector.
You only need to do this once per Mac.
Inspect an element on the page
Right click any part of a web page and choose Inspect. The tools open with that element highlighted in the code. With the keyboard, press Ctrl + Shift + C on Windows or Command + Option + C on a Mac, then hover over the page; each part lights up, and clicking selects it.
Useful panels in the developer tools
| Panel | Use |
|---|---|
| Elements | See and try changes to HTML and CSS |
| Console | See errors; Ctrl + Shift + J on Windows |
| Network | Check which files load and how fast |
| Device toolbar | See the page at phone width |
The device toolbar opens with Ctrl + Shift + M in Chrome and Edge on Windows once the tools are open, which is handy for checking a site on mobile sizes.
When the inspect shortcut does not open
| Problem | Fix |
|---|---|
| Safari does nothing | Enable web developer features in Safari settings |
| F12 changes volume on a laptop | Press Fn + F12 or use Ctrl + Shift + I |
| Blocked on a work computer | Your organisation can disable developer tools |
| Opens in a separate window | Use the three dot menu in the tools to dock it to the side |
Frequently asked questions
What is the inspect shortcut on a Mac?
What is the inspect element shortcut on Windows?
What is the shortcut for inspect in Chrome?
Why does inspect not work in Safari?
Developer features must be turned on in Safari settings first.
Do changes in inspect change the website?
No. They only affect your screen until you reload.