Copy Link to Highlight: What It Does, Where It Works and Why It Breaks

“Copy link to highlight” copies a link that jumps to the text you selected. How it works in Chrome, Edge, Firefox and Safari, and why the link sometimes opens at the top.

Marius Bongarts
Marius Bongarts
5 min read
A Web Highlights docs page in Chrome with the sentence “The shared view is read-only” marked by a text-fragment link

“Copy link to highlight” is a right-click option in Chrome that copies the page’s address together with the text you selected. When someone opens that link, the browser scrolls to the passage and marks it. Nothing is saved anywhere: the highlight lives only inside the link, and if the words on the page change, the link opens at the top instead.

Around 390 people search Google for “copy link to highlight” every month in the US, and another 260 ask what it means. Most of the results are forum threads, and a lot of them ask why it doesn’t work. So here is all of it on one page: what the link does, where it works, why it breaks, and what to use when you want to keep your highlights. Every browser fact below comes from Google’s, Microsoft’s, Mozilla’s and Apple’s own documentation.

Key takeaways

  • It’s built into Chrome and Edge, into Firefox on desktop since version 145 and into Safari since 18.2, where it’s called “Copy Link with Highlight”.
  • The link carries the words themselves. If they change on the page, the browser opens the top of the page.
  • The menu item can be missing for some selections, and sites and company admins can switch the jump to the text off.
  • It keeps nothing: no colors, no notes, no list of what you marked. For that you need a highlighter that saves.

It means “copy a link to exactly this text.” The browser takes the page’s address and adds a text fragment: #:~:text= followed by the words you selected. Opening the link makes the browser search the page for those words, scroll to the first match and mark it.

Here’s a real one. It points to a sentence in our docs:

https://web-highlights.com/docs/features/sharing-public-pages#:~:text=The%20shared%20view%20is%20read%2Donly
Chrome shows the Web Highlights docs page scrolled to the sentence “The shared view is read-only”, which is marked in light purple
Chrome 158 opening the link above: it scrolls down to the sentence and marks it

The MDN reference and Google’s text fragments guide spell out the rules. Four of them explain most of the surprises further down:

  • Upper and lower case don’t matter.
  • The first match wins. When the words appear more than once, a link can carry a few words before or after them (prefix- and -suffix) to pick the right one. That’s also why the dash in “read-only” turns into %2D in the link above: a plain dash would be read as one of those markers.
  • A long selection is stored as its start and its end (text=start,end), so the words in between don’t have to be in the link.
  • The page can’t see it. The :~: part is meant for the browser and is removed while the page loads, so the site’s own scripts can’t read it.

Select the text, then open the menu on it. Here’s what the item is called in each browser:

Browser What to do after selecting Source
Chrome on a computer Right-click → Copy link to highlight Chrome Help
Chrome on Android Tap Share, then the app you want to send it to Chrome Help
Chrome on iPhone and iPad Tap Create link (if it doesn’t show, tap the highlighted text) Chrome Help
Microsoft Edge Right-click → Copy link to highlight Microsoft
Firefox 145 or newer (desktop) Right-click → Copy Link to Highlight Firefox release notes
Safari 18.2 or newer Context menu → Copy Link with Highlight WebKit

Opening these links works in more versions than creating them. According to MDN’s compatibility data, Chrome and Edge follow them since version 80, Firefox since 131 and Safari since 16.1. An older browser just opens the page at the top.

If the link opens the right page but doesn’t scroll or mark anything, the browser skipped the text part. MDN describes the fallback: when the fragment doesn’t match, or the browser doesn’t support text fragments, the link goes to the top of the page. Four causes cover most cases.

The words on the page changed

The link stores words, not a position. Change one word of the sentence and there’s nothing left to match. Here’s the docs link from above with one word swapped, “page” for “view”, which is what a link runs into after the author edits the sentence:

https://web-highlights.com/docs/features/sharing-public-pages#:~:text=The%20shared%20page%20is%20read%2Donly
The same Web Highlights docs page opened at the very top, with no text marked
One word different: Chrome 158 opens the top of the page and marks nothing

The same goes for anything that makes the other person’s copy of the page different from yours: another language, a paywall, or text that only shows up when you’re signed in.

The menu item is missing or greyed out

Chrome’s help page only says that if you can’t select the option, the feature may not work for the selected content. It doesn’t list what that content is. Selecting a bit less, plain text inside one paragraph, is worth a try. In Firefox the item came with version 145 and in Safari with 18.2, so older versions don’t have it at all.

Browsers follow the text part only when a person starts the navigation, and only in the main window, never inside an embedded frame (an iframe). A link from another site also has to open the page in a separate browsing context (noopener). So if a link works when you paste it into the address bar but not when you click it inside some web app, this is the likely reason.

The site or your company switched it off

Sites can opt out. Chromium-based browsers respect a Document-Policy: force-load-at-top header, and a page that sends it always opens at the top. Admins can also turn the feature off in Chrome with the ScrollToTextFragmentEnabled policy, so a work laptop may behave differently from your own.

For pointing someone at one sentence, the built-in link is hard to beat: nothing to install, no account on either side. But it doesn’t keep anything. There’s no color, no note, no list of what you marked, and unless you pasted the link somewhere, it’s gone.

Keeping highlights is what I built Web Highlights for. It’s a free browser extension for Chrome, Edge and Firefox (it also runs in Brave, Vivaldi and Opera), used by hundreds of thousands of people, and you don’t need an account to start:

  • Select text and click the marker, or press Alt + S (Option + S on a Mac). Pick a color and add a note if you like.
  • Your highlights are saved, listed in page order in the sidebar, and drawn back onto the page when you open it again.
  • To send them, share the page with a public link. The other person sees your highlights and notes without an account, and you can stop sharing whenever you like. Creating a link needs a paid plan or the 7-day free trial, and it works one page at a time: there’s no team workspace.
Chrome’s “Copy link to highlight” Web Highlights
What’s kept Nothing, the words sit in the link Every highlight, with its color and note
Highlights per page One passage per text fragment As many as you like
If the page text changes Opens at the top, nothing marked The quote is still in your library
What the other person needs The link The link, no account
Cost Free, built into the browser Free; sharing comes with a paid plan or the trial

New to it? The guide to using Web Highlights walks through the first highlight, notes and tags. For research you want to hand to someone, efficient research with Web Highlights shows the sharing side, and if you’re still choosing a tool, here are the best highlighter extensions for Chrome.

Which one should you use?

If you only want to point a friend at one sentence, use the built-in link and pick a sentence that’s unlikely to change. If you want to keep what you highlight and come back to it, try Web Highlights. It’s free.

I am always happy to answer questions, and I am open to criticism. Feel free to contact me at any time 😊

Get in touch with me via LinkedIn or follow me on Twitter.

Frequently asked questions

Is there a keyboard shortcut for “Copy link to highlight”?

Chrome’s help page doesn’t mention one: on a computer it’s an item in the right-click menu, on Android you go through Share and on iPhone or iPad through Create link. If what you want is a shortcut for highlighting itself, Web Highlights highlights the selected text with Alt+S (Option+S on a Mac), and you can change that key at chrome://extensions/shortcuts.

How do I remove a highlight from a “Copy link to highlight” link?

In Chrome on a computer, right-click the marked text and choose Remove highlight. On Android, iPhone and iPad, tap the marked text and pick Remove highlight, which also puts the page’s address back the way it was. Tapping Share highlight instead sends the same passage on.