The HTTP Link entity-header field provides a means for serializing one or more links in HTTP headers. It is semantically equivalent to the HTML <link> element.


Link: <uri-reference>; param1=value1; param2="value2"

The URI reference, must be enclosed between < and > and URL encoded.


The link header contains parameters, which are separated with ; and are equivalent to attributes of the <link> element.


The URI (absolute or relative) must be enclosed between < and >:

Link: <>; rel="preconnect"
Link: https://bad.example; rel="preconnect"

Encoding URLs

The URI (absolute or relative) must encode char codes greater than 255:

Link: <>; rel="preconnect"
Link: <苗条>; rel="preconnect"

You can specify multiple links separated by commas, for example:

Link: <>; rel="preconnect", <>; rel="preconnect", <>; rel="preconnect"


Web Linking
# header

Browser compatibility

BCD tables only load in the browser

See also