﻿# Maximum

> Set an inclusive upper bound for numeric values

[Dotenv.toml](/docs/dotenv-toml/)

`min` and `max` are inclusive numeric bounds for `type = "integer"` or `type = "port"`, and length bounds for `type = "string"`. The minimum cannot exceed the maximum. Port bounds are clamped to `0`–`65535`.

```toml
[env.WORKERS]
type = "integer"
max = 32
```

There is no default upper bound for integers. Ports have a minimum of `0` and a maximum of `65535`.

## Related

- [Dotenv.toml Quickstart](/docs/dotenv-toml/quickstart/)
- [Full Dotenv.toml Spec](/docs/dotenv-toml/spec/)
