Unix timestamp converter

Convert between Unix timestamps and human dates both ways. Auto-detects seconds / milliseconds, shows the live current timestamp, and outputs UTC and ISO 8601.

Current timestamp (refreshes every second — click a number to copy)
—
Timestamp → date & time
Type a timestamp to convert instantly (long millisecond values work too).
Date & time → timestamp
Pick a time to convert instantly (uses your device's local timezone).

Seconds since a fixed moment

A Unix timestamp is the number of seconds elapsed since 00:00:00 UTC on 1 January 1970, ignoring leap seconds. Two properties make it useful:

Seconds or milliseconds?

UnitDigits nowWhere you meet it
Seconds10Unix, PHP, Python, most APIs
Milliseconds13JavaScript's Date.now(), Java, some APIs
Microseconds16Databases, tracing systems
Nanoseconds19Go's time package, high-resolution profiling

The count of digits is the fastest way to tell them apart. Mixing them up produces a date in 1970 or in the far future — the classic symptom of a thousandfold mistake.

The year 2038 problem

If a timestamp is stored as a signed 32-bit integer, the largest representable value is 2,147,483,647 seconds, which corresponds to 03:14:07 UTC on 19 January 2038. A second later it overflows and wraps to a negative value, producing dates in 1901. Most modern systems use 64-bit integers and are unaffected, but embedded devices, older file formats and legacy databases can still carry 32-bit fields. Millisecond timestamps overflow 32 bits far sooner — in the current era — which is another reason to know which unit you are handling.

Common conversion traps

Related tools

Time zone converter Date calculator Date difference

FAQ

What is a Unix timestamp?
A Unix timestamp is the number of seconds (or milliseconds) elapsed since 00:00:00 UTC on January 1, 1970 — the Unix epoch. It is timezone-independent, which makes it the standard way computers represent time.
How do I tell if a timestamp is in seconds or milliseconds?
Count the digits: 10 digits usually means seconds (valid from 2001-09-09 to 2286), while 13 digits means milliseconds. This tool auto-detects the unit by default, and you can also set it manually.
Does the converter depend on my timezone?
The timestamp itself is absolute UTC time. When converted to local time it uses your device's timezone; the page also shows UTC time for comparison.
Is my data uploaded during conversion?
No. All conversions run locally in your browser. Nothing you type or paste is sent to any server.