Convert a Unix timestamp to a readable date in any time zone, or a date and time to a timestamp. Shows the current Unix time live.

Loading the tool…

What is a Unix timestamp?

Unix time (also called epoch time) is the number of seconds since 00:00:00 UTC on 1 January 1970. It’s how most computers, databases and APIs store dates, because it’s the same everywhere regardless of time zone.

Digits Usually means Example
10 Seconds 1798761600
13 Milliseconds (JavaScript, Java) 1798761600000
16 Microseconds 1798761600000000

Useful timestamps

Date (UTC) Unix time
1 January 1970 0
1 January 2000 946684800
1 January 2027 1798761600
19 January 2038, 03:14:07 2147483647 (the 32-bit limit)

When you enter a date, the tool uses the time zone you choose, including daylight saving time.

Frequently asked questions

How do I get the current Unix time?

It’s shown live at the top of the tool. In code, use Math.floor(Date.now()/1000) in JavaScript or time() in PHP.

Is my timestamp in seconds or milliseconds?

13 digits is milliseconds; 10 digits is seconds. The tool detects this automatically.

What is the year 2038 problem?

Systems storing Unix time as a signed 32-bit number overflow on 19 January 2038.

Does Unix time include leap seconds?

No, it ignores them.

Sources

Last updated: