RESPONSIVE

How to inspect element on Android

To inspect element on Android, turn on USB debugging in the phone’s Developer options, connect it to a computer with a cable and open chrome://inspect#devices in Chrome on the computer. Click Inspect next to the phone’s tab to open DevTools for it. Chrome on Android has no Inspect Element of its own.

“Inspect Android from your computer.” A phone with USB debugging on is cabled to a browser window showing chrome://inspect and an Inspect button that opens a code panel.
Chrome on a computer inspects the page on the phone.

In short

  • Chrome on a computer inspects Chrome on the phone over a USB cable
  • Turn on Developer options and USB debugging on the phone first
  • On the phone alone, view-source: shows a page’s HTML, read-only
  • Firefox on Android works the same way, from about:debugging
On this page8
  1. Step by step
  2. Ways to inspect a page on Android
  3. What you can do from the computer
  4. Inspect on the phone itself
  5. Firefox on Android
  6. When the phone doesn’t appear
  7. Only checking the mobile layout?
  8. Questions

Step by step

  1. Turn on Developer options

    On the phone, open Settings > About phone and tap Build number seven times.

  2. Turn on USB debugging

    Open Developer options in Settings and turn on USB debugging.

  3. Open chrome://inspect

    On the computer, open chrome://inspect#devices in Chrome and keep Discover USB devices ticked.

  4. Connect the phone

    Plug it in with a USB cable and accept the USB debugging prompt on the phone.

  5. Click Inspect

    Open the page in Chrome on the phone, then click Inspect under its name on the computer.

Ways to inspect a page on Android

What each way needs, and what it gives you
WayWhat you needWhat you get
Chrome remote debuggingA computer with Chrome and a USB cableFull DevTools for the phone’s tab
Firefox remote debuggingA computer with Firefox and a USB cableFirefox’s full tools for the phone’s tab
view-source: in the address barNothing elseThe page’s HTML, read-only
Eruda, on a site you buildOne script tag in your own pageA small console and elements panel on the phone
Device mode on a computerChrome, Edge or FirefoxThe page at phone size, not a real phone
Responsive viewer extension in the Sitepeel interface
Responsive viewer extension in actionExplore the tool

What you can do from the computer

  • DevTools on the computer works on the phone’s page: Elements, Console, Network and the rest.
  • Click Toggle Screencast to see the phone’s screen inside DevTools. Your clicks become taps.
  • Type an address in Open tab with url to open a new tab on the phone.
  • Pages shown inside apps are listed too, when the app allows debugging.

Inspect on the phone itself

A phone has no F12 key, and Chrome on Android has no Inspect in its menu. What works with no computer:

  • Type view-source: before the address, as in view-source:https://example.com, to read the HTML.
  • Use Find in page in Chrome’s menu to search that source.
  • On your own site, one script tag adds Eruda, an open-source console for mobile browsers.
  • Apps that promise Inspect Element are in the Play Store. Check who makes one before you install it.

Firefox on Android

  • On the phone, turn on USB debugging, then Remote debugging via USB in Firefox’s settings.
  • On the computer, open about:debugging in Firefox and click Enable USB Devices.
  • Connect the cable and click Connect next to the phone’s name.
  • Click Inspect next to the tab you want.

When the phone doesn’t appear

Common remote debugging problems and their fixes
ProblemFix
The phone isn’t listedPlug it straight into the computer, not a hub, and unlock both screens
It shows as OfflineAccept the USB debugging prompt on the phone
No prompt on the phoneReplug the cable. If that fails, choose Revoke USB debugging authorizations in Developer options and try again
Windows doesn’t see the phoneInstall the phone maker’s USB driver
The cable only chargesUse a cable that can also move files

Only checking the mobile layout?

To see how a page looks at phone sizes, you don’t need a phone or a cable. Paste the link into Sitepeel’s free responsive checker. It shows the page on phones, tablets and laptops side by side and outlines content wider than the screen, tiny text and small tap targets.

Questions

How can I inspect elements in Chrome on Android?

Connect the phone to a computer with a USB cable, with USB debugging on. Open chrome://inspect#devices in Chrome on the computer and click Inspect next to the phone’s tab. DevTools opens for that page.

How do I enable Chrome Inspect on my Android device?

Tap Build number seven times in Settings > About phone to show Developer options, then turn on USB debugging there. Connect the phone to a computer, open chrome://inspect#devices in Chrome and accept the prompt on the phone.

How to F12 on mobile?

Phones have no F12 key, and mobile browsers have no built-in developer tools. Connect the phone to a computer for full DevTools, or type view-source: before an address in Chrome on Android to read the page’s HTML.

Which Android browser supports inspect element?

Chrome and Firefox both do, through a computer: Chrome at chrome://inspect and Firefox at about:debugging. Neither has an Inspect option on the phone itself.

How do I inspect elements on an iPhone?

Turn on Web Inspector in Settings > Apps > Safari > Advanced, connect the iPhone to a Mac with a cable and pick the page from the Develop menu in Safari on the Mac.

TAKE A CLOSER LOOK

Your next starting point is already on the web.

Inspect it. Understand it. Build something of your own.

Add to ChromeFree installTry the free tools