Unix Timestamp Converter

Convert Unix timestamps (seconds, milliseconds, microseconds) to dates and dates to timestamps.

Runs instantly in your browser — results update as you type.

What is a Unix timestamp?

A Unix timestamp (epoch time) is the number of seconds since 1 January 1970 00:00:00 UTC. It is the standard way computers store points in time, independent of time zones.

How to use it

  • Enter a timestamp — the unit is detected automatically: seconds (10 digits), milliseconds (13), microseconds (16) or nanoseconds.
  • Or enter a date such as 2026-01-31 14:30 or an ISO string like 2026-01-31T14:30:00Z.
  • Leave the field empty to see the current time.

You get the timestamp in seconds and milliseconds, ISO 8601, UTC, RFC 2822, your local time zone, the day of the year and a relative time ("3 days ago").

Getting the current timestamp in code

LanguageCode
JavaScriptMath.floor(Date.now() / 1000)
PHPtime()
Pythonint(time.time())
MySQLUNIX_TIMESTAMP()

Frequently asked questions

What is the year 2038 problem?

Systems that store timestamps as signed 32-bit integers overflow on 19 January 2038. Modern systems use 64-bit values.

Are Unix timestamps in UTC?

Yes, a timestamp is always counted from UTC; time zones only matter when displaying it.

How do I tell seconds from milliseconds?

Current timestamps in seconds have 10 digits; in milliseconds they have 13.