# Time interval sorter

World's simplest time tool
With this browser-based application, you can sort a list of time intervals. You can choose the sorting order in the options and rearrange the given intervals from the earliest interval to the latest interval (or vice versa), from the shortest interval to the longest interval (or vice versa), or just change the positions of intervals randomly. You can also display the duration of each interval on the screen and get rid of duplicate time intervals. Additionally, you can adjust the time format in the sorted output list and drop the seconds component if it's zero (i.e. ":00") from all time values. Created by computer nerds from team Browserling.

Check out our primary project!
Browserling

We created Browserling – get a cloud browser in 5 seconds. Check it out!

A link to this tool, including input, options and all chained tools.

Can't convert.

## What is a time interval sorter?

learn more about this tool
This is a quick online utility for sorting multiple time intervals. A time interval is defined by a starting time and an ending time. For example, "6:30:00 - 8:45:00" is a time interval that starts at 6:30am, ends at 8:45am, and has a length of 2 hours and 15 minutes. When you load multiple such time intervals in this application, it will arrange them so that they suit your criteria. In particular, you can arrange time intervals from the earliest to the latest. In this case, the interval with the start timer being closest to "00:00:00" will be placed higher in the list. Next, you can display the times from the latest to the earliest. In this case, the interval with the start timer closest to "24:00:00" will be placed higher in the list. You can also sort intervals by their length. In this sorting mode, you can rearrange the intervals from the shortest interval to the longest interval or vice versa. The last sorting mode allows you to randomize the interval positions in the list and display them in mixed order. The list of time intervals can contain any number of values and they must be entered in a valid clock time or timer format. The valid formats are: "hh:mm:ss - hh:mm:ss", "hh:mm - hh:mm", and individual time points "hh:mm:ss", or "hh:mm". The clock times can be in either 12-hour or 24-hour formats, such as "4:10 am - 1:45 pm" or "12:00:00 - 16:00:00". When the intervals are sorted, you can print each interval's duration/length in parentheses. Additionally, you can filter intervals and remove duplicate ones. The output intervals can also be re-formatted and you can choose the format for the sorted time intervals. In case many of the intervals have zero seconds ("00" seconds, such as "06:30:00" or "14:22:00"), you can optionally remove these zero seconds from the intervals (in this case "06:30:00" will be printed as "06:30" and "14:22:00" will be printed as "14:22"). Timeabulous!

## Time interval sorter examples

Click to useSort by Earliest Time

This example sorts a list of time intervals in order from the earliest to latest. It rearranges the timers so that the first timer in the list is one just after midnight, then come the morning timers, then the noon timers, then the afternoon timers, and finally the evening timers.

04:25:00 - 09:40:36
07:22:12 - 07:58:49
03:56:10 - 23:25:40
05:37:44 - 18:31:45
09:54:17 - 18:04:25
19:58:21 - 23:54:15
00:16:48 - 17:42:36
10:52:04 - 11:56:15
02:50:06 - 07:47:23

00:16:48 - 17:42:36
02:50:06 - 07:47:23
03:56:10 - 23:25:40
04:25:00 - 09:40:36
05:37:44 - 18:31:45
07:22:12 - 07:58:49
09:54:17 - 18:04:25
10:52:04 - 11:56:15
19:58:21 - 23:54:15

**Required options**

Print times from morning to evening.

Display the length of
each time interval.

Display only unique intervals in
the list. (All copies are deleted).

Drop the seconds part of the
time if it is zero.
For example, the interval
"10:20:00 - 12:00:00" will
become "10:20 - 12:00".

Sort Time Intervals by Their Duration

In this example, we sort time intervals by their length. Their length is calculated by subtracting the start time from the end time. We rearrange the intervals from the shortest to longest and also print the duration of each interval on the screen. This list also contains single-point intervals consisting of only one timer value. The duration of such intervals is defined to be zero. We also enable the "Print Unique Intervals" option, thereby removing all duplicate intervals, and output a sorted list in an unpadded time format "H:M:S".

06:42:28 - 09:02:30
10:46:50 - 16:46:50
04:08:08 - 04:25:08
10:46:50 - 16:46:50
10:38:20 - 19:23:20
15:58:00
06:42:28 - 09:02:30
15:58:00
00:52:54 - 04:53:06
07:33:02 - 10:34:03
16:26:27
00:52:54 - 04:53:06

