← All text tools

IP Address Sorter

Sort a list of IPv4 or IPv6 addresses by their numeric value instead of as text, in ascending or descending order, and remove duplicates.

  • Free
  • No sign-up
  • Works on any device

About IP Address Sorter

A normal text sort puts 10.0.0.10 before 10.0.0.9, because it compares one character at a time. This sorter converts each address to its real numeric value first, so 10.0.0.9 comes before 10.0.0.10 and 192.168.1.1 comes after every 10.x address. Paste IPv4, IPv6 or a mix, choose ascending or descending order and decide whether duplicates should disappear. Lines that are not valid addresses are listed separately instead of being silently lost, which makes it handy for log files and firewall lists.

How to use IP Address Sorter

  1. Paste the addresses separated by new lines, spaces or commas.
  2. Choose ascending or descending order and tick or untick the duplicate removal.
  3. Copy the sorted list or download it as a text file.

Why use this tool?

Also known as

Frequently asked questions

Where do IPv6 addresses go in the sorted list?

In ascending order all IPv4 addresses come first and the IPv6 addresses follow, each group sorted by number. Descending order simply reverses the whole list.

Are 192.168.1.1 and 192.168.001.001 treated as equal?

Addresses with leading zeros are rejected on purpose, because some systems read them as octal numbers. They appear in the list of skipped lines so you can fix them.

Will the tool change how my IPv6 addresses are written?

Yes, they are printed in the shortest standard form in lower case, so the same address written two ways is recognised as a duplicate.

Is IP Address Sorter free?

Yes. IP Address Sorter on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Related tools