Epoch to Human Date Converter

Paste a Unix epoch timestamp - in seconds or milliseconds, auto-detected - to see the human-readable UTC date, your local date, the ISO 8601 string and the relative time. You can also convert a calendar date back into an epoch value.

Enter an epoch timestamp, then press Convert.

What epoch time is

Epoch time (also called Unix time or POSIX time) counts the seconds that have elapsed since 1 January 1970 00:00:00 UTC, ignoring leap seconds. It is the timestamp format almost every database, log file and API uses, because a single integer is unambiguous across time zones.

human date = epoch_seconds × 1000 → JavaScript Date

To turn epoch into a readable date, you multiply seconds by 1000 (JavaScript's Date works in milliseconds) and format the result. The converter shows the UTC date, your local date, the ISO 8601 string and how long ago - or ahead - that moment is.

Worked example

The timestamp 1700000000:

Detected as seconds (10 digits), so ×1000 = 1700000000000 ms.
UTC: Tue, 14 Nov 2023 22:13:20 GMT.
Local: the same instant shown in your browser's time zone.

Seconds vs milliseconds

Unix timestamps come in two common scales: seconds (10 digits today) and milliseconds (13 digits, used by JavaScript). The converter auto-detects which you pasted by its magnitude, so you rarely have to think about it - a 13-digit number is treated as milliseconds, a 10-digit number as seconds. Pick a date in the second field to run the conversion the other way and get the epoch value back. Everything runs in your browser.

Tip: need a quick current timestamp or to subtract two dates? Try the Unix timestamp converter and the date difference calculator.

Frequently asked questions

Does it use seconds or milliseconds?

Both - it auto-detects. A 13-digit number is read as milliseconds (JavaScript style) and a 10-digit number as seconds (classic Unix style), so you can paste either form.

Why is UTC different from my local time?

Epoch time is anchored to UTC. The converter shows both the UTC date and the same instant in your browser's local time zone, which differ by your zone's offset.

What is the ISO 8601 string?

It is the standard machine-readable format like 2023-11-14T22:13:20.000Z. It is unambiguous and sorts chronologically as plain text, so it is ideal for logs and APIs.

Can I convert a date back to epoch?

Yes. Pick a date and time in the second field and the converter returns the matching epoch in both seconds and milliseconds.

MB
Mustafa Bilgic · Editor, Calcool
Uses the JavaScript Date object; epoch is seconds since 1970-01-01 UTC. Everything runs in your browser - nothing you enter is uploaded, logged or stored.

Related calculators