Skip to main content
IP Range CalculatorPRO
IPv6 ToolsInstant Client-Side Tool

IPv6 Subnet ID Calculator

Identify subnet bits within a parent.

IPv6 Subnet ID Calculator: inputs and results

Enter an IP address, CIDR prefix, or range. Then check its first and last address below.

Quick presets:

Calculated Boundaries & ParametersReady

Network Address192.168.1.0
Broadcast Address192.168.1.255
First Usable Host192.168.1.1
Last Usable Host192.168.1.254
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Total Addresses256
Usable Host Range254

Key Capabilities

  • •100% Client-Side: Zero telemetry or server latency.
  • •RFC Compliant: Exact 32-bit and 128-bit integer precision.
  • •Quick Copy: Instant access to CIDR, mask, and range bounds.
  • •Cross-Platform: Works on desktop, tablet, and mobile browsers.

How IPv6 Subnet ID Calculator Works?

This tool works by extracting the bits between the parent prefix length and the subnet prefix length. The extracted bits form the subnet ID.

  1. Enter the parent prefix

    Type the site prefix, such as 2001:db8:acad::/48.

  2. Enter the subnet length

    Type the subnet size, usually /64.

  3. Read the subnet ID bits

    Bits 49 to 64 form a 16-bit subnet ID, which is the 4th group of the address.

  4. Convert both ways

    The calculator turns an address into its subnet ID, or a subnet ID such as 6,699 into the prefix 2001:db8:acad:1a2b::/64.

IPv6 Subnet ID Calculator Formula

The formula is Subnet Prefix = Parent + ID × 2^(128 − s), where s is the subnet prefix length and ID ranges from 0 to 2^(s − p) − 1.

Subnet ID bits

b = s − p

64 − 48 = 16 bits.

Subnet ID range

0 … 2^b − 1

0 to 65,535 for a /48 into /64.

ID from address

ID = (IP >> (128 − s)) AND (2^b − 1)

Extracts the field.

Prefix from ID

Parent + ID × 2^(128 − s)

Builds the subnet prefix.

Worked example: 2001:db8:acad:1a2b::1 in 2001:db8:acad::/48

Subnet ID field = group 4 = 1a2b
1a2b hex = 1×4,096 + 10×256 + 2×16 + 11 = 6,699
Subnet  = 2001:db8:acad:1a2b::/64
ID range = 0 to 65,535

IPv6 Subnet ID Calculator Conversion Table

The table maps 11 subnet IDs inside 2001:db8:acad::/48 to their /64 prefixes, with the hex and binary form of each ID.

Subnet ID (Decimal)HexBinary (16 bits)/64 Prefix
0000000000000000002001:db8:acad::/64
1100000000000000012001:db8:acad:1::/64
2200000000000000102001:db8:acad:2::/64
10a00000000000010102001:db8:acad:a::/64
161000000000000100002001:db8:acad:10::/64
1006400000000011001002001:db8:acad:64::/64
255ff00000000111111112001:db8:acad:ff::/64
25610000000001000000002001:db8:acad:100::/64
4,096100000010000000000002001:db8:acad:1000::/64
6,6991a2b00011010001010112001:db8:acad:1a2b::/64
65,535ffff11111111111111112001:db8:acad:ffff::/64

What is IPv6 Subnet ID Calculator?

The IPv6 Subnet ID Calculator is a tool that identifies the subnet ID bits inside a parent prefix and converts between subnet IDs and subnet prefixes.

An IPv6 global unicast address has 3 parts: the global routing prefix from the ISP or RIR, the subnet ID chosen by the organization, and the interface ID. With a /48 site prefix and /64 subnets, the subnet ID is exactly the 4th group, which gives 65,536 subnets.

Organizations encode meaning into subnet IDs, such as a building number in the first hex digit and a VLAN number in the last 3 digits. The calculator converts those structured IDs into exact prefixes.

What are the uses of IPv6 Subnet ID Calculator?

There are 4 main uses of the IPv6 Subnet ID Calculator, including VLAN mapping, structured addressing, and audits.

  • Mapping VLANs to subnet IDs

    VLAN 100 maps to subnet ID 0x0064 or to the readable 0x0100, depending on the convention.

  • Designing structured addressing

    Plans encode site, building, and function into the 16-bit subnet ID.

  • Auditing prefix assignments

    The calculator extracts the subnet ID from live addresses to check against the plan.

  • Generating subnet lists

    Automation builds prefixes from ID numbers instead of string concatenation.