Skip to content
Menu

Unix Timestamp Converter

Epoch seconds or milliseconds to a date and time you can read.

10 digits = seconds, 13 digits = milliseconds.

UTC

Mon, 21 Sept 2026, 14:13

Scale

Not to scale

All results
ISO 8601 (UTC)2026-09-21T14:13:20.000Z
OffsetUTC+0
Seconds1790000000
Milliseconds1790000000000

A Unix timestamp counts the seconds since 1 January 1970 00:00:00 UTC. So 1,000,000,000 was 9 September 2001 at 01:46:40 UTC, and 1,790,000,000 is 21 September 2026 at 14:13:20 UTC. 13-digit values are milliseconds, as used by JavaScript.

How it works

date = 1 January 1970 00:00:00 UTC + timestamp seconds

Worked example

With the timestamp 1790000000, shown in UTC:

  1. 1790000000 has 10 digits, so it is in seconds: × 1000 = 1790000000000 ms.
  2. Counting from 1970-01-01 00:00 UTC gives 2026-09-21T14:13:20Z.
  3. In UTC (UTC+0) that is Mon, 21 Sept 2026, 14:13.

When you need this conversion

Reading log files, databases and API responses, debugging expiry times in tokens and cookies, and checking when a file or event was recorded.

Landmark timestamps

  • 0: 1 January 1970, 00:00:00 UTC
  • 1,000,000,000: 9 September 2001, 01:46:40 UTC
  • 1,700,000,000: 14 November 2023, 22:13:20 UTC
  • 1,790,000,000: 21 September 2026, 14:13:20 UTC
  • 2,147,483,647: 19 January 2038, 03:14:07 UTC (32-bit limit)

Seconds or milliseconds?

Unix tools and most databases use seconds. JavaScript’s Date.now() and many APIs use milliseconds. The converter checks the length: 10 digits are seconds, 13 are milliseconds. Negative values are dates before 1970.

Getting a timestamp

  • JavaScript: Math.floor(Date.now() / 1000)
  • Python: int(time.time())
  • Shell: date +%s

Common mistakes

Treating milliseconds as seconds. A 13-digit value read as seconds lands tens of thousands of years in the future.

Adding a time zone offset to the timestamp. Store UTC; apply the zone only when showing it.

To compare zones, use the time zone converter.

Questions

How do I tell seconds from milliseconds?

Count the digits. Current timestamps are 10 digits in seconds and 13 digits in milliseconds.

What happens in 2038?

Signed 32-bit counters overflow after 2,147,483,647 seconds, at 03:14:07 UTC on 19 January 2038. Modern systems use 64-bit values.

Does a Unix timestamp include a time zone?

No. It's always counted from UTC. The time zone only matters when you display it.

Does Unix time count leap seconds?

No. Every day is treated as exactly 86,400 seconds.

Sources

Last reviewed 2026-09-24. How we check values · Report a problem with this page