# IPV6_MAX_STR_LEN variable · @imqueue/net

Source: https://imqueue.org/api/net/latest/net.ipv6_max_str_len/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/net 3.0.2 — generated reference, not hand-written

Longest an IPv6 address can be as text: 39 characters, from eight groups of four hex digits plus seven colons.

**Signature:**

```typescript
IPV6_MAX_STR_LEN = 39
```

## Remarks

A bound for buffer sizing and validation, not a formatting rule — a compressed address such as `::1` is far shorter, and this package's own output is compressed. It does not cover the IPv4-mapped form (`::ffff:255.255.255.255`, 45 characters), a scope-zone suffix, or a `/prefix`.

