Unix Timestamp Converter

Paste seconds, milliseconds, microseconds or nanoseconds and get a readable date instantly.

Current Unix time · seconds
1785665082
Current Unix time · milliseconds
1785665082240
Interpret as
Unix seconds 1785665082
Unix milliseconds 1785665082240
ISO 8601 (UTC) 2026-08-02T10:04:42Z
UTC Sunday, August 2, 2026, 10:04 AM
Local (UTC, UTC±0) Sunday, August 2, 2026, 10:04 AM
Relative now

Date to timestamp

Unix seconds 1785665082
Unix milliseconds 1785665082240

What is a Unix timestamp?

A Unix timestamp counts the seconds since 00:00:00 UTC on 1 January 1970, ignoring leap seconds. At any given moment it is the same number everywhere on Earth, which is why databases, APIs and log files rely on it.

A 10-digit value is seconds: classic Unix time used by Linux, Python, PHP and most databases. A 13-digit value is milliseconds: what Date.now() returns in JavaScript and System.currentTimeMillis() returns on Java and Android. This converter detects both, plus 16-digit microseconds and 19-digit nanoseconds.

Unix time in your language

Snippets update live with the value in the converter above.

// current epoch
Math.floor(Date.now() / 1000)   // seconds
Date.now()                      // milliseconds

// timestamp → date
new Date(1785665082 * 1000).toISOString()

// date → timestamp
Math.floor(new Date('2026-08-02T10:04:42Z').getTime() / 1000)

The year 2038 problem

Systems that store Unix time in a signed 32-bit integer overflow at 03:14:07 UTC on 19 January 2038. Modern 64-bit systems have headroom for billions of years; the badge above appears whenever a value no longer fits in 32 bits.

Seconds cheat sheet

PeriodSeconds
1 minute60
1 hour3600
1 day86400
1 week604800
1 month (30.44 days)2629743
1 year (365.24 days)31556926

Frequently asked questions

Why does my timestamp have 13 digits?

It is in milliseconds. Date.now() in JavaScript and System.currentTimeMillis() in Java and Android count milliseconds since 1970, so divide by 1000 for classic Unix seconds. This page detects the unit automatically.

Is Unix time the same in every timezone?

Yes. The number counts seconds since 1970-01-01 UTC and does not depend on where you are; only its rendering as a calendar date changes with the timezone.

Does Unix time count leap seconds?

No. Unix time treats every day as exactly 86,400 seconds and ignores leap seconds, which keeps date arithmetic simple.

What happens in 2038?

Signed 32-bit counters overflow on 19 January 2038. 64-bit systems, current operating systems and this converter handle dates far beyond that.

How do I convert a timestamp in code?

Use the snippets above: one-liners for JavaScript, Python, Java, Kotlin, Swift, Go, shell and SQL, pre-filled with your value.

More for developers