# Form Data

say it: **“FORM DAY-tuh”** **/fɔːrm ˈdeɪtə/**

Reads HTML form fields instead of JSON.

## What is **Form Data**?

Use `Form()` to read HTML form fields instead of JSON.

```python
@app.post('/login')
def login(username: Annotated[str, Form()], password: Annotated[str, Form()]):
    ...
```

Level: Journeyman · [More FastAPI terms at this level](https://www.ask-codey.com/glossary?category=fastapi&level=3)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/form-data
