Text Fragment Link Generator

Build a link that opens a page and highlights an exact phrase, with optional text before and after to pick the right match.

Runs in your browser — nothing is uploaded

About the Text Fragment Link Generator

A text fragment, written as #:~:text= in the URL, makes a browser scroll to a phrase and highlight it. It is a clean way to point someone to a quote, a clause or a paragraph without adding anchors to the page.

Enter the page address and the exact text to highlight. Add a few words before or after the phrase if it appears more than once. The generator encodes everything so the link works when shared.

FAQ

Text Fragment Link Generator — frequently asked

Which browsers support text fragments?

Chrome, Edge, Safari and Firefox support them in current versions. In an unsupported browser the link still opens the page, but it does not highlight the text.

Does the phrase have to match exactly?

Yes, apart from minor differences in case and whitespace. Copy the text carefully, because punctuation and wording must match the page.

When do I need a prefix or suffix?

Use them when the same phrase appears several times. A prefix is the words just before it, followed by a hyphen, and a suffix is the words just after, preceded by a hyphen.

Does the page need to change?

No. Text fragments work on any page without edits. If the wording changes later, the link may stop highlighting the text.

Is the link safe to share?

The link is a normal address with a fragment at the end. Browsers do not send the fragment to the server, so the text highlight stays between you and the reader.

Is my URL stored?

No. The link is built in your browser and nothing is saved.

    Report an issue