IPv6 Binary Converter
Convert an IPv6 address into its full 128-bit binary form, group by group, with the prefix boundary marked.
About IPv6 Binary Converter
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
Worked example
With the default values below, IPv6 Binary Converter returns Binary (per 16-bit group) of 0010000000000001 0000110110111000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000001. Change any input above and every figure here is recalculated in your browser.
Inputs used
- IPv6 address
- 2001:db8::1
- Prefix length to markaccepts 0–128 bits
- 64 bits
Results
- 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
- 1Values used
- 2IPv6 Binary
- 3Binary (per 16-bit group)= 0010000000000001 0000110110111000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000001
- 4Network Bits= 64
- 5Host Bits= 64
- 6Bits Set to 1= 10
Assumptions and limits
- The result is derived only from the 2 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
- Figures are rounded for display to whole numbers, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
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.
