# Fragment identifier

Category: [Technical SEO](https://seo-geo-glossary.com/en/glossary/category/technical-seo/) › [URLs & domains](https://seo-geo-glossary.com/en/glossary/category/technical-seo/urls-domains/) · Also known as: URL fragment, hash, anchor

A **fragment identifier** is the last part of a URL, starting with the `#` character. It points to a specific part of a resource, such as a section of a page or a position in a video.

## How does a fragment work?

The browser processes the fragment after it has loaded the resource. The fragment is never sent to the server (MDN). Common uses are:

- **Scroll to an element.** `#syntax` scrolls to the element with `id="syntax"`.
- **Text fragments.** `#:~:text=word` highlights a piece of text.
- **Media fragments.** `#t=10,20` plays audio or video from second 10 to 20.

RFC 3986 defines the fragment as an indirect reference to a secondary resource, with semantics set by the media type of the retrieved content. When URIs are compared, fragments are left out, since they reference content within one resource.

## What does Google say about fragments?

Google states that its Search generally does not support URL fragments. It advises against using fragments to change the content of a page and against using fragment identifiers for page numbers in a collection, because Google ignores them. For JavaScript apps, Google points to the History API as the way to give each view its own URL.

For filters on large catalogs, Google's faceted navigation page lists fragments as one option for keeping filter URLs out of the crawl, since the fragment does not create a new URL for crawling.

## Example

```txt
https://example.com/guide?lang=en#faq
```

Here `?lang=en` is the query string. `#faq` scrolls to the element with the ID `faq`.

*Diagram: Anatomy of a URL.* A URL broken into its parts. RFC 3986 defines scheme, host, path, query and fragment. Only the browser evaluates the fragment after #, it is not sent to the server.

## Related terms

- [URL](https://seo-geo-glossary.com/en/glossary/url/index.md)
- [Query string](https://seo-geo-glossary.com/en/glossary/query-string/index.md)
- [Hash URLs](https://seo-geo-glossary.com/en/glossary/hash-urls/index.md)
- [Anchor element](https://seo-geo-glossary.com/en/glossary/anchor-element/index.md)
- [Deep link](https://seo-geo-glossary.com/en/glossary/deep-link/index.md)

## Sources

- [URI fragment – MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Fragment)
- [RFC 3986, section 3.5 Fragment – IETF](https://www.rfc-editor.org/rfc/rfc3986#section-3.5)
- [URL structure best practices for Google Search – Google Search Central](https://developers.google.com/search/docs/crawling-indexing/url-structure)
- [Pagination and incremental page loading – Google Search Central](https://developers.google.com/search/docs/specialty/ecommerce/pagination-and-incremental-page-loading)

---

Last updated: October 8, 2026
URL: https://seo-geo-glossary.com/en/glossary/fragment-identifier/