15:58:0 (0s)
16:26:27 (0s)
4:8:8 - 4:25:8 (17m)
6:42:28 - 9:2:30 (2h 20m 2s)
7:33:2 - 10:34:3 (3h 1m 1s)
0:52:54 - 4:53:6 (4h 12s)
10:46:50 - 16:46:50 (6h)
10:38:20 - 19:23:20 (8h 45m)

**Required options**

Print intervals from shortest to longest.

Display the length of
each time interval.

Display only unique intervals in
the list. (All copies are deleted).

Drop the seconds part of the
time if it is zero.
For example, the interval
"10:20:00 - 12:00:00" will
become "10:20 - 12:00".

Randomize a Time Interval List

In this example, we load an already sorted list of time intervals in 12-hour format as the input and ask our program to produce a new list where all intervals are now in random order. To do it, we switch to the random sort mode in the options. We keep the 12-hour format by switching to the format "H:M:S AM/PM" and additionally, we discard the zero seconds components from all clock times.

07:31 pm - 10:56 pm
05:48 pm - 11:29 pm
03:11 pm - 06:02 pm
11:03 am - 01:21 pm
03:58 am - 11:16 am
03:49 am - 02:27 pm
02:16 am - 09:32 am
01:35 am - 09:48 pm

7:31 pm - 10:56 pm
11:3 am - 1:21 pm
3:49 am - 2:27 pm
5:48 pm - 11:29 pm
3:11 pm - 6:2 pm
1:35 am - 9:48 pm
2:16 am - 9:32 am
3:58 am - 11:16 am

**Required options**

Print intervals in random order.

Display the length of
each time interval.

Display only unique intervals in
the list. (All copies are deleted).

Drop the seconds part of the
time if it is zero.
For example, the interval
"10:20:00 - 12:00:00" will
become "10:20 - 12:00".

Pro tips
Master online time tools

You can pass input to this tool via

__?input__query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinetimetools.com/sort-time-intervals

__?input__=04%3A25%3A00%20-%2009%3A40%3A36%0A07%3A22%3A12%20-%2007%3A58%3A49%0A03%3A56%3A10%20-%2023%3A25%3A40%0A05%3A37%3A44%20-%2018%3A31%3A45%0A09%3A54%3A17%20-%2018%3A04%3A25%0A19%3A58%3A21%20-%2023%3A54%3A15%0A00%3A16%3A48%20-%2017%3A42%3A36%0A10%3A52%3A04%20-%2011%3A56%3A15%0A02%3A50%3A06%20-%2007%3A47%3A23&sort-by-earliest=true&print-duration=false&remove-duplicates=false&format=hh-mm-ss&remove-zero-seconds=false
All time tools

Quickly visualize your life in weeks or months.

Quickly draw an analog clock that shows a particular time.

Quickly draw a digital clock that shows a particular time.

Quickly draw a monthly calendar for any month of the year.

Quickly print a list of neat-looking clock times (such as 10:11:12).

Quickly print a list of neat-looking calendar dates (such as 2055-05-05).

Quickly print a list of symmetric clock times (such as 05:22:50).

Quickly print a list of symmetric dates (such as 2020-02-02).

Quickly convert clock time in H:M:S format to seconds.

Quickly convert seconds to clock time in H:M:S format.

Quickly convert time in 24 hour format to 12 hour format.

Quickly convert time in 12 hour format to 24 hour format.

Quickly find how many seconds have passed since midnight.

Quickly find how many seconds are left till midnight.

Quickly find the difference between two clock times.

Quickly find the difference between two calendar dates.

Quickly find the age difference between two or more people.

Quickly add hours, minutes, and seconds to the given time.

Quickly subtract hours, minutes, and seconds from the given time.

Quickly add days, months, and years to the given date.

Quickly subtract days, months, and years to from the given date.

Quickly change the current time format to any new format.

Quickly change the current date format to any new format.

Quickly round the given clock time up or down.

Quickly round the given calendar date up or down.

Quickly drop seconds and minutes from a clock time.

Quickly drop days and months from a calendar date.

Quickly sort clock times in ascending or descending order.

Quickly sort calendar dates in ascending or descending order.

Quickly sort time intervals by their start time or length.

Quickly sort date intervals by their start date or length.

Quickly check if the given clock time is valid.

Quickly check if the given calendar date is valid.

Quickly find how many hours are in the given days.

Quickly find how many days are in the given hours.

Quickly find the astrological sign by the birthday or any date.

Quickly print a list of the dates of all astrological signs.

Quickly find the average value of multiple clock times.

Quickly find the average value of multiple calendar dates.

