Text Fragment Link Generator
Create a link that scrolls straight to specific text on any web page and highlights it, using URL text fragments (#:~:text=). No edits to the page, no sign-up.
Text fragment links get long. Shorten and track them.
A #:~:text= URL is bulky to share. Wrap it in a Flyn short link for a clean, branded URL with click analytics and QR codes.
How to Make a Scroll-to-Text Link in 3 Steps
Paste the URL and the text
Enter the page URL and paste the exact words you want to highlight. Everything runs locally in your browser.
Get your text fragment link
The tool adds #:~:text= with your text encoded, producing a ready-to-share scroll-to-text URL.
Copy or test it
Copy the link, or open it in a new tab and watch the browser jump straight to your highlighted text.
What Is a Text Fragment Link?
A text fragment link is a normal web address with a small directive on the end, #:~:text= followed by the words you want to point at. When someone opens the link, the browser searches the page for that text, scrolls it into view, and highlights it. It is the modern way to deep-link to specific text on a page without needing the page to have an anchor or ID at that spot.
You have almost certainly seen these already: when Google sends you to the exact sentence that answers your search, it is using a text fragment. This generator lets you build the same kind of scroll-to-text URL for any page, so you can share a link that lands the reader on the precise passage instead of the top of a long article.
Anatomy of the link
https://example.com/article#:~:text=the%20exact%20words%20to%20highlight
The part before #:~:text= is the ordinary URL. Everything after it is your highlighted text, percent-encoded so it survives inside a link.
Why Use Our Text Fragment Generator?
Scrolls and highlights
The reader lands right on your passage, with the words highlighted, not at the top of the page.
No page edits needed
Works on any page, even ones you do not own. No anchors, no IDs, nothing to change on the site.
Encoding handled for you
Hyphens, commas, spaces, and punctuation are percent-encoded automatically so the link never breaks.
Ranges and disambiguation
Highlight a whole paragraph with a start and end, or use prefix and suffix to target repeated text.
100% client-side
The link is built in your browser. Your URL and text are never sent to a server.
One-click test
Open the generated link in a new tab and see the highlight work before you share it.
Text Fragment vs a Regular Anchor Link
What you want
Anchor link (#id)
Text fragment (#:~:text=)
Jump to a marked section
Yes, if the author added the id
Yes
Jump to any arbitrary text
No
Yes
Edit the target page
Required to add anchors
Not needed
Highlight the destination
No
Yes
Works on pages you do not own
Only where anchors exist
Yes
Need a plain clickable link instead? Use the Hyperlink Generator. Pulling links out of a block of text? Try the URL Extractor. Encoding a URL by hand? The URL Encoder/Decoder has you covered.
Frequently Asked Questions
What is a text fragment link?
How does the #:~:text= part of the URL work?
Which browsers support text fragment links?
My highlight is not showing up. Why?
Can I highlight a long passage without pasting the whole thing?
The same words appear several times on the page. How do I target one?
Do I need to encode special characters myself?
Is a text fragment the same as an anchor or #id link?
Will text fragment links help my SEO?
Is my text or URL sent to your servers?
Can I use a URL that already has a #hash anchor?
What are text fragment links good for?
More Free Link Tools
Everything you need to build, clean, and share better links.
Hyperlink Generator
Turn a URL and link text into a clean HTML anchor or Markdown link.
URL Extractor
Pull a clean list of every URL out of any text, email, or CSV.
URL Encoder/Decoder
Encode or decode URLs and query parameters with percent-encoding.
Deep Link Generator
Build links that open directly in native apps instead of the browser.
Share the exact words, on a clean short link
Text fragment URLs are powerful but long. Flyn wraps them in a short, branded link with real-time click analytics, editable destinations, and QR codes.