Home / Developer tools / Epoch converter

Epoch Converter

Convert epoch time to a date and a date to epoch time. Each result also shows the same moment in other epoch formats: Windows FILETIME, .NET ticks, Excel serial dates, Apple Cocoa time, Chrome time and classic Mac time.

Timestamp to date

Try:

Everything runs in your browser. Your data is not sent to our server.

Date to timestamp

Try:

Everything runs in your browser. Your data is not sent to our server.

What "epoch" means

An epoch is the starting point from which a system counts time. In everyday developer talk, "epoch time" almost always means the Unix epoch: 00:00:00 UTC on 1 January 1970. Epoch time is the count of seconds (or milliseconds, or finer units) since then. But the Unix epoch is only one of several in use. Windows, .NET, Excel, Apple platforms and Chrome all count from different start dates, and mixing them up is a common source of dates that are off by decades.

Epochs used by common systems

System or formatEpoch (start)UnitValue for Unix 1700000000
Unix, POSIX, JavaScript, Java1970-01-01s or ms1700000000
Windows FILETIME, Active Directory, LDAP1601-01-01100 ns133444736000000000
.NET DateTime ticks0001-01-01100 ns638355968000000000
Chrome and WebKit time1601-01-01µs13344473600000000
Excel and Google Sheets serial date1899-12-30days45244.925926
Apple Cocoa (Core Data, NSDate)2001-01-01s721692800
Classic Mac OS and HFS1904-01-01s3782844800

The converter above lists all of these for any date you enter, so you can compare a value from a Windows log, a Chrome history file or a spreadsheet with a Unix timestamp.

Fixed offsets between epochs

  • Windows (1601) to Unix (1970): 11,644,473,600 seconds.
  • .NET (0001) to Unix: 62,135,596,800 seconds.
  • Cocoa (2001) to Unix: 978,307,200 seconds.
  • Classic Mac (1904) to Unix: 2,082,844,800 seconds.
  • Excel serial 25569 is 1 January 1970.

To turn a FILETIME into Unix seconds, divide by 10,000,000 and subtract 11,644,473,600. To turn a Chrome timestamp (microseconds) into Unix seconds, divide by 1,000,000 and subtract the same number.

Where epoch time in each unit is used

  • Seconds: POSIX time(), JWT claims (exp, iat, nbf), Stripe, Prometheus (as a decimal), file timestamps on Unix systems.
  • Milliseconds: JavaScript, Java, Elasticsearch (epoch_millis), Kafka record timestamps, many mobile and analytics SDKs.
  • Microseconds: Cassandra write times, Python datetime internals, Chrome.
  • Nanoseconds: Go UnixNano(), InfluxDB, OpenTelemetry traces.

Epoch converter in code

// Unix epoch to date (JavaScript)
new Date(1700000000 * 1000).toISOString();

// Date to Unix epoch (JavaScript)
Math.floor(Date.parse('2023-11-14T22:13:20Z') / 1000);

# FILETIME to Unix seconds (Python)
(133444736000000000 // 10_000_000) - 11644473600

// .NET ticks to Unix seconds (C#)
(ticks / 10_000_000) - 62135596800

# Cocoa time to Unix seconds
cocoa + 978307200

Epoch time and leap seconds

Unix epoch time treats every day as exactly 86,400 seconds, so leap seconds are not counted. It is a count of days times 86,400 plus the seconds into the day, not a true count of elapsed seconds. This is fine for almost all software. The Unix time guide explains what happens on a leap-second day.

See also the Unix timestamp converter, milliseconds to date and binary to decimal for working with raw values.

Frequently asked questions

What is epoch time?

The number of seconds (or ms) since a fixed start date. Usually it means the Unix epoch, 1 January 1970 00:00:00 UTC.

How do I convert epoch time to a date?

Paste the epoch value. The date is shown in your time zone and in UTC, and the same moment is listed in other epoch formats.

What is the Windows epoch?

Windows FILETIME counts 100-nanosecond steps from 1 January 1601 UTC. It is used by Windows, NTFS and Active Directory.

Why is my epoch date off by decades?

The value uses a different epoch than Unix, for example 1601 for Windows or 2001 for Apple Cocoa time. Check the table of epochs.

Is epoch time the same as Unix time?

In most cases, yes. Unix time is the best known epoch time, but other epochs exist.