﻿# Types

> Validate values before your app starts

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

Types validate environment values, which remain strings. The default type is `"string"`.

```toml
[env.PORT]
type = "port"
storage = "plaintext"

[env.DATABASE_URL]
type = "url"
```

Choose a type below. Numeric types also support inclusive [`min`](/docs/dotenv-toml/min/) and [`max`](/docs/dotenv-toml/max/) bounds.

## Types

- [integer](/docs/dotenv-toml/type/integer/)
- [boolean](/docs/dotenv-toml/type/boolean/)
- [port](/docs/dotenv-toml/type/port/)
- [url](/docs/dotenv-toml/type/url/)
- [email](/docs/dotenv-toml/type/email/)
- [ip](/docs/dotenv-toml/type/ip/)

## Related

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