macOS: Share a Link That Jumps to a Specific Line on a Webpage - MacRumors
Skip to Content

macOS: Share a Link That Jumps to a Specific Line on a Webpage

by

Sometimes when you share a webpage link with someone, you just want to bring their attention to a specific passage or sentence to make your point, rather than have them read through the entire article.

safari icon blue banner
In 2020, Google added a function to its Chrome browser called Scroll to Text Fragment (STTF) that helps you achieve this. It allows URLs to link directly to any visible text on a page. You may have seen it work in Google Search, where clicking on a link in your returned results takes you to a highlighted passage of text further down the page.

Google later added the feature to the Chromium codebase, so most other popular Chromium browsers like Edge, Opera, Brave, and Vivaldi also support it. Here's how it works.

Copy Link With Highlight in Safari

Apple added full support for text fragment links in Safari 18, and the feature is available in Safari on macOS Sequoia and later. To use the feature, visit a web page and simply highlight the text you want to create a link to, then right-click (Ctrl-click) and choose Copy Link with Highlight from the dropdown menu.

safari

The "Copy Link to Highlight" option

This will generate a special URL that includes a hash (#) symbol and "text" element, followed by a few words that bookend the selected text. All you need to do is share the link with someone, and when they click it they will be sent directly to that part of the webpage with the specific passage highlighted, as shown below.

highlighted text shared safari

The shared link as the recipient sees it

That's all there is to it. The Copy Link to Highlight option is also available in Safari on iPhone and iPad, though we have found it to be buggy and inconsistent in iOS 26.3. Hopefully Apple can fix it soon. At least on Mac, it makes it easier for you to direct the recipient of the link to the content you actually want them to focus on.

Bear in mind that the look of highlighted text can differ depending on whether the page author has styled it to look a certain way. Also, text fragment linking does not work in PDFs. Since July 2025, Copy Link to Highlight has also been introduced in Firefox.

Tag: Safari

Top Rated Comments

NightFox Avatar
6 weeks ago
I will mentally add this to my 'useful things that I won't be able to remember how to do when I eventually want to do them' list
Score: 9 Votes (Like | Disagree)
GtrDude Avatar
6 weeks ago
This was available on Microsoft IE since about when the internet was invented.
Glad to know though that we're only 6 years behind Google.
Score: 6 Votes (Like | Disagree)
DrwMDvs Avatar
6 weeks ago
How do we remove the highlighted text once we visit the link? It can be pretty jarring when you're trying to read through it.
Score: 5 Votes (Like | Disagree)
TuffLuffJimmy Avatar
6 weeks ago

This was available on Microsoft IE since about when the internet was invented.
Glad to know though that we're only 6 years behind Google.
Not the way it’s implemented here. It was possible to #link specific sections of an html document as long as the page was created with that in mind. This, however, allows one to link to a specific line even if the page was not written with this in mind.
Score: 4 Votes (Like | Disagree)
6 weeks ago

This was available on Microsoft IE since about when the internet was invented.
Glad to know though that we're only 6 years behind Google.
I can't find any reference to this in old IE docs, and I don't remember ever seeing it (other than by using standard HTML anchor links, which didn't highlight anything, and which all browsers did and do support). But I'll take your word for it.

Until it's a W3C standard it's a bit of a risk adding it at all, and I'm kind of surprised they have. I guess they figured it's been in the CSS4 draft spec for long enough at this point.
Score: 4 Votes (Like | Disagree)
6 weeks ago
I’m annoyed by this as often as I’m helped by it. Half the links from Google that I copy have this text when I don’t want it, and Apple always thinks the last part of the link is a word to check the spelling on, so it takes 5-10 taps just to remove the part of the link I don’t want.
Score: 3 Votes (Like | Disagree)

Popular Stories

iOS 26

iOS 26.4 Adds Two New Features to CarPlay

Tuesday March 24, 2026 1:55 pm PDT by
iOS 26.4 was released today, and it includes a couple of new features for CarPlay: an Ambient Music widget and support for voice-based chatbot apps. To update your iPhone 11 or newer to iOS 26.4, open the Settings app and tap on General → Software Update. CarPlay will automatically offer the new features so long as the iPhone connected to your vehicle is running iOS 26.4 or later....
Apple Business hero

Apple Unveils 'Apple Business' All-in-One Platform

Tuesday March 24, 2026 8:53 am PDT by
Apple today announced Apple Business, a new all-in-one platform that unifies device management, productivity tools, and customer outreach features. The service is designed to be a consolidated replacement for several of Apple's existing business-focused offerings, including Apple Business Essentials, Apple Business Manager, and Apple Business Connect. It provides organizations with a single...
AirPods Pro Firmware Feature

Apple Releases New Firmware for AirPods Pro 3, AirPods Pro 2 and AirPods 4

Tuesday March 24, 2026 12:31 pm PDT by
Apple today released new firmware for the AirPods Pro 2, AirPods Pro 3, and the AirPods 4. The firmware has a version number of 8B39, up from 8B34 on the AirPods Pro 3, 8B28 on the AirPods Pro 2, and 8B21 on the AirPods 4. There is no word on what's included in the firmware, but Apple has a support document with limited notes. Most updates are limited to bug fixes and performance...