HomeDeveloper ToolsUnix Timestamp
⏱️ Epoch Time Converter

Unix Timestamp & Epoch Converter

Convert Unix timestamp numbers to human-readable date formats or generate Epoch seconds from calendar dates.

Current Unix Epoch Time

1793098449

Timestamp → Human Date

UTC: Tue, 27 Oct 2026 10:54:09 GMT
Local: 10/27/2026, 10:54:09 AM
ISO 8601: 2026-10-27T10:54:09.000Z

Human Date → Timestamp

Invalid date input

What a Unix timestamp counts

A Unix timestamp is the number of seconds since 00:00:00 UTC on 1 January 1970, a moment known as the epoch. It identifies a single instant, so the same number means the same moment in Tokyo, London and San Francisco. Time zones only come into play when the number is turned into a calendar date for display.

POSIX time pretends every day has exactly 86,400 seconds and ignores leap seconds. That keeps date arithmetic simple: adding 86,400 always moves forward one calendar day in UTC. Negative values are valid and count backwards, so -86400 is 31 December 1969.

Worked conversions

The timestamp 1700000000 is Tuesday 14 November 2023 at 22:13:20 UTC, written in ISO 8601 as 2023-11-14T22:13:20.000Z. For someone in India (UTC+5:30) that same instant is 03:43:20 on 15 November, and the converter's Local line shows whichever zone your device is set to.

The same instant in milliseconds is 1700000000000, the format JavaScript uses. Adding three zeros is the whole conversion, but mixing the two units is one of the most common date bugs: a seconds value read as milliseconds lands in January 1970, and a milliseconds value read as seconds lands tens of thousands of years in the future.

Seconds, milliseconds and smaller units

The converter treats any number above 100,000,000,000 as milliseconds and anything smaller as seconds. As seconds, 100 billion would be the year 5138, so every realistic seconds value falls below the line. The trade-off is that millisecond values for dates before 3 March 1973 fall below it too and are read as seconds, and negative values are always read as seconds.

Some systems use even finer units. Go's UnixNano and many tracing tools use nanoseconds (19 digits), and PostgreSQL and some logging systems store microseconds (16 digits). Divide by 1,000,000 or 1,000 respectively to get milliseconds before pasting.

  • JavaScript: Date.now() returns milliseconds; Math.floor(Date.now() / 1000) gives seconds.
  • Python: time.time() returns seconds as a float.
  • Java: System.currentTimeMillis() returns milliseconds; Instant.now().getEpochSecond() returns seconds.
  • Shell: date +%s prints seconds.
  • PostgreSQL: to_timestamp(1700000000) returns a timestamptz.

The year 2038 problem

Systems that store timestamps as signed 32-bit integers can count only up to 2,147,483,647, which is Tuesday 19 January 2038 at 03:14:07 UTC. One second later the value overflows and wraps to -2,147,483,648, which reads as Friday 13 December 1901 at 20:45:52 UTC.

Modern 64-bit operating systems and languages are not affected, but embedded devices, old file formats and database columns declared as 32-bit integers can be. MySQL's TIMESTAMP type, for example, has historically been limited to 2038, while DATETIME is not. If you are designing a schema today, use a 64-bit integer or a native date-time type.

Unix Timestamp Converter: frequently asked questions

Do Unix timestamps include leap seconds?

No. Unix time treats every day as exactly 86,400 seconds, so a leap second is either repeated or smeared across a longer period depending on the system. For almost all applications this is invisible; it matters mainly for precise scientific and financial timing.

Is a Unix timestamp the same in every time zone?

Yes. It always counts from midnight UTC on 1 January 1970, so two computers in different zones reading the clock at the same moment get the same number. Only the human-readable date shown for it changes with the zone.

Why is my converted time off by a whole number of hours?

Somewhere a local time was treated as UTC, or the reverse. An offset of exactly 19,800 seconds (5 hours 30 minutes) points to India Standard Time, and multiples of 3,600 seconds point to a zone with whole-hour offsets. Store and transmit times in UTC and convert only for display.

Should I store dates as Unix timestamps or ISO 8601 strings?

Both work if they are unambiguous. Timestamps are compact and easy to compare and sort. ISO 8601 strings with a Z or explicit offset, such as 2023-11-14T22:13:20Z, are readable in logs and APIs. Avoid storing local times without an offset, because they become ambiguous around daylight saving changes.

All developer utilities & crypto