Unix Timestamp Converter (Epoch Time)

Convert Unix epoch timestamps to dates and back, plus Windows FILETIME, .NET ticks, Excel serial dates, GPS time, Julian Day and more formats.

–
Current Unix time, seconds
–
Milliseconds

Timestamp to date

Try:

Same moment in other formats


Date to timestamp

–
Unix timestamp, seconds
–
Milliseconds
–
ISO 8601, UTC
Show this date in other formats FILETIME, .NET ticks, Excel, GPS, Julian Day…

How to use it

The clock at the top shows the current Unix time, ticking live.

What Unix time is

Unix time counts the seconds since 00:00:00 UTC on 1 January 1970, ignoring leap seconds, so every day is exactly 86,400 seconds long. Moments before 1970 are negative: the Apollo 11 landing, 1969-07-20T20:17:40Z, is -14182940.

Digits today Read as Typical source
10 seconds date +%s, PHP time(), Python time.time()
13 milliseconds JavaScript Date.now(), Java currentTimeMillis()
16 microseconds many databases and tracing tools
19 nanoseconds Go UnixNano(), Python time.time_ns()

Values below 1011 are read as seconds, below 1014 as milliseconds, below 1017 as microseconds and larger ones as nanoseconds, which is right for any moment from March 1973 to the year 5138. Numbers are exact integers, so all 19 digits of a nanosecond value are kept.

Other timestamp formats

Format Counts Since Seen in
Windows FILETIME 100 ns 1601-01-01 NTFS, Active Directory, the registry
.NET ticks 100 ns 0001-01-01 C# DateTime.Ticks
WebKit / Chrome µs 1601-01-01 Chrome history and cookies
Excel serial days 1899-12-30 or 1904-01-01 spreadsheets
Apple Cocoa seconds 2001-01-01 NSDate, Core Data
Mac HFS+ seconds 1904-01-01 HFS+ disks, MP4 and QuickTime files
GPS seconds 1980-01-06 GPS receivers and logs
Julian Day days noon, 1 January 4713 BC (Julian calendar) astronomy
Modified Julian Day days 1858-11-17 science and satellite data

The year 2038 problem

Many older systems store Unix time in a signed 32-bit integer, whose largest value is 2,147,483,647, or 2038-01-19T03:14:07Z. One second later the counter wraps to 1901-12-13T20:45:52Z. Current 64-bit systems are not affected, but embedded devices, old file formats and 32-bit database columns such as MySQL’s TIMESTAMP still are. The converter flags any Unix value outside the 32-bit range.

Frequently asked questions

What is the current Unix timestamp?

It is the ticking number at the top of this page, taken from your device’s clock. Unix time is the same in every time zone, so the value is identical for everyone at the same instant.

How can I tell seconds from milliseconds?

Count the digits. A current timestamp in seconds has 10 digits and one in milliseconds has 13. The converter checks the size for you and shows which unit it used.

Why is my converted time off by a few hours?

The timestamp itself is always UTC-based. An offset of whole hours usually means the date was read or written in the wrong time zone. Check the UTC row and the time zone selector.

How do I convert a Unix timestamp to a date in Excel or Google Sheets?

Spreadsheets count days rather than seconds, so divide by 86,400 and add the epoch with =A2/86400 + DATE(1970,1,1), then format the cell as a date and time. For milliseconds, divide by 86,400,000 instead. The result is UTC; for a local time add the offset in days, such as -5/24 for UTC−5. The reverse is =(A2 - DATE(1970,1,1)) * 86400. Google Sheets also has =EPOCHTODATE(A2), which returns the UTC date and time directly.

Is anything I paste sent to a server?

No. Every conversion runs in your browser with JavaScript. Nothing you type is uploaded, logged or stored, and the page works offline once it has loaded.