Skip to content

Menu

IPv4 Converter

Convert IPv4 addresses between dotted decimal, integer, binary, hex, octal and IPv4-mapped IPv6 forms.

Runs entirely in your browserDevOpsFree, no sign-up
Loading tool

01What is IPv4 Converter?

IPv4 Converter takes one address in whatever shape you found it and shows every other common form side by side. An IPv4 address is just a 32-bit number, as RFC 791 defines it. Dotted decimal is only the friendly way people write it, so logs, databases and packet tools often show the same value as an integer or hex. The tool accepts dotted decimal (192.168.1.1), a plain integer from 0 to 4294967295, hex with or without 0x (0xC0A80101 or DEADBEEF), dotted hex (c0.a8.01.01), dotted binary with eight bits per octet, and dotted octal where every part starts with 0. It tries those formats in a fixed order and shows the one it picked under the input as Detected format. The order matters. A string of digits is read as a decimal integer first, so 12345678 is treated as decimal, not hex. A dotted value that is valid decimal wins over dotted hex, so 10.20.30.40 stays decimal. For any valid address you get Dotted Decimal, Decimal, Binary, Hexadecimal, Dotted Hex, Octal and IPv6-Mapped rows, each with a copy button, plus an Octet Breakdown table. The IPv6-mapped form follows RFC 4291 (::ffff: followed by the two 16-bit halves). Here is a worked example. Paste 167772161 and the tool detects decimal and shows 10.0.0.1, hex 0x0A000001, dotted hex 0a.00.00.01, octal 0012.0000.0000.0001 and ::ffff:a00:1. Paste 0300.0250.0001.0001 and it detects octal and lands on 192.168.1.1. Leading zeros are worth a warning. Here 010.0.0.1 is read as plain decimal 10.0.0.1, because it is a valid dotted decimal address. The classic C inet_aton() function reads the same string as octal, which gives 8.0.0.1. That mismatch is exactly how some SSRF filters get bypassed. Invalid input gets an error instead of a guess. That covers an octet above 255, an integer above 2^32 - 1, an 8 or 9 inside an octal part, or anything with the wrong number of parts. Short forms such as 10 are accepted as integers, so 10 becomes 0.0.0.10, not 10.0.0.0. The tool handles one address at a time and does no subnet math, so use a CIDR calculator for network and broadcast addresses. The conversion is plain arithmetic done in the page, so the addresses you type are not sent to us.

Backend and security engineers who meet the same IPv4 address as an integer, hex value or odd dotted form and need to see what it really is. The tool runs entirely in your browser, so your data never leaves your device.

02How to use IPv4 Converter

  1. Type or paste an address into the IPv4 Address (any format) field, or load the Localhost, Private, Decimal or Hex example
  2. Check the Detected format line to make sure the tool read your input the way you meant
  3. Read the Conversions list for the dotted, decimal, binary, hex, dotted hex, octal and IPv6-mapped forms
  4. Look at the Octet Breakdown table to see each octet in decimal, binary, hex and octal
  5. Click the copy button next to the form you need

03Worked examples

Input: 192.168.1.1
Result: Detected format: dotted Decimal 3232235777 Binary 11000000.10101000.00000001.00000001 Hexadecimal 0xC0A80101 Dotted Hex c0.a8.01.01 Octal 0300.0250.0001.0001 IPv6-Mapped ::ffff:c0a8:101
The full set of conversion rows for a common LAN address.
Input: 167772161
Result: Detected format: decimal Dotted Decimal 10.0.0.1 Hexadecimal 0x0A000001 IPv6-Mapped ::ffff:a00:1
Trimmed to three rows. The 32-bit integer form of 10.0.0.1.
Input: 0x08080808
Result: Detected format: hex Dotted Decimal 8.8.8.8 Decimal 134744072 IPv6-Mapped ::ffff:808:808
Trimmed. The 0x prefix makes the hex reading unambiguous.
Input: 0300.0250.0001.0001
Result: Detected format: octal Dotted Decimal 192.168.1.1
Trimmed. Every part starts with 0, so each one is read as octal.
Input: 010.0.0.1
Result: Detected format: dotted Dotted Decimal 10.0.0.1 Octal 0012.0000.0000.0001
Trimmed. Read as decimal here, while C's inet_aton() would read 010 as octal 8.
Input: 256.1.1.1
Result: Invalid input. Enter a valid IPv4 address in dotted decimal, decimal, hexadecimal, binary, or octal format.
An octet above 255 is rejected rather than guessed at.

04Common use cases

  • Turning an address into a 32-bit integer so you can store it in an INT UNSIGNED column and query ranges with BETWEEN
  • Reading an IP that a pcap, firewall log or C struct dump shows as a hex value like 0x0A000001
  • Spotting obfuscated hex, octal or integer hosts such as http://3232235777/ while reviewing a URL allowlist
  • Checking what a leading-zero address like 010.0.0.1 really means before it goes into a config file
  • Getting the ::ffff: IPv4-mapped form to compare against addresses logged by a dual-stack server
  • Showing students how each octet maps to eight bits in a networking class

05Tips

  • MySQL's INET_ATON() and INET_NTOA() do the integer conversion in SQL. PostgreSQL has a native inet type, which is usually a better choice than an integer column.
  • Many URL parsers and HTTP clients accept forms like http://0300.0250.0001.0001/ or http://3232235777/. Normalize hosts before checking them against an allowlist, or an SSRF filter can be bypassed.
  • If you mean hex but your value is all digits, add the 0x prefix. Without it, 12345678 is read as a decimal integer.
  • The ::ffff:c0a8:101 style output is what many dual-stack servers log for IPv4 clients. Strip the ::ffff: prefix before matching it against IPv4 rules.

06Related concepts

Subnetting, CIDR notation, Network mask, IP integer.

Frequently Asked Questions

What is IPv4 Converter?

IPv4 Converter is a free, browser-based developer tool on AIDToolStack. Convert IPv4 addresses between dotted decimal, integer, binary, hex, octal and IPv4-mapped IPv6 forms. It requires no installation or sign-up and works entirely in your browser.

Is IPv4 Converter free to use?

Yes. No sign-up, no fees and no usage cap.

Does IPv4 Converter store my data?

No. It runs in your browser; nothing is uploaded.

Related Tools

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe