What You Will Learn
- 1How to generate deep links directly to specific sentences in Safari for iOS.
- 2The hidden 'Scroll to Text Fragment' (STTF) technology that powers these highlights.
- 3Step-by-step instructions for sharing quoted text via iMessage with automatic preview cards.
- 4The technical URI syntax required to manually create or edit highlight links.
- 5Modern methods to disable automatic highlighting if it interferes with your browsing experience.
We have all been there: you find the perfect piece of evidence in a 5,000-word research paper or a hilarious quote in a long-winded blog post, and you cannot wait to share it. You copy the URL, fire it off to a friend, and then spend the next five minutes typing a follow-up message like, 'Okay, now scroll down to the third section, find the header about climate data, and look at the second sentence'. It is frustrating for you and tedious for them, often leading to the recipient simply closing the tab without ever finding the point you were trying to make. The lack of precision in web sharing has been a productivity bottleneck for decades, forcing users to rely on manual instructions for content that should be instantly accessible.
Fortunately, the digital landscape has shifted toward a more granular way of communicating. With the introduction of the 'Copy Link with Highlight' feature in Safari for iOS, you can now bypass the scroll-and-search fatigue entirely. By leveraging 'Scroll to Text Fragment' (STTF) technology—a standard originally popularized by Chromium—Apple has finally given iPhone users the power to guide readers straight to the exact line that matters, with zero extra instructions required. This is not just a shortcut; it is a fundamental upgrade to how we cite, debate, and share information across the mobile web.
Important
Direct Answer Snippet: To copy a link with a highlight in Safari on iOS, simply select the specific text you wish to share, and in the pop-up menu that appears, tap the arrow to find and select 'Copy Link with Highlight'. When the recipient opens this link, Safari will automatically scroll to the section and highlight your selected text in yellow.
The 'Why': Benefits of Deep Linking in Safari
The primary benefit of using highlight links is the massive reduction in friction for the recipient. In an era of short attention spans, requiring a user to hunt for information is a surefire way to lose their engagement. By using this feature, you provide immediate value, ensuring that the most significant part of an article is the first thing they see. This is particularly useful for referencing quotes during debates, pointing out key facts in long-form journalism, or navigating complex FAQ pages where the answer is buried deep within the text.
Furthermore, this feature integrates seamlessly with Apple's ecosystem, particularly the Messages app. When you share a highlight link via iMessage, the app is smart enough to generate a preview card that quotes the selected text directly. This allows the recipient to read your cited passage without even leaving the conversation, though they can still tap the link to view the full context on the original webpage. It transforms a simple URL into a rich, informative snippet of data.
Step-by-Step Tutorial: How to Use 'Copy Link with Highlight' on iOS
To utilize this feature, you must be running a modern version of iOS (specifically iOS 18.2 or later for the most stable experience). While basic support for viewing these links existed in earlier versions, the ability to create them within Safari is a more recent addition. Follow these steps to master the process:
- Navigate to Your Content: Open the Safari browser on your iPhone or iPad and go to the webpage containing the text you want to share.
- Select the Target Text: Press and hold on a word to bring up the selection handles, then drag them to encompass the entire phrase, sentence, or paragraph you wish to highlight.
- Access the Context Menu: Once the text is selected, a horizontal menu bar will appear above it. If you do not see 'Copy Link with Highlight' immediately, tap the right arrow (>) to view more options.
- Generate the Link: Tap 'Copy Link with Highlight'. Safari will briefly highlight the selection in a different color to confirm the link has been generated and copied to your clipboard.
- Share the Link: Open your preferred messaging app, email client, or note-taking tool and paste the link. The resulting URL will contain the necessary 'fragment directive' to trigger the highlight for the recipient.
The Technical Deep Dive: Understanding the URL Syntax
What is actually happening behind the scenes when you tap that button? Safari is appending a 'Text Fragment' to the end of the URL. These are a specific type of URL fragment that starts with a 'fragment directive' sequence: #:~:text=. This sequence tells the browser that the following instructions are for the user-agent (the browser) and should be stripped from the URL before scripts on the page can interact with them.
The syntax for these fragments can become quite complex, allowing for precise targeting even on pages with repetitive text. Here is the breakdown of the parameters you might see in a manually crafted link:
- textStart: The only required parameter, specifying the beginning of the text to highlight.
- textEnd (Optional): Specifies where the highlight should end, allowing you to highlight large blocks of text without including every single word in the URL.
- prefix- (Optional): A string that must immediately precede the target text, used to disambiguate when the same phrase appears multiple times on a page.
- -suffix (Optional): A string that must immediately follow the target text, also used for disambiguation.
<!-- Example of a complex highlight link syntax -->
https://example.com/#:~:text=prefix-,startText,endText,-suffix
<!-- Practical Example: Highlighting 'Safari' on a page where it appears often -->
https://techblog.com/ios-guide/#:~:text=using-,Safari,for%20mobileAll text strings within these parameters must be percent-encoded. For example, a space becomes %20. Safari handles this encoding automatically when you use the 'Copy Link with Highlight' menu, but if you are building these links manually for a website or documentation, you must ensure the characters are URL-safe.
Advanced Alternatives: Third-Party Tools and Extensions
While the native Safari feature is excellent, power users might find it limiting. For instance, if you are conducting academic research or need to manage hundreds of citations, a dedicated extension might be more efficient. One such modern solution is QuoteLink for Safari. This app, available on the App Store, allows you to turn selections into professional citations effortlessly. It supports Markdown formatting, which is perfect for developers or writers using tools like Obsidian or Notion, and it automatically strips away unnecessary tracking parameters from the URL to keep your links clean.
Additionally, for those who work across platforms, it is worth noting that browsers like Chrome and Edge have had this functionality since 2020. If you find yourself on an older version of macOS or iOS that lacks the native menu option, you can still use a JavaScript bookmarklet to generate these links. By saving a specific snippet of code as a bookmark, you can highlight text and tap the bookmark to copy a highlight-compatible URL to your clipboard, even if the system-level menu is missing.
Troubleshooting & Modern Error Handling
Despite its utility, 'Copy Link with Highlight' is not foolproof. One common issue is that text fragments are not stable. Because they rely on the exact wording of a page, if the website author updates the text or changes the phrasing, the link will 'break'. In such cases, the browser will simply load the page at the very top, ignoring the fragment directive entirely. If you need a permanent link, it is often better to use traditional HTML ID anchors if the site author has provided them.
Another known limitation is that this feature does not work in PDFs. If you are viewing a PDF within Safari, the 'Copy Link with Highlight' option will generally be absent or non-functional. Furthermore, some websites use 'frames' or complex 'div' structures that can interfere with Safari's ability to identify text fragments, making the menu option vanish on certain domains.
How to Disable Highlighting (The Modern Way)
While most users find this feature helpful, others find the automatic scrolling and yellow highlighting to be 'highly annoying' or jarring. If you frequently find yourself clicking search results only to be zoomed halfway down a page you wanted to read from the start, you can disable this behavior. In the past, this required digging into hidden Safari experimental features, but in modern versions of iOS, it has a more standardized path.
To disable 'Scroll to Text Fragment' on iOS 18+:
- Open the Settings app on your iPhone.
- Navigate to Apps > Safari (or just Safari in older iOS versions).
- Scroll to the bottom and tap Advanced.
- Tap Feature Flags (formerly called Experimental Features).
- Search for 'Scroll to Text Fragment' and toggle the switch to the OFF position.
Important
Common Mistake: Do not confuse 'Copy' with 'Copy Link with Highlight'. If you select 'Copy', you are only grabbing the raw text to paste elsewhere. To share a working deep link, you must specifically choose the 'Link with Highlight' option from the menu.
Does the recipient need to use Safari to see the highlight?
No. The highlight feature is based on the 'Scroll to Text Fragment' web standard, which is supported by most modern browsers including Chrome, Edge, Opera, and recently Firefox. However, if they use a very old browser or a browser that has explicitly disabled this feature, they will simply see the top of the webpage.
Can I highlight multiple different sections in one link?
Yes, technically the standard supports this by separating multiple text directives with an ampersand (&) character. For example: `#:~:text=FirstPhrase&text=SecondPhrase`. However, Safari's native 'Copy Link with Highlight' tool currently only supports selecting one continuous block of text at a time.
Why don't I see 'Copy Link with Highlight' in my Safari menu?
This usually happens for three reasons: 1) You are on an older version of iOS (it requires iOS 18.2+ for full support); 2) You have selected a link instead of regular text; or 3) The website uses frames or code that blocks text selection analysis.
Does this work when sharing to WhatsApp or Android users?
While the link itself will still work if the Android user opens it in a compatible browser like Chrome, the rich 'quoted text' preview card is currently an iMessage exclusive. Apps like WhatsApp or standard SMS will likely just show the raw URL.
Is there a limit to how much text I can highlight?
Safari is smart enough to bookend long selections. If you select a very long passage, Safari will generate a link using the first few words and the last few words (e.g., `text=StartWords,EndWords`) to keep the URL from becoming excessively long and breaking.
Mastering the 'Copy Link with Highlight' feature in Safari is one of the easiest ways to level up your digital communication. Whether you are a student citing sources, a professional sharing data points, or just a friend sending a funny quote, this tool ensures your message is never lost in the scroll. Give it a try the next time you find something worth sharing—you will be surprised at how much time it saves for everyone involved. For more advanced productivity hacks, be sure to check out our other guides on iOS 18 features and Safari power-user tips!
About the Author
This iPhone and iOS guide was created by the Learn Tech team — passionate tech educators who simplify Apple features, settings, apps, and troubleshooting into easy step-by-step tutorials. Our goal is to help beginners and advanced users confidently get the most out of their iPhone, iPad, and the Apple ecosystem without confusing technical jargon.



