Canonical: https://toolipedia.app/text-fragment-link-generator

# Text Fragment Link Generator

Make a link that opens a web page and highlights chosen text, using the #:~:text= fragment with start, end, prefix and suffix options.

Breadcrumbs: Toolipedia > Developer tools > Code and developer utilities > Text Fragment Link Generator

## About Text Fragment Link Generator

A text fragment is the part of a link after #:~:text= that tells the browser to scroll to a passage and highlight it. This generator builds the link from the page address and the text, encoding spaces and the characters that have a special meaning inside a fragment (the hyphen, the ampersand and the comma). For long passages give the start and the end of the text instead of all of it; use text just before or after to pick the right occurrence; and add more passages, one per line, for several highlights. Example: https://example.com/page and the text Hello world give #:~:text=Hello%20world.

## How to use Text Fragment Link Generator
1. Enter the full address of the page and the text you want highlighted.
2. Optionally add the end of a longer passage, text just before or after it, or more passages.
3. Copy the link and open it in a current browser to check that the text is found and highlighted.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- text fragment link generator
- link to highlighted text
- scroll to text fragment url
- text= fragment generator
- highlight text link

## Frequently asked questions

### Why does the link open the page but highlight nothing?

The browser must find the text exactly, ignoring case, inside one block of the page. If the page changed, the wording differs or the browser does not support text fragments, the page simply opens normally.

### When do I need the prefix and suffix?

When the same words appear several times. The prefix must come just before the highlighted text and the suffix just after it, which lets the browser pick the right place.

### Can the owner of the page see which text was highlighted?

The part after the # stays in the browser and is not sent to the server in the request. Browsers also hide the text fragment from scripts on the page by design, so a visit does not reveal what was highlighted.

### Is Text Fragment Link Generator free?

Yes. Text Fragment Link Generator on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with Text Fragment Link Generator:
- [YouTube Timestamp Link Generator](https://toolipedia.app/youtube-timestamp-link-generator)
- [Nginx Location Match Tester](https://toolipedia.app/nginx-location-match-tester)
- [Tel and SMS Link Generator](https://toolipedia.app/tel-and-sms-link-generator)
- [Bulk UTM Link Builder from CSV](https://toolipedia.app/bulk-utm-link-builder)
- [Open source license generator](https://toolipedia.app/license-generator)
