Text Fragment Link Generator
Build a link that opens a web page and highlights a specific passage of text. Paste the page address and the text to highlight, and the tool adds the text fragment to the end of the link.
1 Paste your text and pick the options
2 Your answer
Your answer shows here as you type.
How to use the Text Fragment Link Generator
- Paste the full page address, including https://.
- Type the text you want highlighted, exactly as it appears on the page.
- For a long passage, add the last few words in the end field to highlight the range between the two.
Frequently asked questions
What is a text fragment link?
A text fragment is a part of a URL after #:~:text= that tells supported browsers to scroll to and highlight a specific passage on the page. The page itself does not need any special markup.
Which browsers support text fragments?
Chrome and Edge have supported them since version 80, Safari since version 16.1, and Firefox since version 131. Browsers without support open the page normally and ignore the fragment.
Why does my highlight not appear?
The text must match the page exactly and must be unique on the page. If the phrase appears more than once, the browser may not highlight it, so choose a longer phrase.
Why are hyphens encoded as %2D?
Hyphens and commas have special meaning in the text fragment syntax, so they are percent-encoded in the text value to keep the link valid.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.