Sort Date Intervals

Got a list of date ranges like 2023-05-01 – 2023-06-01 that needs sorting? The Sort Date Intervals Tool makes it quick and easy to organize them. Whether you’re working with project timelines, vacation ranges, or historical spans, you can sort them by their start date or by total duration. Everything updates live as you type or import a file no reloads, no delays.

The tool handles standard YYYY-MM-DD formats, trims messiness, skips empty lines if needed, and lets you copy or export the sorted list with a click.

Paste your input above or import a file below.
No file chosen
Supported file types: .txt, .csv, .log
Total items: 0
Options
Trim whitespace
Ignore blank lines

How to Use:

  1. Paste date intervals (like 2023-01-01 - 2023-01-15) into the Input Date Intervals box.
  2. Or import a .txt, .csv, or .log file using the Choose File button.
  3. Under Options:
    • Select whether to sort by Start Date or Duration
    • Enable Trim whitespace to clean up each line
    • Turn on Ignore blank lines if needed
  4. The Sorted Output updates instantly.
  5. Use Copy Output or Export to File as needed.
  6. Click Clear All to reset and start fresh.

What Sort Date Intervals Tool can do:

  • Sorts YYYY-MM-DD - YYYY-MM-DD intervals by start or duration
  • Supports pasted text or file imports
  • Cleans whitespace and ignores empty lines
  • Updates live with no reloads
  • Displays a running total of sorted intervals
  • Exports clean output with a single click

Example:

Input:

2024-01-01 - 2024-01-10
2023-05-15 - 2023-06-01
2025-02-01 - 2025-02-28
2022-12-01 - 2022-12-15

Sorted by Start Date:

022-12-01 - 2022-12-15
2023-05-15 - 2023-06-01
2024-01-01 - 2024-01-10
2025-02-01 - 2025-02-28

Sorted by Duration:

2024-01-01 - 2024-01-10
2022-12-01 - 2022-12-15
2023-05-15 - 2023-06-01
2025-02-01 - 2025-02-28

Common Use Cases:

If you’re managing event periods, project schedules, academic terms, or any kind of date-span data, this tool helps sort them instantly. No more manual reordering or spreadsheet headaches just clean, sorted results in a few seconds.

Useful Tools & Suggestions:

If you’re mixing in time data, Sort Time Intervals helps keep everything aligned chronologically. And when you need to generate data to sort, Generate Random Date Intervals gives you plenty to play with.