Date String Sorter

Automatically parse and sort date lists chronologically.

Sort Dates Chronologically

Paste your list of dates and sort them from oldest to newest or newest to oldest.
This tool automatically handles multiple common date formats, and Live mode keeps the output in sync as you type.


Load an example

1. Sort order
The order of the sorted result.
2. Ambiguous numbers
For DD/MM/YYYY lists pick "Day first", so 05/06/2024 means June 5.
3. Output date style
Applies when you click "Sort Dates". Pick a style to rewrite every result line in that format.
Ready to sort your dates.


Overview

The Date String Sorter is a browser-based utility that organizes lists of dates in chronological order. Instead of manually reordering lines, you simply paste your list, and the tool parses every line, sorts the entries by their actual point in time, and writes the ordered list back out.

What it does: This tool accepts a wide range of date formats in the same list - ISO dates like 2024-11-12, US numbers like 11/12/2024, international numbers like 25.12.2023, and written dates like Oct 10, 2023 or 10 Oct 2023. Optional times (09:45, 9:45 pm) are honored, so two entries on the same day sort by their time. On top of sorting, an "Output Date Style" dropdown converts every result line into the date style you choose, so a shabby mixed list can come out as one clean format.

Why it is useful: Organizing unstructured logs, project timelines, or historical record lists can be time-consuming. Real-world data rarely arrives in one format: spreadsheets mix DD/MM/YYYY with ISO dates, meeting notes use written months, API dumps use ISO strings. This tool sorts all of them together accurately - including day/time precision - while everything stays private in your browser.


Supported Input Formats

Each input line can use any of the formats below, and the same list may freely mix them. An optional time of day is accepted on any format.

ISO (year first): 2024-11-12, 2024/11/12, 2024.11.12, with or without a time such as 2024-11-12 09:45. This is the most common export format from databases and APIs.

Numeric (day or month first): 11/12/2024, 11-12-2024, 25.12.2023 - separators -, / and . all work. When both numbers are 12 or below, the "Ambiguous Numbers" setting decides whether 05/06/2024 means May 6 or June 5.

Written (month first): Oct 10, 2023, October 10 2023, Oct. 10th, 2023 - the month name may be short or full, with or without a period, and the day can carry an ordinal suffix (st, nd, rd, th).

Written (day first): 10 Oct 2023, 10th October, 2023 - the common style in most of Europe, Asia and beyond.

Time of day: Add 09:45, 9:45:30 or 9:45 PM after the date on any line. Times are included in the sort and kept when you convert the output style.

Four-digit years are strongly recommended. Two-digit years like 10/11/24 are ambiguous and are best avoided.


Output Date Styles

Choose "Output Date Style" before sorting and every line of the result is rewritten into that style - the input stays untouched. Given the input line 2024-11-12 09:45, each style produces:

Keep original format: 2024-11-12 09:45 - each line keeps the exact text it came in with, so a mixed list stays mixed.

ISO - 2024-11-12: 2024-11-12 09:45 - the machine-friendly format that sorts the same way everywhere. The best choice before re-importing a list into a spreadsheet or script.

Written - Nov 12, 2024: Nov 12, 2024 09:45 - short month name, compact and readable, ideal for notes and reports.

Full written - Tuesday, November 12, 2024: Tuesday, November 12, 2024 09:45 - adds the weekday name, useful for schedules and agendas.

Numeric - DD/MM/YYYY: 12/11/2024 09:45 - day first, the reading most of the world expects.

Numeric - MM/DD/YYYY: 11/12/2024 09:45 - month first, the common US style.


How to Use

1. Input: Paste your dates into the input box, one per line, click "Upload a file" to load a text file, or click "Load an example" to start with a sample.

2. Order: Select Oldest to Newest or Newest to Oldest.

3. Ambiguous numbers: If your list uses DD/MM/YYYY, switch "Ambiguous Numbers" to "Day first" so 05/06/2024 is read as June 5. Auto covers most other cases.

4. Output style: Leave "Keep original format" to sort without touching the text, or pick a style to normalize the whole list (2024-11-12, Nov 12, 2024, Tuesday, November 12, 2024, and two numeric styles).

5. Sort: Live mode (on by default) re-sorts and restyles automatically as you type or change any setting; you can also press Sort Dates manually, then Copy or download the result, or press "Clear" to start over.


Interactive Examples

1. Project Milestones

Sort key dates for a project launch, including start, development, and delivery phases.

2. Historical Birthdays

Order a list of famous historical figures by birth date.

3. Transaction Log

Organize a series of bank or activity log timestamps; times on the same day decide the order.

4. A Mixed-Format Cleanup

Five lines in five different styles sorted as-is. Switch "Output Date Style" to ISO and the exact same sort comes out as clean YYYY-MM-DD lines.


FAQs

FAQ 1: Can this tool handle different date formats in the same list?
Answer: Yes, that is the point of the tool. Each line is parsed independently, so ISO, US numeric, international numeric and written dates can all live in one list and still sort correctly against each other.

FAQ 2: What happens if a line does not contain a date?
Answer: Lines that the tool cannot parse as valid dates are ignored, and the result message tells you how many lines were skipped. They are never added to the output. It is best to use a list that only contains dates.

FAQ 3: What does the "Ambiguous Numbers" setting change?
Answer: A number like 05/06/2024 can mean May 6 (month first, the US reading) or June 5 (day first, as most of the world writes it). Auto assumes month first unless one number is over 12. Set "Day first" for European or Asian lists and "Month first" to force the US reading everywhere.

FAQ 4: How does the output style option work?
Answer: After parsing, each line is rewritten in the style you chose - keep the original text, ISO 2024-11-12, a written style, or numeric DD/MM/YYYY / MM/DD/YYYY. Only the sorted output is converted; your input stays exactly as it was. Any time attached to a line is preserved in the converted result.

FAQ 5: Are times of day taken into account?
Answer: Yes. A time like 09:45 or 9:45 pm after the date is included in the sort, so entries on the same day order by their time, down to the second.

FAQ 6: What about impossible dates like February 30?
Answer: A line is only accepted when the day exists for that month, so 2025-02-30 is rejected as invalid rather than silently becoming March 2.

FAQ 7: Should I use two-digit years?
Answer: Please avoid them. Write years as four digits (2024); a value like 10/11/24 is too ambiguous to interpret reliably.

FAQ 8: What is "Live mode"?
Answer: Live mode is on by default, so the list re-sorts instantly as you type or change any of the three settings. Switch it off if you prefer to press "Sort Dates" yourself.


Tools Worth Trying

TextToolz

The Ultimate Text Tools

TextToolz works seamlessly to let you convert and design your text. It is fast, reliable and secure. Trusted by thousands of users.