Results follow RFC 791 IPv4 numeric representations; validate production network changes against authoritative routing controls.

Skip to IP converter

IP Converter

Convert IPv4 between dotted decimal, decimal, hex, and binary — plus CIDR subnet details, developer snippets, and batch CSV export.

By Muhammad Abdullah Rauf · Founder, EverydayTools.proUpdated 2026-06-02· Reviewed by EverydayTools Editorial Team

What is an IP address converter?

An IP converter translates IPv4 addresses between dotted decimal, 32-bit integer, hexadecimal, binary, and CIDR subnet details.

An IPv4 address is a 32-bit number, usually written as four decimal octets separated by dots. Developers store that same value as an unsigned integer in databases, as hex in packet captures, or as binary when subnetting.

This tool accepts any common IPv4 input — dotted decimal, decimal integer (0–4294967295), hex (with or without 0x), binary (32 contiguous bits or four 8-bit octets), or CIDR (192.168.1.10/24) — and shows all four output formats at once. CIDR input adds network, netmask, broadcast, and host range.

Conversion runs entirely in your browser. Paste one address or thousands of lines for batch CSV export with copy-ready JavaScript, Python, and SQL snippets.

Paste IPv4 in any common format — get decimal, hex, binary, and dotted decimal instantly, locally.

IPv4 to integer math (RFC 791)

Each octet contributes to a 32-bit unsigned integer using powers of 256.

Formula

integer = (o1 × 256³) + (o2 × 256²) + (o3 × 256) + o4

Assumptions

  • Big-endian octet order (network byte order)
  • Unsigned 32-bit range 0–4294967295

Limitations

  • IPv6 (128-bit) is not supported on this page
  • Subnet panel applies to CIDR input only — not a full IPAM suite

How to use IP Converter

  1. Paste an IPv4 value

    Enter dotted decimal (192.168.1.1), decimal (3232235777), hex (0xC0A80101), or binary (11000000.10101000.00000001.00000001) — one per line.

  2. Review all formats

    The tool auto-detects each line and displays dotted decimal, 32-bit decimal, hex, and binary octets together.

  3. Check metadata tags

    Private (RFC 1918), loopback, link-local, and multicast ranges are labeled when applicable.

  4. Copy snippets or export

    Use Developer snippets for JavaScript, Python, or SQL, or export batch results as CSV for spreadsheets.

IP Converter examples

Database storage

Input

192.168.1.1

Output

3232235777 (decimal)

Store as UNSIGNED INT for fast BETWEEN range queries on IP lists.

Packet capture hex

Input

0x08080808

Output

8.8.8.8

Decode hex literals from Wireshark or tcpdump exports.

Subnet study

Input

11000000.10101000.00000001.00000001

Output

192.168.1.1

Translate dotted binary octets from networking coursework.

Who uses IP Converter?

Common real-world scenarios where this tool saves time.

Database IP columns

Convert dotted IPs to integers before INSERT or verify stored values decode correctly.

Log normalization

Batch-convert mixed decimal and dotted IPs from firewall exports to one format.

Security analysis

Move between hex indicators in threat reports and dotted decimal for block lists.

Learning & certification

Verify manual binary and hex conversions against bitwise engine output.

Workflow guides

Step-by-step chains that connect related tools for common tasks.

Normalize firewall log IPs

  1. Paste mixed decimal and dotted IPs from the log export.
  2. Review batch results — filter invalid lines if needed.
  3. Export CSV with dotted and decimal columns for SIEM import.

Plan a private subnet

  1. Paste your proposed CIDR (e.g. 10.20.30.0/24).
  2. Review network, broadcast, and usable host count before assigning DHCP.
  3. Copy MySQL or PostgreSQL snippets for schema migrations.

Reference tables

IPv4 representation formats

FormatExample (192.168.1.1)Typical use
Dotted decimal192.168.1.1Human-readable configs, DNS A records
Decimal integer3232235777MySQL INET_ATON, analytics databases
Hexadecimal0xC0A80101Packet dumps, firmware, memory views
Binary (octets)11000000.10101000.00000001.00000001Subnetting, ACL bit masks

IPv4 vs IPv6

IPv4IPv6
Address size32 bits128 bits
Example192.168.1.12001:db8::1
This toolSupportedNot supported — use URL parser for IPv6 host parsing

When to use IP Converter vs related tools

Related toolUse this tool whenUse related tool when
Base ConverterYou have a dotted IP or decimal and need all IPv4 formats.You need arbitrary base conversion (base 2–36) unrelated to IP layout.
URL ParserYou need numeric IP format conversions.You need to parse URLs with IPv4 or IPv6 hosts in brackets.

Advertisement

Frequently Asked Questions

What formats does this IP converter support?

IPv4 dotted decimal, 32-bit decimal integer (0–4294967295), hexadecimal (0x prefix optional), and binary (32 bits or four 8-bit octets separated by dots). All four outputs are shown for every valid input.

Does this support IPv6?

No. IPv6 uses 128 bits. This tool is IPv4-only. For IPv6 in URLs, use the URL parser which handles bracketed IPv6 hosts.

How do I convert IP to decimal?

Paste a dotted IPv4 address (e.g. 192.168.1.1). The decimal column shows the 32-bit unsigned integer (3232235777). The formula is (o1×256³)+(o2×256²)+(o3×256)+o4.

How do I convert decimal to IP?

Paste an integer between 0 and 4294967295 (e.g. 3232235777). The tool returns 192.168.1.1 and also shows hex and binary.

