---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# FormData.keys()

The **`keys()`** method of the `FormData` interface returns an iterator allowing iteration through all keys contained in this object. The iterator yields the key for each value.

## Syntax

```js
keys()
```

### Return value

An `iterator`.
