Skip to main content

IP to Decimal Converter (IPv4 to Integer, Binary, Hex)

IPv4 dotted-quad to 32-bit integer, binary and hex, both directions, browser-only

  • Runs locally
  • Category Developer & DevOps
  • Best for Formatting, validating, shrinking, or inspecting code-adjacent text.
Direction:
Examples:
3232235777
11000000.10101000.00000001.00000001
0xC0A80101

All conversion runs on plain JavaScript in your browser. Nothing about the address you enter is uploaded.

What this tool does

Free IP to decimal converter that turns an IPv4 dotted-quad address into a 32-bit integer, dotted binary and hexadecimal, and converts any of those back into an IP. Type 192.168.1.1 and read 3232235777, the binary 11000000.10101000.00000001.00000001, and 0xC0A80101 side by side, each with a one-click copy. Feed it a decimal like 3232235777 or a hex value like 0xC0A80101 and it rebuilds the address. Every octet is validated to 0-255 and every integer is range-checked to 0-4294967295, so a typo gives a clear error instead of a wrong answer. The math is the same packing databases, firewalls and routers use internally, which is why storing an IP as one integer column beats four bytes. Everything runs in your browser, the result rides in a shareable URL, and nothing you type is ever uploaded.

Tool details

Input
Text + Numbers
The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
Output
Live result + Copy
The result area focuses on usable output, with copy, download, or preview actions when supported.
Privacy
Browser-side processing
The main tool logic does not call an external API, so inputs normally stay in the current tab.
Save / share
Shareable URL state
Key settings are encoded in the URL so another person can reopen the same setup.
Performance budget
Initial JS <= 9 KB
No WASM budget is declared, keeping the tool quick to open on mobile.
Best fit
Developer & DevOps · Developer
Category and role tags drive related tools, internal links, and quick fit checks.

How to use

  1. 1. Input

    Paste or drop your content into the tool panel.

  2. 2. Process

    Click the button. All processing is local in your browser.

  3. 3. Copy / Download

    Copy the result or download to disk in one click.

How IP to Decimal Converter fits into your work

Use it in the small gaps between coding, reviewing, debugging, and shipping.

Developer jobs

  • Formatting, validating, shrinking, or inspecting code-adjacent text.
  • Preparing snippets for documentation, tickets, commits, or handoff.
  • Checking a small payload quickly without switching tools.

Developer checks

  • Run irreversible transforms like minify or obfuscate on a copy.
  • Keep secrets out of pasted snippets unless the tool explicitly stays local.
  • Use your normal tests or linter before shipping transformed code.

Good next steps

These links move the current task into a more complete workflow.

  1. 1 Unit Converter Convert between length, weight, temperature, area, volume, speed, time — instant, browser-only Open
  2. 2 Percentage Calculator 5 common percentage calculations — "x% of y", "x is what% of y", percentage change, increase/decrease — instant, browser-only Open
  3. 3 IP Subnet Calculator (CIDR) Type an IPv4 CIDR and get network, broadcast, host range, mask, wildcard, class and subnet splits — browser-only. Open

Real-world use cases

  • Store IP addresses as a single integer column

    You are designing a logins table and want to record the source IP per row. Instead of a 15-char VARCHAR, convert 203.0.113.42 to its integer and store one INT/BIGINT. Indexes get smaller, range filters over a whole subnet become a simple BETWEEN, and joins against a geo-IP table keyed by integer ranges run far faster than string comparisons.

  • Write a subnet range filter for analytics

    A dashboard needs to count hits from 10.0.0.0/8. Convert the network address 10.0.0.0 and the broadcast 10.255.255.255 to integers, then query WHERE ip BETWEEN 167772160 AND 184549375. The two bounds come straight out of this tool, and the query reads cleanly without any CIDR math living inside the SQL.

  • Debug a value that came back as a raw integer

    A log line or an API response handed you 3232235777 with no context. Paste it into the number-to-IP side and you instantly see 192.168.1.1, plus its binary and hex. No more squinting at a bare number wondering which host on the network it points at.

  • Teach or learn how subnetting maps to bits

    Studying for a networking exam, you need to see why a /26 splits a /24 into four blocks. Convert addresses to dotted binary and watch the boundary bits move: the first 26 ones are the network, the trailing six bits give 64 hosts per block. Seeing the 1s and 0s line up makes masks click in a way decimal never does.

Common pitfalls

  • Reversing the byte order. The first octet is the most significant byte, so 1.2.3.4 is 16909060, not 67305985. If you build the integer little-endian by mistake, every address comes out wrong. Pack big-endian, first octet times 16777216 down to last octet times 1.

  • Leaving a leading zero in an octet. Writing 192.168.01.1 looks harmless, but some parsers read 01 as octal and quietly change the value, while strict ones reject it outright. Drop the zero; an octet is just 0 to 255 in plain decimal.

  • Overflowing a signed 32-bit integer. 255.255.255.255 is 4294967295, which is larger than the 2147483647 max of a signed INT. Store IPv4 integers in an unsigned 32-bit or a 64-bit column, or addresses above 127.x wrap to negative numbers.

Privacy

Every conversion here is plain JavaScript running inside your browser tab. The address, the integer, the binary and the hex never leave the page, and nothing you type is logged. The one caveat: the shareable URL encodes your input in the query string, so a link pasted into chat records that value in the recipient server's access log. Internal addresses are rarely secret, but if you would rather not leak one, use the copy button instead of the share link.

FAQ

Tool combos

Folks in your role tend to reach for these alongside this tool.

Made by Toolora · 100% client-side · Updated 2026-06-13