Quickly generate a list of random clock times.

Quickly generate a list of random calendar dates.

Quickly create a list of clock times that match your criteria.

Quickly generate a list of calendar dates that match your criteria.

Quickly split the given time period into multiple intervals.

Quickly split the given date period into multiple intervals.

Quickly generate increasing or decreasing clock times.

Quickly generate increasing or decreasing calendar dates.

Quickly print a list of all leap years.

Quickly print a list of all common years.

Quickly test if the given year is a leap year.

Quickly test if the given year is a common year.

Quickly find how old a cat would be if it was a human.

Quickly find how old a human would be if he/she was a cat.

Quickly find how old a dog would be if it was a human.

Quickly find how old a human would be if it was a dog.

Quickly convert a modern Gregorian date to a Julian date.

Quickly convert an ancient Julian date to a Gregorian date.

Quickly calculate the Julian day number for any calendar date.

Quickly convert the Julian day to a regular calendar date.

Quickly print a list of all Easter dates for all years.

Quickly convert a UNIX Epoch time to a human-readable time.

Quickly convert human-readable time to a UNIX Epoch time.

Quickly generate increasing or decreasing UNIX timestamps.

Quickly generate one or more random UNIX Epoch times.

Quickly convert a HH:MM:SS clock to a military HHMM clock.

Quickly convert a military clock HHMM to a HH:MM:SS clock.

Quickly write a clock time in text format (as English text).

Quickly write a calendar date in text format (as English text).

Quickly add slight perturbations to the given clock times.

Quickly add slight perturbations to the given calendar dates.

Quickly find what day of the week the given calendar date falls on.

Quickly find what day of the year the given calendar date falls on.

Quickly find what week of the year the given calendar date falls on.

Quickly calculate the calendar date from a day number of a year.

Quickly find the angle between the hour hand and minute hand.

Quickly print a list of all clock times with a specific hand angle.

Quickly print all dates when a specific day happens.

Quickly find all Fridays that fall on the 13th day of the month.

Quickly create a list of all Independence Day dates.

Quickly create a list of all Christmas Day dates.

Quickly create a list of all New Year dates.

Quickly create a list of all Thanksgiving dates.

Quickly show useful information about a particular clock time.

Quickly show useful information about a particular calendar date.

Quickly draw a timeline of multiple time intervals.

Quickly draw a visualization of multiple date intervals.

Quickly find the time a clock shows if you look at it in a mirror.

Quickly convert time and date from one timezone to another.

Quickly convert time and date from one country to another.

Quickly print the season (winter, spring, summer, autumn) by date.

Coming soon
These time tools are on the way

Draw a Binary Clock

Draw a binary clock that shows time in base two.

Draw a Salvador Dali Clock

Draw a clock in Salvador Dali style showing custom time.

Draw a Weird Clock

Draw a weird-looking clock that shows a particular time.

Animate an Analog Clock

Create a GIF animation of an analog clock.

Animate a Digital Clock

Create a GIF animation of a digital clock.

Animate a Broken Clock

Create a GIF animation of a clock that's broken.

Draw a Daily Calendar

Draw a daily calendar for a single day.

Draw a Weekly Calendar

Draw a weekly calendar for any week of the month.

Draw a Yearly Calendar

Draw a yearly calendar for the entire year.

Draw a Lunar Calendar

Draw a calendar that shows moon phases.

Draw a Solar Calendar

Draw a calendar that shows the seasons and Sun's position.

Create an Animated Timer

Draw an animation that counts down (or up) time.

Animate an Hourglass

Create a GIF animation of a sand clock.

Draw an Infinite Spiral Clock

Animate a timeless clock that goes in an infinite spiral.

Draw Time as a Pie Chart

Visualize the given clock time as a pie chart.

Draw Date as a Pie Chart

Visualize the current year as a pie chart.

Draw Time as a Bar Chart

Visualize the given clock time as a bar chart.

Draw Date as a Bar Chart

Visualize the current year as a bar chart.

Draw Time as a Pixel Wall

Visualize the given clock time as a pixel wall (1px = 1sec).

Draw Date as a Pixel Wall

Visualize the current year as a pixel wall (1px = 1day).

Draw Time as Bubbles

Visualize the given clock time as bubbles.

Draw Date as Bubbles

Visualize the current year as bubbles.

Draw a Time Arrow

Visualize the given clock time as an arrow.

Convert Time to Percentage

Quickly calculate time passed and left in the current day as pct.

