← All tools

Unix timestamp converter

Enter a Unix time or a date and see it in every format. Your data never leaves this computer.

Action

What is Unix time?

Unix time (a Unix timestamp, or epoch time) is the number of seconds since 1 January 1970 00:00:00 UTC. For example, 1700000000 is 14 November 2023 22:13:20 UTC. Because it stores a moment as a single number with no time zones, daylight saving or date formats to worry about, it is everywhere in databases, log files, APIs and tokens.

JavaScript and some systems use milliseconds instead of seconds, in which case the number has 13 digits (1700000000000). The tool treats 13 or more digits as milliseconds and shorter numbers as seconds.

Time zone confusion

Unix time is always UTC: the same moment has the same number everywhere in the world. Local time is UTC plus or minus an offset, so an event at 23:00 UTC is already the next day in Tokyo and still the same afternoon in New York. That is usually the answer to "why does this log entry show the wrong day?". The tool shows both UTC (ISO 8601) and your browser's local time.

The year 2038 problem

Older systems that store Unix time as a signed 32-bit integer overflow after 03:14:07 UTC on 19 January 2038 and wrap around to 1901. Modern systems use 64 bits and are not affected, but it still matters for old embedded devices and database columns. Conversion runs in your browser and no data is sent anywhere.

How to use it

  1. Enter a Unix time (for example 1700000000) or a date (2023-11-14 22:13).
  2. Unix seconds, milliseconds, ISO 8601 (UTC), local time and relative time appear.
  3. Use the Now button to fill in the current time.

Frequently asked questions

How does it tell seconds from milliseconds?

Numbers with 13 digits or more are treated as milliseconds, shorter ones as seconds.

Which time zone is used?

The ISO output is UTC. The local time line uses your browser's time zone.

Which date formats can I type?

ISO 8601 (2023-11-14T22:13:20Z), local-time forms such as 2023-11-14 22:13 and common date formats your browser understands.

Related tools