> Markdown version of [Query Parameters](https://vaadin.com/docs/v24/building-apps/views/pass-data/query-parameters). Section index: [llms.txt](https://vaadin.com/docs/v24/building-apps/llms.txt)

# Query Parameters

Query parameters are key-value pairs appended to the end of a URL after a `?` character. Multiple parameters are separated by `&`.

For example, this URL: `/orders?sort=date&filter=shipped`

Contains the following query parameters:

- `sort` → `"date"`

- `filter` → `"shipped"`

Query parameters are commonly used to store view-related state, such as a grid’s sort order or a search field’s value. Since they are optional, always provide default values when a parameter is missing.

> **Tip:** If you need required parameters, consider using [route parameters](https://vaadin.com/docs/v24/building-apps/views/pass-data/route-parameters.md) instead.

## <a id="using-query-parameters-in-your-application"></a>Using Query Parameters in Your Application

You can use query parameters both in Flow and Hilla views. The following guides show you how to implement them:

- [Query Parameters in Flow](https://vaadin.com/docs/v24/building-apps/views/pass-data/query-parameters/flow.md)

- [Query Parameters in Hilla](https://vaadin.com/docs/v24/building-apps/views/pass-data/query-parameters/hilla.md)
