Epoch Converter — Unix Timestamp to Date & Date to Epoch

Convert Unix timestamps to human-readable dates or any date to epoch time. Supports seconds, milliseconds, microseconds, and nanoseconds. Current timestamp updates live.

Current Unix Epoch
sec
Milliseconds

Notable Unix Timestamps — click any row to convert

Epoch (seconds)Date (UTC)Description

Common Time Durations in Seconds

1 minute60
1 hour3,600
1 day86,400
1 week604,800
1 month (~30.44d)2,629,743
1 year (365.25d)31,557,600

What Is Unix Epoch Time?

The Unix epoch is January 1, 1970 at 00:00:00 UTC. A Unix timestamp is the total number of seconds elapsed since that moment. It is the universal way computers store time as a single integer — independent of timezone, locale, or calendar system. At the time of writing, the current Unix timestamp is over 1.78 billion seconds. The 2-billion-second milestone will occur on May 18, 2033.

Seconds vs Milliseconds vs Microseconds

Unix timestamps are traditionally in seconds (10 digits). JavaScript's Date.now() returns milliseconds (13 digits). Some databases and APIs use microseconds (16 digits) or nanoseconds (19 digits). The auto-detect mode above identifies the unit by digit count. If a timestamp looks wrong, try switching the unit manually.

Get the Current Epoch in Code

LanguageCurrent epoch (seconds)Convert epoch to date
JavaScriptMath.floor(Date.now() / 1000)new Date(epoch * 1000).toISOString()
Pythonimport time; int(time.time())datetime.fromtimestamp(epoch)
PHPtime()date('Y-m-d H:i:s', epoch)
JavaSystem.currentTimeMillis() / 1000Lnew Date(epoch * 1000L)
Gotime.Now().Unix()time.Unix(epoch, 0)
RubyTime.now.to_iTime.at(epoch)
C#DateTimeOffset.Now.ToUnixTimeSeconds()DateTimeOffset.FromUnixTimeSeconds(epoch)
MySQLSELECT UNIX_TIMESTAMP(NOW())SELECT FROM_UNIXTIME(epoch)
PostgreSQLSELECT EXTRACT(EPOCH FROM now())SELECT TO_TIMESTAMP(epoch)
Bashdate +%sdate -d @epoch

Year 2038 Problem

Systems that store Unix timestamps as a signed 32-bit integer will overflow on January 19, 2038 at 03:14:07 UTC (timestamp 2,147,483,647). After that, the value wraps to a large negative number, causing dates to appear as 1901. Modern 64-bit systems don't have this problem — a 64-bit Unix timestamp can represent dates billions of years into the future. Most current systems have been updated, but legacy embedded systems, old databases, and older languages may still be affected.

Paste the timestamp in the Timestamp → Date field above. The converter auto-detects whether it's in seconds (10 digits), milliseconds (13), microseconds (16), or nanoseconds (19). In JavaScript: new Date(timestamp * 1000).toISOString() (multiply by 1000 to convert seconds to ms first).
They are the same thing. Epoch time, Unix time, Unix timestamp, POSIX time — all refer to the number of seconds since January 1, 1970 00:00:00 UTC.
13 digits = milliseconds (JavaScript's Date.now() format). 10 digits = seconds (traditional Unix). Divide 13-digit timestamps by 1000 to get seconds. The auto-detect button handles this for you.
1,893,456,000 seconds (UTC). The Date → Timestamp tab above can calculate any date you enter.