Browser forensics

WebKit / Chrome Timestamp

Convert Chrome and WebKit timestamps — microseconds since 1601.

WebKit timestamp

Paste a WebKit value, or pick a calendar date to convert the other way.

WebKit timestamps count microseconds since January 1, 1601 UTC. Chrome, Edge, Opera, and other Chromium-based browsers use this format throughout their internal databases, so anyone reading a browser history file, a cookie store, or a download log runs into these seventeen-digit numbers. Paste one here to get a readable date, or pick a calendar date to produce the WebKit value for that day.

The conversion

Divide the WebKit value by one million to get seconds since 1601, then subtract 11,644,473,600 — the number of seconds between the 1601 epoch and the Unix epoch of 1970. What remains is an ordinary Unix timestamp. Working in the other direction, add that same constant and multiply by one million.

These numbers are large enough that precision matters. A WebKit timestamp for a recent date has seventeen digits, comfortably beyond the range where double-precision floating point represents every integer exactly. Spreadsheet formulas and quick scripts in languages without integer types will round the last digits, which usually shows up as a time that is off by a fraction of a second — harmless for casual reading, but wrong if you are correlating events at millisecond resolution.

Resolution versus accuracy

Microsecond resolution does not mean microsecond accuracy. The stored value comes from the system clock at the moment the browser wrote the record, and that clock is subject to the usual imperfections: network time synchronization steps, drift between syncs, and manual changes by the user. Two events a few hundred microseconds apart cannot be reliably ordered by their timestamps alone, and a machine whose clock was adjusted mid-session can produce records that appear out of sequence.

For most work this is irrelevant, because the interesting intervals are seconds or minutes rather than fractions of a millisecond. It becomes important when you are arguing that one event caused another, or reconstructing a precise sequence across several machines. In those cases treat the timestamp as strong evidence of approximate time and weak evidence of exact ordering.

Frequently asked questions

What is a WebKit timestamp?

A count of microseconds since January 1, 1601 UTC, used throughout Chromium-based browsers. History visits, cookie expiry, download times, and cache metadata are all stored in this format inside the browser's SQLite databases.

How does it differ from Windows FILETIME?

They share the 1601 epoch but use different resolutions. FILETIME counts hundred-nanosecond intervals while WebKit counts microseconds, so the two differ by a factor of ten. Mixing them up produces a result that is wrong by a wide margin.

Why is the epoch 1601?

It marks the start of a four-hundred-year Gregorian leap cycle, which simplified calendar arithmetic for the original Windows designers. WebKit inherited the epoch when Chromium adopted the convention, then changed the resolution from hundred-nanosecond ticks to whole microseconds.

Processing, please wait...