IPv4 Address Converter

What is an IPv4 Address Converter?

Convert IPv4 dotted-decimal addresses (e.g. `192.168.1.1`) into 32-bit Integer Decimal (`3232235777`), 32-bit Binary (`11000000.10101000.00000001.00000001`), Hexadecimal (`0xC0A80101), and IPv4-mapped <a href="https://en.wikipedia.org/wiki/IPv6" target="_blank" rel="noopener noreferrer" class="text-indigo-600 dark:text-indigo-400 font-semibold hover:underline" title="Learn more about IPv6 on official docs">IPv6</a> (::ffff:192.168.1.1`).

Why Use This Tool?

  • Database Storage Optimization: Store IPv4 addresses as compact 32-bit integers (`INT UNSIGNED`) in SQL databases.
  • Low-Level Packet Analysis: Inspect binary octets and hex headers in Wireshark network packet captures.
  • IPv6 Migration: Format IPv4-mapped IPv6 addresses for dual-stack network transitions.

How to Use

  1. Enter an IPv4 address (e.g. `192.168.1.1`) or 32-bit Integer (e.g. `3232235777`).
  2. View simultaneous conversions across Decimal Integer, Binary Octets, Hex, and IPv6 Mapped.
  3. Copy any converted format.

Real Working Example

Input:

IPv4 Address: 192.168.1.1

Output Result:

32-Bit Decimal Integer: 3232235777
Binary: 11000000.10101000.00000001.00000001
Hexadecimal: 0xC0A80101
IPv6 Mapped: ::ffff:192.168.1.1

Important Technical Details & Standards

  • Octet Bit Shift Math: Integer = (octet1 << 24) + (octet2 << 16) + (octet3 << 8) + octet4.
  • RFC 4291 IPv4-Mapped IPv6: Generates valid `::ffff:A.B.C.D` representation.
  • Local Memory Execution: Fast local conversion in browser memory.

Related Networking & Security Tools

Frequently Asked Questions

Why store IP addresses as integers in SQL databases?

Storing IPv4 addresses as 32-bit unsigned integers takes only 4 bytes instead of 15 bytes for text strings, accelerating SQL query index lookups.

How do you convert IPv4 to binary?

Each of the 4 dotted decimal octets (0-255) is converted into an 8-bit binary string (e.g. 192 -> 11000000).

Is it free?

Yes, 100% free.

What is an IPv4-mapped IPv6 address?

An IPv4-mapped IPv6 address (::ffff:192.168.1.1) allows IPv6 applications to handle IPv4 nodes on dual-stack networks.

Is my IP address saved anywhere?

No, all conversion runs 100% locally in your browser.