Date & time · Unix epoch

Epoch to date converter.

Paste a Unix epoch timestamp, or one per line, and read it as a date in UTC and your chosen time zone. Seconds, milliseconds, microseconds and nanoseconds are detected for you.

Advertisement

Epoch values

One value per line, up to 500 lines.
Auto: up to 11 digits is seconds, 12-14 digits milliseconds, 15-17 microseconds, 18 or more nanoseconds.
A Unix timestamp is the same instant everywhere; the zone only changes how it is written.

Result

Paste one or more epoch timestamps, one per line.

How epoch time becomes a date

An epoch timestamp is a count from 1970-01-01T00:00:00Z. To read it as a date, divide into days and seconds in UTC, then apply the offset of the time zone you want. The offset is looked up for that exact moment, so a summer timestamp in Toronto shows UTC-04:00 and a winter one UTC-05:00.

Examples

Unix secondsUTC date and time
01970-01-01T00:00:00Z
11970-01-01T00:00:01Z
-11969-12-31T23:59:59Z
864001970-01-02T00:00:00Z
10000000002001-09-09T01:46:40Z
12345678902009-02-13T23:31:30Z
17000000002023-11-14T22:13:20Z
17096544002024-03-05T16:00:00Z
21474836472038-01-19T03:14:07Z
21474836482038-01-19T03:14:08Z
42949672952106-02-07T06:28:15Z

Epoch to date in code

LanguageNowTimestamp to dateDate to timestamp
JavaScriptMath.floor(Date.now() / 1000)new Date(1709654400 * 1000).toISOString()Math.floor(Date.parse('2024-03-05T16:00:00Z') / 1000)
Pythonint(time.time())datetime.fromtimestamp(1709654400, tz=timezone.utc)int(datetime(2024, 3, 5, 16, tzinfo=timezone.utc).timestamp())
Gotime.Now().Unix()time.Unix(1709654400, 0).UTC()time.Date(2024, 3, 5, 16, 0, 0, 0, time.UTC).Unix()
JavaInstant.now().getEpochSecond()Instant.ofEpochSecond(1709654400L)Instant.parse("2024-03-05T16:00:00Z").getEpochSecond()
PostgreSQLSELECT EXTRACT(EPOCH FROM now())::bigint;SELECT to_timestamp(1709654400);SELECT EXTRACT(EPOCH FROM timestamptz '2024-03-05 16:00:00+00');
SQLiteSELECT unixepoch();SELECT datetime(1709654400, 'unixepoch');SELECT unixepoch('2024-03-05 16:00:00');

FAQ

What is Unix epoch time?

Unix time counts seconds since 00:00:00 UTC on 1 January 1970, the Unix epoch. POSIX defines it so that every day is exactly 86,400 seconds, which is why 1970-01-02T00:00:00Z is 86400.

How do I convert epoch time to a date?

Paste the number above. The unit is detected from its length, and the date is shown in UTC, in your time zone, as ISO 8601 and as an RFC 2822 date. Paste several lines to convert a whole list into a table.

Why does my epoch converter show 1970?

A date in January 1970 usually means a millisecond or microsecond value was read as seconds, or the value is 0. Leave the unit on Auto-detect, or choose milliseconds.

Why is the date a few hours off?

The timestamp is an exact instant; the clock reading depends on the time zone. Pick the zone you expect and check the UTC line to compare.

Can a Unix timestamp be negative?

Yes. A negative value is a moment before 1970-01-01, for example -1 is 1969-12-31T23:59:59Z. POSIX leaves the formula undefined before 1970, but most languages extend the same arithmetic backwards and so does this tool.

Does Unix time include leap seconds?

No. POSIX counts each day as exactly 86,400 seconds, so a leap second is not a separate value: the timestamp repeats or is smeared by the system clock, and 2017-01-01T00:00:00Z is 1483228800 even though UTC itself had a leap second added at the end of 2016. IERS Bulletin C 72 (July 2026) announced that no leap second will be introduced at the end of December 2026.

What is the largest date this converter accepts?

JavaScript time values run from -8,640,000,000,000,000 to 8,640,000,000,000,000 milliseconds around the epoch, about 275,000 years either side of 1970. Values outside that range are rejected rather than guessed.

Is my data sent anywhere?

No. The conversion runs in your browser and nothing you type is uploaded or stored.

Sources (each opened 2026-10): POSIX.1-2017 Base Definitions, 4.16 Seconds Since the Epoch; RFC 3339, Date and Time on the Internet: Timestamps; RFC 5322, Internet Message Format (obsoletes RFC 2822); ECMAScript Language Specification, Time Values and Time Range; IERS Bulletin C 72 (leap second announcement, July 2026); Python documentation, datetime; Python documentation, time; Go documentation, package time; Java SE 21 API, java.time.Instant; PostgreSQL documentation, Date/Time Functions; SQLite documentation, Date And Time Functions.

Advertisement
Advertisement