Convert Date to Percentage

Quickly calculate time passed and left in the current year as pct.

Convert Time to Binary Time

Convert regular clock time to binary clock time (bintime).

Convert Date to Binary Date

Quickly regular calendar date to binary date (bindate).

Convert Time to Decimal Time

Convert regular clock time to decimal clock time (dectime).

Convert Date to Decimal Date

Quickly regular calendar date to decimal date (decdate).

Convert Time to Hex Time

Convert regular clock time to hexadecimal time (hextime).

Convert Date to Hex Date

Quickly regular calendar date to hexadecimal date (hexdate).

Animate Moon's Phases

Create a GIF animation of the Moon for a particular month.

Animate Moon's Orbit

Create an animation of the Moon orbiting the Earth.

Animate Mercury's Orbit

Create a 88 day animation of the Mercury orbiting the Sun.

Animate Venus's Orbit

Create a 225 day animation of the Venus orbiting the Sun.

Animate Earth's Orbit

Create a 365 day animation of the Earth orbiting the Sun.

Animate Mars's Orbit

Create a 687 day animation of the Mars orbiting the Sun.

Animate Jupiter's Orbit

Create a 4,330 day animation of the Jupiter orbiting the Sun.

Animate Saturn's Orbit

Create a 10,756 day animation of the Saturn orbiting the Sun.

Animate Uranus's Orbit

Create a 30,687 day animation of the Uranus orbiting the Sun.

Animate Neptune's Orbit

Create a 60,190 day animation of the Neptune orbiting the Sun.

Animate Pluto's Orbit

Create a 90,560 day animation of the Pluto orbiting the Sun.

Animate Solar System

Create an animation of all planets in the Solar System.

Animate Mars's Moons

Create an animation of Phobos and Deimos orbiting Mars.

Animate Jupiter's Moons

Animate Io, Europa, Ganymede, Callisto orbiting Jupiter.

Animate Saturn's Moons

Animate Titan, Rhea, Iapetus, Enceladus orbiting Saturn.

Animate Uranus's Moons

Animate Titania, Oberon, Umbriel, Ariel, Miranda orbiting Uranus.

Animate Neptune's Moons

Animate Triton, Nereid, and Proteus orbiting Neptune.

Animate Pluto's Moons

Animate Charon, Nix, Hydra, Kerberos, Styx orbiting Pluto.

Find When Planets Align

Find dates when two or more planets align in a straight line.

Find Dates of Solar Eclipse

Find dates when the solar eclipse happens.

Find Dates of Lunar Eclipse

Find dates when the lunar eclipse happens.

Create a Time Matrix

Represent a clock time as a matrix.

Create a Date Matrix

Represent a calendar date as a matrix.

Create a Time Vector

Represent a clock time as a vector.

Create a Date Vector

Represent a calendar date as a vector.

Visualize Time Series

Draw a time series chart.

Find Overlapping Times

Given a bunch of time intervals, find overlapping intervals.

Generate Overlapping Times

Generate a bunch of overlapping time intervals.

Generate Non-overlapping Times

Generate a bunch of non-overlapping time intervals.

Generate Random Time Intervals

Generate random clock time intervals.

Find Overlapping Dates

Given a bunch of date intervals, find overlapping intervals.

Generate Overlapping Dates

Generate a bunch of overlapping date intervals.

Generate Non-overlapping Dates

Generate a bunch of non-overlapping date intervals.

Generate Random Date Intervals

Generate random calendar date intervals.

Swap Clock Hands

Swap a clock's hour hand with minute hand.

Reverse Clock Time

Find the reverse of the given clock time.

Invert Clock Time

Find the inverse of the given clock time.

Shift Clock Time

Shift the given clock time by any time interval.

Change Clock Scale

Change the clock scale from 24 hours to any other hours.

Generate Valid Clock Times

Generate a list of valid clock times (for testing).

Generate Invalid Clock Times

Generate a list of invalid clock times (for testing).

Generate Valid Calendar Dates

Generate a list of valid calendar dates (for testing).

Generate Invalid Calendar Dates

Generate a list of invalid calendar dates (for testing).

Add Errors to Clock Times

Create errors in the given clock times (for testing).

Add Errors to Calendar Dates

Create errors in the given calendar dates (for testing).

Convert Date to Seconds

Convert a calendar date to seconds.

Convert Seconds to Date

Convert seconds to a calendar date.

Convert English to Crontab

Create a crontab expression from human language.

Convert Crontab to English

