Text Fragment URL Generator

Create URLs that automatically scroll to and highlight specific text on web pages

URL Generator
Text Fragments
Scroll to Text
Web Standards

Enter the URL of the webpage where you want to highlight text

Fragment 1

How it works: Prefix and suffix help identify the exact text when it appears multiple times. Start text is required. End text creates a range from start to end text.

About Text Fragment URLs

Text Fragment URLs use the #:~:text= syntax to create links that automatically scroll to and highlight specific text on web pages. This is a web standard supported by modern browsers.

Perfect for: Academic citations, sharing quotes, linking to specific documentation sections, highlighting important passages, creating precise references, and improving user experience.

Privacy: All URL generation happens in your browser - no data is sent to servers. The generated URLs work directly with the target websites.

Advanced Features: Use prefix/suffix for precision when text appears multiple times. Create text ranges with start/end text. Combine multiple fragments for complex highlighting.

Frequently Asked Questions (FAQ)

What are text fragments?
Text fragments are a web standard that allows you to create URLs that automatically scroll to and highlight specific text on a webpage using the #:~:text= syntax. They work in Chrome, Edge, Safari, and Firefox.
How do I use prefix and suffix?
Prefix and suffix help make your text fragment more specific when the target text appears multiple times on a page. The prefix comes before the target text, and the suffix comes after it, helping the browser find the exact occurrence you want.
What is the difference between start text and end text?
Start text is the beginning of what you want to highlight (required). End text is optional - if provided, it creates a range that highlights everything from the start text to the end text, inclusive.
Can I create multiple highlights on the same page?
Yes! You can add multiple text fragments to highlight different parts of the same page. Each fragment will create a separate highlight.
Do text fragment URLs work in all browsers?
Text fragments work in Chrome, Edge, Safari (since 2022), and Firefox (since September 2023). Older browsers will simply ignore the text fragment and load the page normally.
Are there any limitations?
Text fragments only work on publicly accessible pages (not localhost or private networks). The text must be visible and selectable on the page. Some websites may disable text fragments for security reasons.
How do I handle special characters?
The tool automatically handles URL encoding for special characters, including commas and hyphens which have special meaning in text fragment syntax. Just enter your text normally.
Can I use this for citations and references?
Absolutely! Text fragment URLs are perfect for academic citations, sharing specific quotes, linking to documentation sections, or highlighting important passages in articles.