Skip to content

Unix Timestamp Converter

Turn an epoch timestamp into a readable date, or a date into a timestamp — in UTC and your local time.

Calculated instantly in your browser. Nothing you type is sent or stored.

Current Unix time

—

Timestamp → date

Read as
—
UTC (ISO 8601)
—
UTC
—
Your time zone
—
RFC 2822 / HTTP date
—
Relative
—

Date → timestamp

Seconds
—
Milliseconds
—
ISO 8601 (UTC)
—

Getting the current timestamp in code

LanguageCodeUnit
JavaScriptDate.now() / Math.floor(Date.now() / 1000)ms / s
Pythontime.time() / time.time_ns()s (float) / ns
JavaSystem.currentTimeMillis() / Instant.now().getEpochSecond()ms / s
Gotime.Now().Unix() / time.Now().UnixNano()s / ns
PostgreSQLextract(epoch from now())s (with fraction)
MySQLUNIX_TIMESTAMP()s
Shelldate +%ss

Useful reference timestamps

Moment (UTC)Seconds
1970-01-01 00:00:00 (epoch)0
2000-01-01 00:00:00946684800
2026-01-01 00:00:001767225600
2038-01-19 03:14:07 (32-bit limit)2147483647

Limitations

  • Unix time ignores leap seconds, as does every mainstream operating system and this converter.
  • Nanosecond and microsecond values are converted exactly to the millisecond; finer precision is not displayed, because browsers store dates to the millisecond.
  • Dates can be shown within about ±275,000 years of 1970.

Frequently asked questions

What is a Unix timestamp?

The number of seconds since 00:00:00 UTC on 1 January 1970 (the Unix epoch), not counting leap seconds. It is the same everywhere in the world at a given moment, which makes it a convenient way to store time.

How do I tell seconds from milliseconds?

By the number of digits. Current dates are 10 digits in seconds (1767225600), 13 in milliseconds (JavaScript, Java), 16 in microseconds (Python, PostgreSQL) and 19 in nanoseconds (Go). "Detect automatically" uses this rule; you can also choose the unit.

Does a timestamp have a time zone?

No. A timestamp marks an instant; time zones only affect how it is displayed. The converter shows the same instant in UTC and in your browser's local time zone.

What is the year 2038 problem?

Systems that store Unix time in a signed 32-bit integer overflow after 03:14:07 UTC on 19 January 2038 (2,147,483,647 seconds). Modern systems use 64-bit values, which last for billions of years.

Last updated .