Epoch Converter

Convert epoch values in milliseconds or seconds to readable UTC dates and back. The live value above is the current epoch time in milliseconds.

Current epoch time (milliseconds)—
Current Unix time (seconds)—

Timestamp to date

ISO 8601 (UTC)
Readable
ISO 8601 (your offset)
Unix seconds
Unix milliseconds

Date to timestamp

Unix seconds
Unix milliseconds
ISO 8601 (UTC)

JavaScript Date values, Java System.currentTimeMillis() and many database columns store milliseconds since the epoch. This converter shows the exact UTC instant, the ISO 8601 string and your local time.

The valid range for JavaScript dates is ±8,640,000,000,000,000 ms (about 273,790 years either side of 1970).

The time shown comes from your device clock. If your device clock is wrong, this page will be wrong by the same amount — UTClock does not contact any time server.

Frequently asked questions

How do I get epoch milliseconds in JavaScript?

Date.now() returns the current epoch time in milliseconds.

How do I convert milliseconds to seconds?

Divide by 1,000 and round down for a whole-second Unix timestamp.

Is epoch time affected by time zones?

No. It always counts from 1970-01-01T00:00:00Z.

Related time tools