Time & Date Utilities100% Client-Side

Convert Hours, Minutes, and Seconds to Seconds

Paste a duration in hours, minutes, and seconds to calculate its total in seconds. The converter adds the hour and minute contributions to the final seconds field and preserves a negative sign on the whole duration. You can include a fraction after the seconds. Use the result when a test or another text field expects elapsed time as one number, including any fraction needed for the comparison.

Input
11 chars•1 lines
Output

Reverse tool

Seconds to Hours Minutes and Seconds

Convert a signed duration in seconds to hours, minutes, and seconds. Preserve up to three fractional digits and keep hours beyond a full day visible.

Open Seconds to Hours Minutes and Seconds
Example input
3661.25
Example output
01:01:01.25

How to Use the Hours Minutes and Seconds to Seconds

  1. 1Paste one duration in H:MM:SS form.
  2. 2Use two digits for minutes and for the whole part of seconds.
  3. 3Add a leading minus sign for a negative duration or a fraction after the seconds field.
  4. 4Copy the total seconds and compare it with the expected elapsed amount.

Input & Output Examples

An hour contributes 3600 seconds and a minute adds 60. The remaining 1.25 seconds are kept.

Input Sample
01:01:01.25
Expected Output
3661.25

Twenty-five hours exceed one day, and the minus sign applies to the hours and five milliseconds together.

Input Sample
-25:00:00.005
Expected Output
-90000.005

Practical Developer Workflows

  • Convert a colon-separated duration for a numeric fixture.
  • Check the elapsed seconds for a duration longer than a day.
  • Compare an exact fractional duration with the quantity stored by a test.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

Yes. The input represents elapsed time and permits more than one day of hours. The minutes and whole seconds fields must still be between 00 and 59. That keeps the components distinct even on long durations.

Explore Other Tools

7 suggested tools

View all tools