What is a duration formatter?
A duration formatter turns a raw integer (usually milliseconds) into a string a human can read at a glance: 11,722,000 ms becomes 3h 15m 22s. The opposite operation — taking 3h 15m and returning 11,700,000 — is parsing. Both are surprisingly absent from the JavaScript standard library, so engineers either pull in a 30 KB dependency or hand-roll the same modular arithmetic over and over.
This tool gives you all six common output formats from one input, plus a bulk mode for lists and a reverse mode for parsing back. Math is integer-only, so a value like 86_400_001 ms renders cleanly as 1d 0h 0m 0s with the trailing 1 ms intact instead of rounding to a decimal day.