Code tool

Sort URLs

Paste one URL per line. Original line text and the input order of equal URLs are preserved.

In-browser processingNo account requiredPrivacy details ↗

Local only · protocol, host, port, path, query, fragment · original lines preserved

A QUICK WALKTHROUGH

How to use this tool

  1. Paste URLs, one per line.
  2. Choose ascending or descending order.
  3. Sort and copy the result.

Stable URL keys

Protocol and host are compared case-insensitively. Port, path, query, and fragment follow their URL values; equal keys retain input order. Original lines are emitted unchanged.

Local processing

Only URL parsing and sorting happen in this browser. No URL is opened, resolved, fetched, or sent to a server.

GOOD TO KNOW

Common questions

What happens to invalid lines?

Lines that are not absolute URLs remain unchanged and are placed after valid URLs, preserving their relative order.

Does sorting normalize URLs?

No. The comparison key is normalized only for ordering; every output line keeps its original spelling and whitespace.