How to use the ms to seconds converter
- Select the unit you want to convert from using the dropdown.
- Type a number into the matching field for milliseconds, seconds, or minutes.
- The other two fields update instantly with the converted values.
- Change the source unit at any time to reverse the direction, such as converting seconds to ms.
How the conversions work
The math behind every milliseconds converter relies on three fixed relationships: one second equals 1,000 milliseconds, and one minute equals 60 seconds (or 60,000 milliseconds). Converting ms to seconds means dividing by 1,000. Converting seconds to ms means multiplying by 1,000. To go from ms to minutes, divide by 60,000.
For example, if you have 45,000 ms and need the result in seconds: 45,000 / 1,000 = 45 s. To express that same duration in minutes: 45 / 60 = 0.75 min. Because these factors are exact integers, whole-number inputs convert without visible rounding.
Common conversion reference
This table covers frequent values developers encounter when working with timers, animation frames, and network latency.
| Milliseconds | Seconds | Minutes |
|---|---|---|
| 1 | 0.001 | 0.0000167 |
| 16.67 | 0.01667 | 0.000278 |
| 100 | 0.1 | 0.00167 |
| 1,000 | 1 | 0.0167 |
| 5,000 | 5 | 0.0833 |
| 30,000 | 30 | 0.5 |
| 60,000 | 60 | 1 |
| 300,000 | 300 | 5 |
A frame at 60 fps lasts about 16.67 ms. A typical HTTP timeout might be set to 30,000 ms (30 seconds). Knowing how to quickly move between ms to seconds helps avoid off-by-a-thousand bugs.
Why developers mix up milliseconds and seconds
JavaScript's setTimeout, setInterval, and Date.now() all use milliseconds. Many backend languages and APIs, however, expect seconds. Passing 5 instead of 5000 to a JavaScript timer fires it almost immediately rather than after five seconds. Conversely, sending 5000 to an API that expects seconds creates a delay of over an hour.
Using a dedicated tool to convert ms to seconds before writing configuration values prevents these mistakes. When you need to schedule tasks across longer intervals, consider pairing this page with a cron builder or checking total durations with a seconds to hours calculator.
Handling fractional milliseconds
High-resolution timers like performance.now() return fractional milliseconds, such as 12.345 ms. The conversion to seconds is still a simple division: 12.345 / 1000 = 0.012345 s. Floating-point representation can introduce tiny errors beyond the twelfth significant digit, but for practical engineering purposes the result remains accurate.
If you are measuring very short intervals for benchmarking, keep the values in ms rather than converting to seconds. Smaller numbers with fewer leading zeros are easier to compare visually in profiler output.
Worked examples
| Example | Input | Result |
|---|---|---|
| 5000 ms to seconds | Milliseconds (ms): 5000; Convert from: ms | Milliseconds: 5,000; Seconds: 5; Minutes: 0.0833333333333 |
| 90 seconds to ms and minutes | Seconds (s): 90; Convert from: sec | Milliseconds: 90,000; Seconds: 90; Minutes: 1.5 |
| 2.5 minutes to ms | Minutes (min): 2.5; Convert from: min | Milliseconds: 150,000; Seconds: 150; Minutes: 2.5 |
| One frame at 60 fps (16.67 ms) | Milliseconds (ms): 16.67; Convert from: ms | Milliseconds: 16.67; Seconds: 0.01667; Minutes: 0.000277833333333 |
FAQ
How do I convert ms to seconds?
Divide the number of milliseconds by 1,000. For example, 2,500 ms divided by 1,000 equals 2.5 seconds.
How do I convert seconds to ms?
Multiply the number of seconds by 1,000. Five seconds multiplied by 1,000 gives 5,000 milliseconds.
How do I convert ms to minutes?
Divide the milliseconds by 60,000. There are 60,000 ms in one minute, so 120,000 ms equals 2 minutes.
Why does JavaScript use milliseconds instead of seconds?
JavaScript's Date object counts milliseconds since the Unix epoch, and timer functions such as setTimeout take milliseconds, so most browser code works in that unit. Many other languages and APIs use seconds, which is why conversions come up so often.
Is 1000 ms exactly 1 second?
Yes. The relationship between milliseconds and seconds is defined as exactly 1,000 to 1, with no rounding or approximation involved.
Can this handle negative values?
Yes. Negative durations are converted correctly, which is useful when computing time differences where the end precedes the start.