IP Address Generator and Base Converter
Generate random IPv4 and IPv6 addresses in batch with optional prefixes and compressed notation, or convert IP addresses to decimal, hex and binary for bitwise debugging.
About This Tool
The IP address generator and converter covers two needs that often come together. Random generation produces IPv4 and IPv6 addresses in bulk, optionally fixed to a prefix so results stay inside a subnet, with IPv6 using compressed notation. Base conversion turns any IP into decimal, hexadecimal and binary for bitwise work, mask calculation and database storage checks.
IPv6 uses BigInt so 128-bit integers keep full precision instead of exceeding the JavaScript safe integer range. Input accepts :: compressed notation and hexadecimal output is prefixed with 0x.
Key Features
IPv4 and IPv6
Both protocols support batch generation and base conversion.
Fixed prefix
Pin a subnet prefix and only randomise the remaining fields.
Compressed notation
IPv6 output collapses the longest run of zero groups into ::.
128-bit precision
BigInt arithmetic keeps IPv6 integer conversion exact.
When to Use It
Test data
Generate many addresses in one subnet for ACLs and log samples.
Mask calculation
Convert to binary to verify masks and subnet boundaries.
Storage verification
Confirm the integer value stored in a database for an IP is correct.
How to Use It
- 1Choose Random Generate or Base Conversion.
- 2In generate mode pick protocol, prefix and count.
- 3In convert mode enter an IPv4 or IPv6 address.
- 4Run and copy the result.
Frequently Asked Questions
Why is the IPv6 decimal value so long?
A 128-bit integer can reach about 3.4×10³⁸, so a long decimal representation is expected.
Are generated IPs reachable?
Not necessarily. Random addresses may fall in reserved or unassigned ranges, so use them as test data only.
