---
title: favicon
configName: html.favicon
---

# html.favicon

- **Type:** `string ｜ Function`
- **Default:** `undefined`

Set the favicon icon path for all pages, can be set as:

- a URL.
- an absolute path to the file.
- a relative path relative to the project root directory.

After config this option, the favicon will be automatically copied to the dist directory during the compilation, and the corresponding `link` tag will be added to the HTML.

import RsbuildConig from '@site-docs-en/components/rsbuild-config-tooltip';

<RsbuildConig />
