IPv6 Binary Converter
Convert an IPv6 address into its full 128-bit binary form, group by group, with the prefix boundary marked.
Inputs
Binary (per 16-bit group)
0010000000000001 0000110110111000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000001
Network Bits
64
Host Bits
64
Bits Set to 1
10
Step by step
Values used
IPv6 address = 2001:db8::1; Prefix length to mark = 64 bits
IPv6 Binary
Each of the eight 16-bit groups is converted to base 2 and padded to 16 digits, giving 128 bits in total.
Binary (per 16-bit group)
= 0010000000000001 0000110110111000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000001
Network Bits
= 64
Host Bits
= 64
Bits Set to 1
= 10
How it works
Hexadecimal hides where prefix boundaries fall unless they land on a nibble. Printing all 128 bits makes the split explicit and lets you verify a mask by eye. Non-nibble-aligned prefixes such as /56 or /126 are where IPv6 subnetting mistakes happen, and the binary view is the fastest way to prove a boundary is right.
Formula
IPv6 Binary
Each of the eight 16-bit groups is converted to base 2 and padded to 16 digits, giving 128 bits in total.
- p
- Prefix length used to split network from host bits
Frequently Asked Questions
How is IPv6 Binary calculated?
Each of the eight 16-bit groups is converted to base 2 and padded to 16 digits, giving 128 bits in total. Hexadecimal hides where prefix boundaries fall unless they land on a nibble. Printing all 128 bits makes the split explicit and lets you verify a mask by eye.
Why does IPv6 Binary matter?
Non-nibble-aligned prefixes such as /56 or /126 are where IPv6 subnetting mistakes happen, and the binary view is the fastest way to prove a boundary is right.
What values do I need to enter?
This calculator takes 2 inputs: IPv6 address, Prefix length to mark. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.