# Inspect element on an iPhone

> Inspect element on an iPhone: use Safari’s Web Inspector with a Mac by cable or Wi-Fi, inspect Chrome on iPhone, and see what works with no computer.

Canonical page: https://sitepeel.dev/guides/inspect-element-on-iphone/

To inspect element on an iPhone, turn on Web Inspector in Settings > Apps > Safari > Advanced, connect the iPhone to a Mac with a cable and open the page in Safari. On the Mac, open Safari’s Develop menu, choose your iPhone, then the page. The iPhone itself has no built-in Inspect Element.

Published: 2026-11-11

Tool used in this guide: [Responsive viewer extension](https://sitepeel.dev/responsive-viewer-chrome-extension/index.md)

Free website tool for this task: [Responsive checker](https://sitepeel.dev/free-tools/responsive-checker/index.md) (https://sitepeel.dev/free-tools/responsive-checker/)

## In short

- Apple’s way needs a Mac: the tools open there, the page stays on the iPhone
- A cable is needed the first time; after that it can work over Wi-Fi
- Chrome on iPhone can be inspected the same way
- With no computer, a Safari extension gives a smaller set of tools

## How to use it

1. **Turn on Web Inspector** On the iPhone, open Settings > Apps > Safari > Advanced and turn on Web Inspector.
2. **Turn on the Develop menu** On the Mac, open Safari > Settings > Advanced and tick Show features for web developers.
3. **Connect the iPhone** Plug the iPhone into the Mac with a cable, unlock it and tap Trust if it asks.
4. **Open the page** Open the page in Safari on the iPhone and leave it on screen.
5. **Pick it on the Mac** In Safari on the Mac, open Develop, choose your iPhone, then the page. Web Inspector opens.

## Ways to inspect a page on an iPhone

What each way needs, and what it gives you

| Way | What you need | What you get |
| --- | --- | --- |
| Safari’s Web Inspector | A Mac and a cable (Wi-Fi after the first time) | The full tools: elements, styles, console and network |
| Chrome on iPhone, inspected from a Mac | The same, plus a setting in Chrome | The same tools, for Chrome’s tabs |
| A Safari extension on the iPhone | An app from the App Store | A small panel on the phone itself |
| `chrome://inspect` in Chrome on iPhone | Nothing else | Console messages only |
| Responsive Design Mode on a computer | Safari on a Mac, or device mode in Chrome | The page at iPhone size, not a real iPhone |

Good to know: On iOS 17 and earlier, the Web Inspector switch is at Settings > Safari > Advanced.

## Inspect without the cable

- Connect by cable once, as in the steps above.
- On the Mac, open Develop, point at your iPhone and choose Connect via Network.
- Unplug the cable. The iPhone stays in the Develop menu while both are on the same network.
- Closing the tab on the iPhone closes its inspector window on the Mac.

## Inspect Chrome on an iPhone

Chrome on iPhone shows pages with Apple’s WebKit, as Safari does, so the Mac’s Web Inspector can read its tabs too.

- In Chrome on the iPhone, open Settings > Content Settings, turn on Web Inspector and restart Chrome.
- Connect the iPhone to the Mac and open the page in Chrome.
- In Safari on the Mac, open Develop, choose the iPhone and pick the page.
- It needs iOS 16.4 or later and Chrome 115 or later.
- For console messages alone, open `chrome://inspect` in a Chrome tab, tap Start Logging and use the page in another tab.

## Inspect element on iPhone without a computer

Safari on iPhone has no Inspect Element and no way to view a page’s source. Safari extensions from the App Store, such as Web Inspector, add a small panel for a page’s elements and console.

- You give the extension access to the pages you inspect, so check who makes it first.
- The panel is small, and it does less than the tools on a Mac.
- Apple’s own Web Inspector needs a Mac. Windows and Linux can’t run it.

Tip: Only need a page’s fonts or colors? Paste its link into Sitepeel’s free font finder or color palette tool in your phone’s browser.

- [Font finder: the fonts a page uses, free](https://sitepeel.dev/free-tools/font-finder/index.md)
- [Color palette: the colors a page uses, free](https://sitepeel.dev/free-tools/color-palette-generator/index.md)

## Check a page at iPhone size instead

If the question is how a layout looks on an iPhone, you may not need the phone. Paste the link into Sitepeel’s free responsive checker to see the page on phones, tablets and laptops side by side. It shows screen sizes, not a real iPhone, so test touch and the keyboard on the device.

- [Check a website on every screen size](https://sitepeel.dev/guides/check-website-on-every-screen-size/index.md)
- [Fix sideways scrolling on mobile](https://sitepeel.dev/guides/fix-horizontal-scroll-mobile/index.md)

## When the iPhone doesn’t show up

Common Web Inspector problems and their fixes

| Problem | Fix |
| --- | --- |
| No Develop menu on the Mac | Tick Show features for web developers in Safari > Settings > Advanced |
| The iPhone isn’t in the Develop menu | Unlock it, tap Trust, and check Web Inspector is on in its Settings |
| The iPhone is listed with no pages | Open the page in Safari on the iPhone and leave it on screen |
| Chrome’s tabs are missing | Turn on Web Inspector in Chrome’s Content Settings, then restart Chrome |
| The inspector window closed | The tab was closed on the iPhone. Open it and pick it again |

## Questions and answers

### How can I inspect an element on my iPhone without using a computer?

Safari on iPhone has no Inspect Element. A Safari extension from the App Store, such as Web Inspector, adds a small elements and console panel. For the full tools, connect the iPhone to a Mac and use Safari’s Develop menu.

### Is there a way to use Inspect Element on mobile?

Yes, with a computer. Pages on an iPhone are inspected from Safari on a Mac. Pages on Android are inspected from Chrome on any computer, at chrome://inspect. On the phone alone you get only small add-on tools.

### Can I inspect element on an iPhone with a Windows PC?

Not with Apple’s tools: Web Inspector is part of Safari on a Mac. On Windows, use device mode in Chrome or Edge to see the page at iPhone size, or a Safari extension on the iPhone itself.

### Can I view an HTML file on my iPhone?

Yes. Tap an .html file in the Files app and it opens as a page. To read the code of a live page, inspect it from a Mac: Safari on iPhone has no view-source option.

### Does inspecting a page on my iPhone change the website?

No. Web Inspector changes only the copy of the page on your iPhone. Other people see the site as it was, and a reload brings your copy back to the original.

## Further reading

- [Apple Developer: inspecting iOS and iPadOS](https://developer.apple.com/documentation/safari-developer-tools/inspecting-ios)
- [Apple Developer: enabling features for web developers in Safari](https://developer.apple.com/documentation/safari-developer-tools/enabling-developer-features)
- [Apple Developer: the Develop menu (Connect via Network)](https://developer.apple.com/documentation/safari-developer-tools/develop-menu)
- [Chrome for Developers: debugging websites in Chrome on iOS 16.4+](https://developer.chrome.com/blog/debugging-chrome-on-ios)
- [Chromium Blog: debugging websites in Chrome for iOS (chrome://inspect)](https://blog.chromium.org/2019/03/debugging-websites-in-chrome-for-ios.html)
- [App Store: Web Inspector, a Safari extension](https://apps.apple.com/us/app/web-inspector/id1584825745)

## Related pages

- [Inspect element on Android](https://sitepeel.dev/guides/inspect-element-on-android/index.md): Inspect element on Android: connect mobile Chrome to a computer with chrome://inspect and USB debugging, and see what you can do on the phone itself.
- [Inspect element on a Mac](https://sitepeel.dev/guides/inspect-element-on-mac/index.md): Inspect element on a Mac in Chrome, Safari, Firefox and Edge: the shortcuts, how to turn on Safari’s Develop menu, and why Inspect is missing or greyed out.
- [Inspect element shortcuts](https://sitepeel.dev/guides/inspect-element-shortcut/index.md): The inspect element shortcut for Chrome, Edge, Firefox and Safari on Windows, Mac, Linux and Chromebook, and what F12, Ctrl+Shift+I and Ctrl+Shift+C each open.
- [Check a site on every screen size](https://sitepeel.dev/guides/check-website-on-every-screen-size/index.md): See a website on phones, tablets, laptops and monitors side by side, free. Find overflow, tiny text and small tap targets, then test real devices.
- [Fix mobile horizontal scroll](https://sitepeel.dev/guides/fix-horizontal-scroll-mobile/index.md): Find the element that makes your mobile site scroll sideways, fix the CSS cause and retest. Includes a console snippet and a table of common fixes.
