Skip to content
Devtoolry

Unix Timestamp Converter

Convert a Unix timestamp (epoch time) in seconds or milliseconds to a readable date and back, in any time zone, and see the current Unix time live.

Runs in your browser · Nothing uploadedFree · No sign-up

Something not working, or missing a feature? Send feedback

About the Unix Timestamp Converter

A Unix timestamp (also called Unix time, epoch time or POSIX time) is the number of seconds since 1 January 1970 at 00:00:00 UTC. The Unix Timestamp Converter shows the current Unix timestamp live, turns any timestamp in seconds, milliseconds or microseconds into a readable date in your time zone or any other, and turns a date back into a timestamp. Everything runs in your browser.

Times come from your browser’s built-in IANA time zone database, so daylight saving rules are always current.

How to use the Unix Timestamp Converter

  1. Read the current Unix timestamp at the top; it updates every second.
  2. Paste a timestamp to convert it to a date; the unit is detected from its length.
  3. Choose a display time zone to see the same moment in local time.
  4. Or enter a date and time to get its timestamp, and copy the value you need.

Timestamp length and unit

Count the digits of a current timestamp to know its unit before you convert it.

Digits (today)UnitWhere it comes from
10SecondsUnix shells (date +%s), PHP time(), Python int(time.time()), MySQL UNIX_TIMESTAMP(), JWT exp and iat
13MillisecondsJavaScript Date.now(), Java System.currentTimeMillis(), UUID v7, many REST APIs
16MicrosecondsGo UnixMicro(), Zipkin trace timestamps
19NanosecondsGo UnixNano(), Python time.time_ns(); divide by 1,000 before pasting, since the converter reads 16 or more digits as microseconds

Useful Unix timestamps

TimestampDate and time (UTC)
01 January 1970, 00:00:00 (the Unix epoch)
10000000009 September 2001, 01:46:40
170000000014 November 2023, 22:13:20
17672256001 January 2026, 00:00:00
17987616001 January 2027, 00:00:00
200000000018 May 2033, 03:33:20
214748364719 January 2038, 03:14:07 (the signed 32-bit limit)

Examples

Seconds to date

Input

1700000000

Result

2023-11-14T22:13:20.000Z

10 digits, so it is read as seconds: Tuesday 14 November 2023, 22:13:20 UTC.

Milliseconds to date

Input

1767225600000

Result

2026-01-01T00:00:00.000Z

13 digits, so it is read as milliseconds, the unit of JavaScript Date.now().

Common mistakes

  • Mixing seconds and milliseconds. A millisecond value read as seconds lands tens of thousands of years in the future; a second value read as milliseconds lands in January 1970. Check the digit count: 10 for seconds, 13 for milliseconds.
  • Local time vs UTC. A timestamp is the same moment everywhere; only its display differs by time zone. Store and send timestamps or UTC ISO strings, and convert to local time only for display.
  • Signed 32-bit storage. The largest signed 32-bit timestamp, 2147483647, is 19 January 2038 at 03:14:07 UTC. Use 64-bit integers or a proper date type for anything past that.

Works well with the Unix Timestamp Converter

Frequently asked questions

What is a Unix timestamp?

A single number that counts the seconds since the Unix epoch, 1 January 1970 at 00:00:00 UTC. It identifies one instant, the same everywhere on Earth, which is why logs, databases and APIs use it to store time.

Is a Unix timestamp in UTC or local time?

Neither: it has no time zone. It is counted from a UTC starting point, so the same value is correct in every zone, and a time zone only matters when you display it as a date.

Seconds or milliseconds?

Unix and most databases use seconds (10 digits today); JavaScript and many APIs use milliseconds (13 digits).

What is the year 2038 problem?

Signed 32-bit timestamps overflow on 19 January 2038. 64-bit timestamps, used by modern systems, do not have this limit.

How do I get the current Unix timestamp?

In JavaScript, Math.floor(Date.now() / 1000); in Python, int(time.time()); in a shell, date +%s; in MySQL, UNIX_TIMESTAMP(). The converter also shows the current value.

What is the Unix epoch?

The starting point of Unix time: 1 January 1970 at 00:00:00 UTC. A timestamp counts the seconds since then, ignoring leap seconds.

What is the current Unix timestamp?

It is shown live at the top of this page and changes every second. Today it is a 10-digit number in seconds, or a 13-digit number in milliseconds. The value is the same in every time zone.

How do I convert a Unix timestamp to a date?

Paste it into the converter above. In code, multiply seconds by 1,000 for JavaScript (new Date(ts * 1000)), use datetime.fromtimestamp(ts, timezone.utc) in Python, or FROM_UNIXTIME(ts) in MySQL. Our guide Unix timestamps explained covers Java, SQL, Excel and Google Sheets too.

Guides and tutorials