Milliseconds to Seconds

Convert between millisecond and second timestamps. JavaScript uses ms, Unix uses seconds. Both fields sync in real time.

Date (from timestamp):

Enter milliseconds or seconds to see the corresponding date.

Milliseconds vs Seconds

Convert between millisecond and second timestamps. JavaScript uses milliseconds (Date.now()), while Unix/Linux uses seconds. This tool syncs both in real time.

When to Use

  • JavaScript: Date.now(), new Date().getTime() return milliseconds
  • Unix/Python/PHP: time.time(), time() return seconds
  • APIs: Some APIs use ms (e.g., Discord), others use seconds

Conversion

1 second = 1000 milliseconds
1640995200 (seconds) = 1640995200000 (ms)
1640995200000 (ms) = 1640995200 (seconds)

Pro Tips

  • Edit either field โ€“ the other updates automatically
  • Use "Current Time" to get the current timestamp in both formats