Rewrite a crontab entry into human language.

Find Week of the Month

Quickly find the week of the month of a calendar date.

Find Days Since the Start of Year

Quickly find how many days have passed since start of the year.

Find Days Till the End of Year

Quickly find how many days are left till the end of the year.

Find Days Till a Specific Date

Quickly find how many days are left till a specific date.

Convert Seconds To Minutes

Find how many minutes are in the given seconds.

Convert Seconds To Hours

Find how many hours are in the given seconds.

Convert Seconds to Days

Find how many days are in the given seconds.

Convert Seconds to Weeks

Find how many weeks are in the given seconds.

Convert Seconds to Months

Find how many months are in the given seconds.

Convert Seconds to Years

Find how many years are in the given seconds.

Convert Minutes to Seconds

Find how many seconds are in the given minutes.

Convert Minutes To Hours

Find how many hours are in the given minutes.

Convert Minutes to Days

Find how many days are in the given minutes.

Convert Minutes to Weeks

Find how many weeks are in the given minutes.

Convert Minutes to Months

Find how many months are in the given minutes.

Convert Minutes to Years

Find how many years are in the given minutes.

Convert Hours To Seconds

Find how many seconds are in the given hours.

Convert Hours to Minutes

Find how many minutes are in the given hours.

Convert Hours to Weeks

Find how many weeks are in the given hours.

Convert Hours to Months

Find how many months are in the given hours.

Convert Hours to Years

Find how many years are in the given hours.

Convert Days to Seconds

Find how many seconds are in the given days.

Convert Days to Minutes

Find how many minutes are in the given days.

Convert Days to Weeks

Find how many weeks are in the given days.

Convert Days to Months

Find how many months are in the given days.

Convert Days to Years

Find how many years are in the given days.

Convert Weeks to Seconds

Find how many seconds are in the given weeks.

Convert Weeks To Minutes

Find how many minutes are in the given weeks.

Convert Weeks To Hours

Find how many hours are in the given weeks.

Convert Weeks to Days

Find how many days are in the given weeks.

Convert Weeks to Months

Find how many months are in the given weeks.

Convert Weeks to Years

Find how many years are in the given weeks.

Convert Months to Seconds

Find how many seconds are in the given months.

Convert Months To Minutes

Find how many minutes are in the given months.

Convert Months To Hours

Find how many hours are in the given months.

Convert Months to Days

Find how many days are in the given months.

Convert Months to Weeks

Find how many weeks are in the given months.

Convert Months to Years

Find how many years are in the given months.

Convert Years to Seconds

Find how many seconds are in the given years.

Convert Years To Minutes

Find how many minutes are in the given years.

Convert Years To Hours

Find how many hours are in the given years.

Convert Years to Days

Find how many days are in the given years.

Convert Years to Weeks

Find how many weeks are in the given years.

Convert Years to Months

Find how many months are in the given years.

Convert a Bird's Age to Human Years

Find how old a human would be if he/she was a bird.

Convert a Human's Age to Bird Years

Find how old a bird would be if it was a human.

Convert Earth Time to Mars Time

Convert clock time on Earth to clock time on Mars.

Convert Mars Time to Earth Time

Convert clock time on Mars to clock time on Earth.

Generate Equal H:M:S Times

Print a list of clock times with hours equal mins equal secs.

Generate Equal Y-M-D Dates

Print a list of calendar dates with years equal months equal days.

Set Straight Clock Hands

Print a list of all clock times when hands are in a straight line.

Normalize Clock Times

Given clock times in various formats, convert them to one format.

Normalize Calendar Dates

Given calendar dates in various formats, make them the same format.

Rotate Clock Times

Cyclically shift HH, MM, SS time parts to the left or right.

Rotate Calendar Dates

Cyclically shift YYYY, MM, DD date parts to the left or right.

Freeform Time Calculator

Perform freeform clock time arithmetics.

Freeform Date Calculator

Perform freeform calendar date arithmetics.

Calculate Clock Sum

Find the sum of hours plus minutes plus seconds.

Calculate Calendar Sum

Find the sum of years plus months plus days.

Find Clock Sum

Find clock hand position so that hr + min + sec equals your value.

Find Calendar Sum

Find calendar date so that year + months + day equals your value.

Generate Clock Emojis

Print all clock icons from 00:00 to 24:00.

Create Zalgo Time

Generate date and time that only Zalgo can understand.

Subscribe!
Never miss an update

Cool!

Notifications
We'll let you know when we add this tool

Cool!