Time & Date Utilities100% Client-Side

Convert Seconds to Hours, Minutes, and Seconds

Paste the number of seconds in a duration to display hours, minutes, and seconds. The converter keeps any negative sign and carries seconds into minutes or hours where needed. Hours can grow past 24 because the value is a duration rather than a clock reading. Use the formatted result in a fixture or report that expects a colon-separated duration rather than an instant on a calendar.

Input
7 chars•1 lines
Output

Reverse tool

Hours Minutes and Seconds to Seconds

Convert a signed hours, minutes, and seconds duration to total seconds. Use a colon-separated value and retain any supported fractional seconds.

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

How to Use the Seconds to Hours Minutes and Seconds

  1. 1Paste one duration in seconds, with an optional sign.
  2. 2Use a period for a fraction and include up to three digits after it.
  3. 3Read the hour, minute, and second fields from left to right.
  4. 4Copy the result or check it with the reverse converter using the same precision.

Input & Output Examples

The duration contains one hour and one minute, with 1.25 seconds left over.

Input Sample
3661.25
Expected Output
01:01:01.25

The hours stay at 25 and the sign applies to the complete duration.

Input Sample
-90061.025
Expected Output
-25:01:01.025

Practical Developer Workflows

  • Format an elapsed duration from a local measurement fixture.
  • Display a duration longer than a day without wrapping the hours.
  • Check the formatted value of a signed adjustment that includes milliseconds.

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

The hour field continues counting. For example, a duration of 25 hours starts with 25 rather than wrapping to 01. Use a clock-time format in another tool if the result needs to represent a time within one day.

Explore Other Tools

7 suggested tools

View all tools