About this tool
Two converters on one page: seconds to a readable duration, and a typed duration back to total seconds. Both update as you type and run in your browser.
In the first box enter a number of seconds. Commas, spaces and underscores are stripped, so 93,845 works, and decimals and negative numbers are allowed. The duration appears in compact form such as 1d 2h 4m 5s, leaving out zero units, with milliseconds kept. Under it three tiles show the same span as a total number of days, hours and minutes, rounded to three decimals. A negative input gets a minus sign in the duration and is shown as a positive amount in the tiles.
In the second box type a duration like 2d 3h 4m 5s. The units are d, h, m, s and ms, and each number may have a decimal part, as in 1.5h. The parts are added together and shown in seconds. A plain number with no unit is read as seconds.
A day is exactly 86,400 seconds, with no calendar months, years or daylight-saving changes. The reader is lenient and skips text it does not recognise, and a leading minus sign in the second box makes the whole total negative, as in -1h 30m. Nothing leaves your device.