Tiny Online Tools logoTiny Online ToolssearchSearch tools…grid_viewAll Tools
Homechevron_rightUtility Toolschevron_rightDuration FormatterDuration Formatter

Duration Formatter

Turn raw seconds, milliseconds, minutes, or hours into human-friendly durations.

Compact (3h 42m)Long (3 hours, 42 minutes)Colon (HH:MM:SS)ISO 8601 (PT3H42M)
3h 43m 45s
0
Days
3
Hours
43
Minutes
45
Seconds
0
Milliseconds

Similar Tools

Time Duration Calculator

Time Duration Calculator

Calculate time between two dates or add/subtract a duration from a date and time.

Date Format Converter

Date Format Converter

Convert dates between any formats: ISO 8601, US, EU, RFC, custom patterns, and Unix timestamps.

ISO Date Converter

ISO Date Converter

Convert any date into ISO 8601 format plus UTC, local, date-only, time-only, and weekday representations, instantly and for free.

SQL Formatter

SQL Formatter

Format and beautify SQL queries with dialect and style options.

Credit Card Generator (Test)

Credit Card Generator (Test)

Generate syntactically valid TEST credit card numbers (Luhn-valid) for Visa, Mastercard, Amex, Discover and JCB — for development only.

Random Float Generator

Random Float Generator

Generate lists of random decimal numbers with configurable range, precision, and distribution.

PDF Bulk Page Rotator

PDF Bulk Page Rotator

Rotate each PDF page independently with a click. Great for fixing mixed-orientation scans. Free, private, in-browser.

apps

More Tools

Browse our full collection of free online tools.

From raw numbers to readable time

You log elapsed: 13425 and your eyes glaze over. Is that seconds? Milliseconds? How many hours is that anyway? The Duration Formatter answers instantly — and in four different styles so the output matches whatever system you are feeding.

Pick the style your context wants

Compact3h 42m 5s. Dense, great for dashboards, tweets, inline status indicators. Omits zero parts so tiny durations stay tiny.

Long3 hours, 42 minutes, 5 seconds. Pluralizes correctly. Ideal for user-facing emails, receipts, and notifications where readability beats density.

Colon03:42:05 or 03:42:05.127 at millisecond precision. Matches video players, media metadata, stopwatch UIs, and most broadcast standards.

ISO 8601PT3H42M5S or P1DT2H. The wire format specified by RFC 3339 and used in JSON Schema, Postgres interval, and many standards-compliant APIs.

Precision control

Round to hours for high-level metrics ("session lasted ~4 hours"), minutes for meeting lengths, seconds for most logs, or milliseconds when you care about micro-benchmarks. The tool breaks your input into days, hours, minutes, seconds, and ms — and only emits the parts your precision asks for.

Common use cases

  • Log enrichment — turn duration_ms columns into human text before pasting into tickets.
  • Video pipelines — convert FFprobe durations into HH:MM:SS.sss cue points.
  • Billing — render hoursWorked fields with pluralized long form on invoices.
  • APIs — emit ISO 8601 durations for standards-compliant JSON responses.
  • Monitoring — build alert messages that say 5h 12m instead of 18720.

Details worth noting

  • Days overflow: 36 hours becomes 1d 12h in compact/long, but stays as 36:00:00 in colon style.
  • ISO 8601 uses P prefix and T separator before time components; PT0S is the canonical zero.
  • Millisecond precision in colon mode uses .sss three-digit padding.

All formatting happens locally in your browser. Nothing leaves the page.