User Agents

Web browsers and everyday web tech, explained

How to Capture Element Screenshots on iOS Safari

· 5 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Capturing a screenshot of a specific element on iOS Safari (like a single image, a paragraph, or a button) is not a built-in feature, but you can achieve it using the Web Inspector on a Mac or by using a shortcut with the built-in screenshot tool. This guide covers both methods, with the Mac method being the most precise. You'll need a Mac with Safari's Develop menu enabled, or just your iPhone if you use the cropping method.

What You'll Need

  • An iPhone or iPad running iOS 13 or later (for the cropping method).
  • A Mac with Safari (for the Web Inspector method).
  • A USB cable or same Wi-Fi network to connect the iPhone to the Mac.
  • In Safari on your Mac, go to Safari > Settings > Advanced and check "Show features for web developers" to enable the Develop menu.

Step-by-Step

Method 1: Using Safari Web Inspector (Mac)

  1. Connect your iPhone to your Mac using a USB cable, or ensure both devices are on the same Wi-Fi network.
  2. Enable Web Inspector on iPhone: Go to Settings > Safari > Advanced and toggle on "Web Inspector".
  3. Open Safari on your iPhone and navigate to the webpage containing the element you want to capture.
  4. Open Safari on your Mac and click the Develop menu in the top menu bar. You should see your iPhone listed under the devices. Hover over it and select the webpage name.
  5. The Web Inspector will open on your Mac, showing the HTML and CSS of the page. In the top-left corner of the inspector, click the "Select an element" icon (a square with a cursor arrow).
  6. Click the element on the page (on the Mac's preview) to highlight it in the HTML. The element will be selected in the DOM tree.
  7. Right-click (or Ctrl-click) the selected element in the DOM tree and choose "Capture Screenshot". A screenshot of that element will be saved to your Mac's Downloads folder.

Method 2: Using iOS Built-in Screenshot and Crop (No Mac)

  1. Navigate to the page in Safari on your iPhone and scroll to the element you want to capture.
  2. Take a full-page screenshot by pressing the Side button + Volume Up button (on Face ID iPhones) or Side button + Home button (on older models).
  3. Tap the screenshot thumbnail that appears in the bottom-left corner to open the editing screen.
  4. Tap the "Full Page" tab at the top of the editor (if you want the whole page) or use the crop tool to select just the element. For a precise element, use the crop tool by dragging the corners to isolate the element.
  5. Tap "Done" and choose "Save to Photos" or "Save PDF to Files" (for full page). The cropped image will be saved to your Photos.

Common Mistakes

  • Not enabling the Develop menu on Mac – without it, you cannot access Web Inspector.
  • Forgetting to enable Web Inspector on iPhone – the device won't appear in Safari's Develop menu.
  • Selecting the wrong element – if you click the text but the screenshot captures a larger area, you might have selected a parent element. Use the DOM tree to verify the exact element.
  • Using the crop method on a page that scrolls – if the element is below the fold, the screenshot may not include it unless you use the full-page capture.

Tips

  • Use the "Capture Screenshot" option in Web Inspector for pixel-perfect results, as it captures exactly the element's bounding box.
  • If the element has a hover effect or dynamic content, trigger it before capturing (e.g., open a dropdown) so the screenshot includes the active state.
  • For elements like images, you can also long-press the image in Safari and choose "Add to Photos" to save the image directly, though this only works for images, not other elements.
  • When using the crop method, enable the grid in the editor (tap the crop icon) to align the crop precisely.

Troubleshooting

  • iPhone not showing in Develop menu: Ensure both devices are on the same Wi-Fi (if using wireless) or the USB cable is properly connected. Restart Safari on both devices and re-check the settings.
  • "Capture Screenshot" is greyed out: This can happen if the element is not visible on the screen (e.g., scrolled out of view). Scroll the element into view in the preview pane before capturing.
  • The screenshot captures the entire page instead of the element: You may have selected the or element. In the DOM tree, click the specific element you want, not a parent container.
  • Web Inspector shows a blank page: Refresh the page on your iPhone, then try again. Also, make sure you're not in private browsing mode, which can sometimes cause issues.
  • Full-page screenshot not working: The full-page screenshot only works on iPhone models with iOS 13 or later and only on Safari. If it's not working, update iOS or try the crop method with a regular screenshot.

Frequently Asked Questions

Can I capture an element screenshot without a Mac?

Yes, you can use the iOS screenshot tool and crop the image to the element, but it's less precise. For exact element boundaries, the Mac method is recommended.

Does the Web Inspector method work on Windows?

No, Web Inspector is only available on Safari for Mac. On Windows, you can use Chrome's remote debugging with a PC, but that's outside the scope of this guide.

Can I capture a screenshot of a specific element on a webpage that uses dynamic content?

Yes, but you need to set the element to the desired state before capturing. For example, if it's a dropdown, open it first, then capture.

Where does the Web Inspector screenshot get saved?

By default, it saves to your Mac's Downloads folder as a PNG file.

Why is the "Full Page" screenshot option not appearing?

This option appears only when you take a screenshot of a Safari page and tap the thumbnail. If you don't see it, make sure you're using Safari and your iOS version is 13 or later.

Can I capture an element as a PDF instead of an image?

Yes, with the full-page screenshot, you can save as PDF. For a single element, you can use the Web Inspector screenshot and then convert the PNG to PDF on your Mac.