IP Address Sorter
Paste a messy list of IPv4 addresses and sort them correctly in true numerical order, remove duplicates and tidy the list โ all in your browser, nothing uploaded.
Sort IP addresses the right way
Plain text sorting mangles IP addresses because it compares them character by character. That puts 10.0.0.2 before 9.0.0.1 and 192.168.1.10 before 192.168.1.9 โ which is wrong. This IP address sorter converts each address to its underlying 32-bit integer and sorts by that value, so the order matches how networks actually rank addresses.
How to use it
- Paste your addresses into the box โ one per line, or separated by commas or spaces.
- Optionally tick Remove duplicates to collapse repeats, and Sort descending to reverse the order.
- Press Sort addresses. The cleaned list appears with a count, and any invalid lines are skipped and reported.
- Copy the tidy result with one click.
Numeric sorting is exactly what makes tools like route tables and ACLs efficient. If you want to understand the 32-bit value behind each address, our guide on what an IP address is breaks it down octet by octet.
Common uses
Sorting is handy for reviewing firewall logs, de-duplicating allow-lists, comparing two exports, or simply making a spreadsheet column readable. Once your list is ordered, you might feed a start and end address into the IP Range to CIDR calculator, or check individual entries with the IPv4 Subnet Calculator.
Frequently asked questions
Why can't I just sort IP addresses alphabetically?
Because text sorting treats each character separately, so 10.0.0.2 would come before 9.0.0.1 and 192.168.1.10 would land before 192.168.1.9. This tool converts every address to its 32-bit numeric value first, so they sort the way a router sees them.
Can it remove duplicate IP addresses?
Yes. Tick the remove duplicates box and identical addresses are collapsed to a single entry. You can also choose ascending or descending order.
What input formats are accepted?
Paste addresses one per line, or separated by commas or spaces. Valid IPv4 addresses are parsed and sorted; anything that is not a valid address is skipped and reported in the summary.
Is my list uploaded anywhere?
No. Parsing, sorting and de-duplicating all happen in your browser. Your list never leaves your device.
Want the theory? Read the guides โ ยท Visit the zoo โ