Unix Timestamp to Date

Convert Unix (epoch) timestamps into readable dates in any time zone — one or a whole list at once.

TimestampDate in the selected zoneUTC (ISO 8601)Relative

● Everything is calculated in your browser. Nothing is sent anywhere.

How to convert a timestamp to a date

  1. Paste one or more timestamps, one per line — or click Insert current timestamp.
  2. Leave the unit on Detect automatically, or choose seconds, milliseconds, microseconds or nanoseconds.
  3. Choose the time zone to display, and read the dates (with the UTC equivalent).

What is a Unix timestamp?

A Unix timestamp (or epoch time) is the number of seconds since 1 January 1970, 00:00:00 UTC. It's the same number everywhere in the world, which is why servers, databases and APIs use it; only its display changes with the time zone.

TimestampDate (UTC)
01 January 1970, 00:00:00
9466848001 January 2000, 00:00:00
10000000009 September 2001, 01:46:40
170000000014 November 2023, 22:13:20
17672256001 January 2026, 00:00:00
214748364719 January 2038, 03:14:07 (32-bit limit)

Seconds, milliseconds or microseconds?

Count the digits: 10 digits = seconds (1767225600), 13 digits = milliseconds (1767225600000, used by JavaScript and many APIs), 16 digits = microseconds, 19 digits = nanoseconds. Automatic detection uses this rule.

Convert a timestamp in code

WhereSeconds → date
Excel / Google Sheets=A2/86400+DATE(1970,1,1), formatted as date and time (UTC)
JavaScriptnew Date(ts * 1000).toISOString()
Pythondatetime.fromtimestamp(ts, tz=timezone.utc)
PHPdate('Y-m-d H:i:s', $ts)
MySQLFROM_UNIXTIME(ts)
Linux / macOSdate -d @1767225600 (Linux) · date -r 1767225600 (macOS)

For milliseconds, divide by 1000 first (except in JavaScript, which uses milliseconds natively: new Date(ms)).

FAQ

How do I convert a date to a timestamp?

Use the opposite tool, Date to Unix Timestamp, or get the current one with the Unix Timestamp Generator.

Why is the date different from what I expected?

Usually the time zone: the timestamp is in UTC, and the display is converted to the zone you chose. Or the unit: a millisecond timestamp read as seconds gives a date thousands of years in the future.

What is the year 2038 problem?

Systems that store timestamps as signed 32-bit integers overflow after 2147483647 (19 January 2038, 03:14:07 UTC). Modern systems use 64-bit values and aren't affected.

Can a timestamp be negative?

Yes: negative values are dates before 1970. −86400 is 31 December 1969.

Do timestamps include leap seconds?

No. Unix time ignores leap seconds: every day is exactly 86,400 seconds.