---
url: /reference/OutputOptions.sanitizeFileName.md
---
# sanitizeFileName

* **Type**: `boolean` | ((`name`) => `string`)
* **Optional**

Whether to enable chunk name sanitization (removal of non-URL-safe characters like `\0`, `?` and `*`).

Set `false` to disable the sanitization. You can also provide a custom sanitization function.

## Default

```ts
true
```
