Epoch ↔ Date Converter

Epoch ↔ Date Converter converts a Unix timestamp (seconds or milliseconds) into a readable date, or turns a date and time you pick back into a timestamp. It shows the result as ISO 8601, UTC and your browser's local timezone at once. It also converts Windows FILETIME, Excel serial dates, micro/nanoseconds and MongoDB ObjectID timestamps, and prints RFC 2822 / RFC 3339 in the time zone you pick.

ISO 8601
2023-11-14T22:13:20.000Z
RFC 3339
2023-11-14T22:13:20Z
RFC 2822
Tue, 14 Nov 2023 22:13:20 +0000
UTC
Tue, 14 Nov 2023 22:13:20 GMT
Selected time zone
2023-11-14 22:13:20 (UTC)
Relative
3 years ago
ObjectID prefix for this date
6553f1000000000000000000

How it works

  1. 1Enter a timestamp, or click “Now” to fill in the current moment.
  2. 2Choose the unit: seconds or milliseconds.
  3. 3Read the result as ISO 8601, UTC and local time.
  4. 4Or pick a moment from the date/time field on the right, the timestamp is computed automatically.

Frequently asked questions

What is a Unix timestamp (epoch)?+

It's the number of seconds (or milliseconds) elapsed since 1 January 1970 00:00:00 UTC; servers and APIs commonly carry dates in this form.

Should I use seconds or milliseconds?+

Most Unix/Linux systems and APIs use seconds (10 digits, e.g. 1700000000); JavaScript's `Date.now()` and many web APIs use milliseconds (13 digits).

Where does the local timezone come from?+

It's whatever timezone your browser/OS is set to; use the UTC value in the result if you need a timezone-independent reference.

Does the Y2038 problem apply here?+

No, the calculation uses JavaScript's `Date` object and isn't bound by the 32-bit signed integer limit, so it supports a much wider date range.

Is the timestamp I enter stored anywhere?+

No, the entire conversion runs in your browser.

What are FILETIME and an Excel serial date?+

FILETIME counts 100-nanosecond intervals since 1601 (Windows); an Excel serial date counts days in the 1900 system. Pick the unit and paste the value.

Embed on your site

Size
480 × 360px
<iframe
  src="https://toolsqube.com/en/software-engineering/epoch-converter/embed"
  width="480" height="360"
  style="border:0;border-radius:14px"
  title="Epoch ↔ Date Converter · ToolsQube"
  loading="lazy">
</iframe>

Want to go deeper on this topic: Software Engineering Tools Guide →

Command Palette

Search for a command to run…