﻿# url

> Validate url values

[Types](/docs/dotenv-toml/type/)

A URL with a scheme, including database URLs such as `postgres://localhost/app`.

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

Validation leaves the value as a string. Storage defaults to `"any"` and redaction is off. Set `storage = "encrypted"` and `redacted = true` for secrets.

## Related

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