FILETIME to Unix Timestamp
FILETIME is Microsoft's 64-bit count of 100-nanosecond intervals since 1601-01-01 UTC. The widget uses integer arithmetic for epoch conversion, then rounds every output to the nearest millisecond. Original sub-millisecond ticks are not preserved in the results.
FILETIME (100ns since 1601) to Unix
Enter a value to see results below. FILETIME is 100-nanosecond intervals since 1601-01-01 UTC, written as two unsigned DWORDs — values from this era are 18 digits starting 133 or 134.
Active Directory fields such as lastLogon and accountExpires use this epoch; whenCreated uses GeneralizedTime instead. accountExpires values 0 and 9223372036854775807 can mean never, not a date. Results round to the nearest millisecond; sub-millisecond ticks are not preserved.
One constant: 11644473600
FILETIME counts 100-nanosecond ticks from 1 January 1601 (Gregorian); Unix counts seconds from 1 January 1970. The gap between those two epochs is exactly 369 years — 134,774 days — which is where the magic constant comes from:
unix_seconds = filetime / 10_000_000 - 11_644_473_600unix_ms = filetime / 10_000 - 11_644_473_600_000- The FILETIME of the Unix epoch itself (1970-01-01 00:00 UTC) is
116444736000000000— a good sanity anchor. Contemporary FILETIME values are around 1.3 × 10¹⁷, Unix milliseconds around 1.8 × 10¹². Magnitude is a clue, not proof of a format.
Convert in integer arithmetic: an 18-digit FILETIME exceeds JavaScript's 53-bit safe integer range (Number.MAX_SAFE_INTEGER ≈ 9.0 × 10¹⁵), so naive parseInt/float division silently corrupts the low digits. The widget uses BigInt for epoch arithmetic; ISO formatting passes through a millisecond-resolution Date.
Where FILETIME shows up
- NTFS timestamps — every file's created / modified / accessed / MFT-modified times in
$STANDARD_INFORMATIONand$FILE_NAMEare FILETIME. Forensic tools print the raw 18-digit numbers; that is the classic paste target for this page. - Active Directory —
lastLogon,lastLogonTimestamp,pwdLastSet,accountExpiresare INTEGER(8) attributes holding FILETIME. AD admin tools and LDAP exports therefore hand you 100ns ticks. - Windows APIs & registry —
GetSystemTimeAsFileTime, registryLastWriteTime, scheduled-task and Event Log (ETW) timestamps. - FILETIME has no timezone field — it is defined to be UTC. The one common exception is AD's
lastLogon, which is UTC but not replicated, and domain controllers may show slightly skewed clocks; that is a DC time-sync issue, not a format issue.
ANSWERS
01 Why does Windows use 1601 as its epoch?
1601 is 369 years before 1970, and — more prosaically — the start of a 400-year Gregorian cycle, so leap-year rules repeat exactly. Win32 needed a 64-bit-friendly epoch that predated all supported dates, and 1 January 1601 00:00 UTC became it across NTFS, AD and the API set.
02 How do I convert FILETIME in PowerShell?
[DateTime]::FromFileTime(133520780700000000) gives a local DateTime; use FromFileTimeUtc for UTC. Python has the offset as a constant: wintime / 1e7 - 11644473600 (float, so prefer // integer math for the exact value).
03 Is an 18-digit number always a FILETIME?
No. Around 2026, FILETIME is about 1.34 × 10¹⁷ (18 digits), Unix microseconds about 1.8 × 10¹⁵ (16 digits), and Unix nanoseconds about 1.8 × 10¹⁸ (19 digits). Other formats can share these lengths. Confirm the epoch and unit from the source, not just the prefix.
04 What is the FILETIME for 2026-01-01 00:00 UTC?
134116992000000000 — Unix 1767225600 s × 10,000,000 ticks/s + 116,444,736,000,000,000. Try it in the widget: the seconds output should read 1767225600.
05 Can FILETIME be negative?
The FILETIME struct contains two unsigned DWORDs. AD INTEGER(8) attributes are signed and have attribute-specific sentinel rules: accountExpires uses 0 or 9223372036854775807 for "never expires". Do not interpret such sentinels, or an arbitrary negative value, as a calendar date without checking the attribute definition.