
For most of the web's history a link could only point at a whole page, or at a spot the author had marked in advance. Text fragments changed that in 2020. Any link can now say "open this page and show me these words", and the browser does the finding and the highlighting. This guide shows the fastest way to make such a link in each browser, how to make one by hand, and what to do when a link stops matching.
In Chrome and Edge: right-click and copy
Select the passage
Drag across the words. Whole sentences work best.
Right-click the selection
Choose Copy link to highlight (Edge may call it Copy link to highlight too; it sits near Copy).
Paste it
The clipboard now holds the page address plus
#:~:text=and your words, percent-encoded. Paste anywhere.
If the command is missing, the selection may be inside an element the browser cannot link to (a form field, an image caption rendered as a picture, or text inside a frame from another site). Select a nearby sentence in the main text instead.
In Safari and Firefox: use the generator
Safari opens text fragment links but has no built-in command to create one, and Firefox added the ability to open them in version 131 while its create command is still arriving. On either browser, paste the page address and the sentence into the highlight link generator. It builds the link, shows a live test link, and copies the result. The bookmarklet does the same from inside the page you are reading.
Writing the link by hand
The format is simple enough to type when you need to. Take the page address, add #:~:text=, then add the words you want highlighted with spaces written as %20. Commas, ampersands and percent signs in the passage must also be encoded (%2C, %26, %25); the generator does this for you.
Example
https://example.org/report#:~:text=the%20study%20found%20no%20effect opens the report and highlights "the study found no effect".
Two optional parts make links more precise. A range uses a comma between a start phrase and an end phrase, so text=In%20conclusion,recommend highlights everything from "In conclusion" to the first "recommend" after it. A prefix or suffix uses a hyphen: text=prefix-,target,-suffix tells the browser to match "target" only when it is preceded by "prefix" and followed by "suffix", which pins a common phrase to one exact place. Prefix and suffix are context only; they are not highlighted.
| You want | Write | Result |
|---|---|---|
| One phrase | text=phrase | First match of the phrase is highlighted |
| A span | text=start,end | From the start phrase through the end phrase |
| A phrase in one exact place | text=before-,phrase,-after | Only the match with that context |
| Several passages | text=one&text=two | Each is highlighted separately |
Why a highlight link stops working, and the fix
- The text changed. Even a fixed typo breaks the match. Re-select and make a new link; keep highlights short so small edits elsewhere do not matter.
- The words appear earlier on the page. The browser highlights the first match. Add a prefix or use a longer phrase.
- The text loads late. Some pages fetch their content after the first paint. The browser gives up waiting after a moment. Use the bookmarklet inside the loaded page, or link to a print or reader version of the page.
- The page blocks it on purpose. A site can send a header that turns off text fragments. Rare, but it happens on some banking and account pages.
- The recipient's browser is old. Anything before Chrome 80, Safari 16.1 or Firefox 131 ignores the fragment and opens the page at the top. The link still works as a normal link.
Sharing highlights well
A good highlight link is a courtesy to the reader. Say in your message what they will see ("the second paragraph is the number I mentioned"), because a page that opens scrolled halfway down is disorienting without a hint. Quote the passage in your own words if the link might age. And highlight one thing per link; if you need three passages, send three links or use the multiple-text form and tell the reader there are three.
Highlight links are also the backbone of checking what you read. Recording evidence this way is central to annotating a source claim by claim and to finding where a quotation really comes from. For the precise selections that make these links reliable, the keyboard selection shortcuts help; the rest of the guides section covers every other way to highlight.
Common questions
What is a text fragment link?
A web address with #:~:text= and a phrase added to the end. Browsers that understand it open the page, scroll to the phrase and highlight it. Browsers that do not simply open the page.
Which browsers support links to highlighted text?
Chrome and Edge since 2020, Safari since version 16.1 (2022), Firefox since version 131 (2024), plus most browsers built on the same engines. Support is now effectively universal on up-to-date devices.
Can the page owner see that I highlighted their text?
No. The part of the address after # is never sent to the website's server. The highlight is processed entirely in the reader's browser.
Can I highlight more than one passage in a single link?
Yes. Repeat the text= part joined with an ampersand. Each passage is highlighted. Keep it to a handful; long links are hard to share.
Does a highlight link work on a phone?
Yes, in the current versions of the main mobile browsers. On phones the highlight may appear only briefly on some versions, but the page still scrolls to the passage.
Is this the same as the old Awesome Highlighter shared page?
It solves the same problem without storing anything. The old tool saved a copy of the page on this site; a text fragment link points at the live page and carries the highlight itself. See the shared highlights archive page for what happened to the old links.
Sources
- WICG URL Fragment Text Directives specification
- MDN Web Docs: Text fragments
- Firefox 131 release notes (October 2024); Safari 16.1 release notes (October 2022)