IPv4 Address Converter
Convert IPv4 addresses between decimal, binary, hexadecimal, and integer formats with CIDR support and network class analysis.
IPv4 Address Converter
Convert IPv4 addresses between decimal, binary, hexadecimal, and integer formats with CIDR support and network class analysis.
IP Address Input
Quick Examples
IP Address Formats
No IP Address Converted
Enter an IP address and click "Convert IP Address" to see all formats.
IPv4 Conversion Tips
- • Auto-detect: Automatically determines input format for convenience
- • Integer Range: IPv4 integers range from 0 to 4,294,967,295 (2³²-1)
- • Private Ranges: 10.x.x.x, 172.16-31.x.x, 192.168.x.x are private
- • CIDR Notation: Use /24, /16, etc. for subnet analysis
- • Binary Format: Each octet is 8 bits (e.g., 11000000 = 192)
- • Batch Processing: Convert multiple IPs simultaneously for efficiency
About IPv4 Address Conversion
IPv4 address conversion allows you to translate IP addresses between different formats and representations. Network administrators and developers often need to convert between dotted decimal notation, binary representation, hexadecimal format, and integer values for various networking tasks.
- Convert between dotted decimal, binary, hex, and integer formats
- Validate IP address formats and ranges
- Support for CIDR notation and subnet analysis
- Batch conversion for multiple IP addresses
- Network class identification and analysis
IPv4 Address Formats
Standard Formats
- Dotted Decimal: 192.168.1.1 (human-readable)
- Binary: 11000000.10101000.00000001.00000001
- Hexadecimal: 0xC0A80101
- Integer: 3232235777 (32-bit value)
Special Notations
- CIDR: 192.168.1.0/24 (with subnet)
- Reverse DNS: 1.1.168.192.in-addr.arpa
- URL Encoded: 192%2E168%2E1%2E1
- Octal: 0300.0250.0001.0001
Frequently Asked Questions
How to convert an ip address to decimal?
Multiply each octet by its positional power of 256. For 192.168.1.1: (192 x 256^3) + (168 x 256^2) + (1 x 256^1) + (1 x 256^0) = 3,232,235,777. Paste any dotted-decimal IP into the utilAZ converter and the decimal integer appears instantly.
How to convert ipv4 to integer?
Treat the four octets as bytes of a 32-bit unsigned integer. Shift the first octet left 24 bits, the second left 16, the third left 8, and add the fourth. The utilAZ tool does this automatically and also shows binary and hex representations.
What is ip to integer conversion?
IP-to-integer conversion represents a dotted-decimal IPv4 address as a single unsigned 32-bit number. This compact form is used for database indexing, IP range comparisons, firewall rules, and efficient storage in analytics systems.
How to convert an ip address to binary?
Convert each of the four octets to its 8-bit binary equivalent and join them with dots. For example, 192 = 11000000, 168 = 10101000, 1 = 00000001, so 192.168.1.1 becomes 11000000.10101000.00000001.00000001.
Formula to convert ip to decimal?
The formula is: Integer = (Octet1 x 16777216) + (Octet2 x 65536) + (Octet3 x 256) + Octet4. These multipliers are powers of 256 (256^3, 256^2, 256^1, 256^0). The utilAZ converter applies this formula client-side for instant results.
Why convert ip address to integer?
Integers allow fast numeric comparisons for IP range lookups, efficient database indexing (a single BIGINT column vs a string), compact storage in logs, and straightforward arithmetic for subnet calculations and CIDR matching.
IPv4 Conversion Examples
Common IP Addresses:
Private Network Examples:
How IPv4 Conversion Works
An IPv4 address is a 32-bit number typically written as four decimal octets separated by dots. Converting between formats involves reinterpreting those 32 bits in different bases: decimal for human readability, binary for subnet math, hexadecimal for compact notation, and a single integer for efficient database storage.
Quick Conversion Example
// Dotted decimal to integer
const octets = '192.168.1.1'.split('.').map(Number);
const integer = (octets[0] << 24) + (octets[1] << 16) + (octets[2] << 8) + octets[3];
// Result: 3232235777
// Integer back to dotted decimal
const ip = [(integer >>> 24), (integer >>> 16) & 0xFF, (integer >>> 8) & 0xFF, integer & 0xFF].join('.');
// Result: '192.168.1.1'
The tool above handles all supported formats automatically, detects the input type, validates ranges, identifies the network class, and shows whether an address is private, public, or reserved.
IPv4 Network Classes
Class A
- Range: 1.0.0.0 - 126.255.255.255
- Networks: 126
- Hosts/Net: 16,777,214
- Default Mask: 255.0.0.0 (/8)
Class B
- Range: 128.0.0.0 - 191.255.255.255
- Networks: 16,384
- Hosts/Net: 65,534
- Default Mask: 255.255.0.0 (/16)
Class C
- Range: 192.0.0.0 - 223.255.255.255
- Networks: 2,097,152
- Hosts/Net: 254
- Default Mask: 255.255.255.0 (/24)
IPv4 Conversion Best Practices
- Validate Input: Always verify IP addresses are in valid ranges (0-255 per octet)
- Handle Edge Cases: Consider special addresses like 0.0.0.0 and 255.255.255.255
- Use Appropriate Format: Choose the right format for your use case
- Consider Endianness: Be aware of byte order when working with integers
- Document Context: Specify whether addresses are network, host, or broadcast
- Batch Processing: Use efficient algorithms for large-scale conversions
- Error Handling: Implement robust error checking and reporting
Common Use Cases
- Network configuration and troubleshooting
- Database storage optimization
- Security analysis and filtering
- Log file analysis and processing
- Network monitoring and alerting
- Subnet planning and management
- Firewall rule configuration
- API development and integration