How do I convert IP to hex?

Paste any valid IPv4 input. The hex output uses uppercase 0x notation padded to eight digits (e.g. 0xC0A80101 for 192.168.1.1).

How do I convert hex to IP?

Paste hex with or without 0x (e.g. C0A80101 or 0xC0A80101). Values above 4294967295 are rejected.

How do I convert IP to binary?

Paste a dotted IP. Binary output shows four 8-bit octets separated by dots, matching common networking textbook notation.

How do I convert binary to IP?

Paste 32 bits (0100110010101000…) or four octets (11000000.10101000.00000001.00000001). Each octet must be exactly eight bits.

Why is 192.168.1.1 stored as 3232235777?

192×16777216 + 168×65536 + 1×256 + 1 = 3232235777. This is the standard unsigned 32-bit representation used by INET_ATON in MySQL and similar functions.

Why is 127.0.0.1 stored as 2130706433?

127.0.0.1 is loopback — the integer form is 2130706433. The tool tags loopback addresses automatically.

What is the maximum decimal IP value?

4294967295, which is 255.255.255.255 — the limited broadcast address.

Are leading zeros allowed in IPv4 octets?

No. Octets like 192.168.001.1 are rejected because leading zeros are ambiguous (some systems interpret them as octal).

Can I convert private IP addresses?

Yes. Private ranges (10/8, 172.16–31/12, 192.168/16) convert like any IPv4 address and are tagged RFC 1918 private.

Can I paste multiple IPs at once?

Yes. Enter one value per line (or comma-separated, which splits to lines). Up to 50,000 lines with CSV export.

How does auto-detection work?

Lines with colons are treated as IPv6 (unsupported). Dotted quads are IPv4. Pure digits are decimal. Hex letters or 0x prefix trigger hex. Binary uses 0b, 32 bits, or dotted bit octets.

Can I export batch results?

Yes. Export CSV with columns for input, dotted, decimal, hex, binary, and status — or download tab-separated TXT.

Is my IP address sent to a server?

No. Conversion uses JavaScript in your browser. EverydayTools never receives the addresses you paste.

Can I share a conversion with a colleague?

Click Share to copy a URL with your first input value in the query string (?q=). Opening the link pre-fills the converter.

What metadata tags appear?

Loopback (127/8), RFC 1918 private, link-local (169.254/16), multicast (224–239), broadcast, and reserved ranges when applicable.

Does this replace a subnet calculator?

No. This converts numeric representation only. For CIDR mask math, use a dedicated subnet tool when available.

How is this different from INET_ATON?

INET_ATON in MySQL produces the same decimal integer for IPv4. This tool also shows hex and binary and runs locally without a database.

Can I use decimal IPs in SQL BETWEEN queries?

Yes — store IPs as UNSIGNED INT and query WHERE ip_int BETWEEN start AND end after converting range boundaries with this tool.

What does 0x01010101 mean?

Hex 0x01010101 is dotted decimal 1.1.1.1 (Cloudflare DNS) — decimal 16843009.

Why reject IPv6 paste?

IPv6 requires 128-bit math and different notation. Mixing partial IPv6 support would produce incorrect results — the tool errors clearly instead.

Can I paste comma-separated values?

Yes. Commas are converted to newlines automatically so CSV pastes from spreadsheets work.

What happens to blank lines?

Blank lines are ignored in results. They do not produce errors or output rows.

How do I retry only failed lines?

After batch conversion, click Retry invalid to reload only lines that failed validation into the input box.

What RFC defines IPv4?

RFC 791 defines IPv4. Private ranges are in RFC 1918. This tool implements standard 32-bit unsigned conversion per those definitions.

Can I convert 0.0.0.0?

Yes. 0.0.0.0 is decimal 0, hex 0x00000000, and binary all zeros — often used as an unspecified address.

Does hex input require uppercase?

No. Both uppercase and lowercase hex digits are accepted (0xC0A80101 or 0xc0a80101). Output hex is uppercase.

What is link-local 169.254.x.x?

169.254.0.0/16 is APIPA/link-local assigned when DHCP fails. The tool tags these addresses when detected.

How do I copy all formats at once?

For a single address, use Copy all formats in the results panel. For batch, use Copy all results or Export CSV.

Does this tool support CIDR notation?

Yes. Paste IPv4/prefix like 192.168.1.10/24 to see network address, netmask, wildcard, broadcast, first/last host, and usable host count alongside all numeric formats.

Can I copy JavaScript or SQL for my database?

Yes. After conversion, open Developer snippets to copy JavaScript, Python, MySQL INET_ATON/INET_NTOA, or PostgreSQL inet examples with your values filled in.

Does the tool remember recent conversions?

Yes. Recent conversions are saved in your browser localStorage. Open Recent conversions to reload a past input — nothing is sent to a server.

Can I share a batch of IPs via URL?

Click Share to copy a URL. Single values use a short ?q= parameter; multi-line pastes use compressed encoding. Very large batches should use CSV export instead.

Privacy, accuracy, and trust

Privacy

IP conversion runs entirely in your browser — addresses you paste are never uploaded.

Accuracy

Engine uses bitwise 32-bit arithmetic matching RFC 791; verify critical infrastructure changes independently.

For development and analysis — not a substitute for network design review or security certification.

More free tools for the same workflow.

Advertisement

Reviewed by EverydayTools Editorial Team on 2026-06-02.