---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# URL.hash

The **`hash`** property of the
`URL` interface is a string containing a
`'#'` followed by the fragment identifier of the URL.

The fragment is not percent-decoded. If the URL does not
have a fragment identifier, this property contains an empty string — `""`.

## Value

A string.
