Duration Formatter

New

Enter a numeric duration in any unit (milliseconds, seconds, minutes, hours, or days) and get it formatted as human-readable text ("2 hours, 15 minutes"), compact notation ("2h 15m"), HH:MM:SS clock format, ISO 8601 duration ("PT2H15M"), and total equivalents. Paste HH:MM:SS strings for auto-parsing.

Loading tool...Loading tool...

Common Use Cases

  • Format API response times from milliseconds to readable text
  • Convert video/audio duration to HH:MM:SS for display
  • Format log timestamps and elapsed times
  • Convert seconds from a database to human-readable duration
  • Generate ISO 8601 duration strings for calendar events

Frequently Asked Questions

What is ISO 8601 duration format?

ISO 8601 durations use the format P[n]DT[n]H[n]M[n]S. For example, 'PT1H30M' means 1 hour and 30 minutes. The 'P' prefix stands for 'period', and 'T' separates date from time components.

Can I paste a HH:MM:SS string directly?

Yes. Pasting a value like '01:30:00' into the input field is automatically detected and parsed as 5400 seconds.

Related Tools

Tool Info

CategorytimeAI EnhancementNoData StorageZero retention